diff --git a/VERSION b/VERSION index 9e7933f41..9b0f7dff2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1531 \ No newline at end of file +1.36.1532 \ No newline at end of file diff --git a/cams/CMakeLists.txt b/cams/CMakeLists.txt index bcd5acd0b..c39a0a22c 100644 --- a/cams/CMakeLists.txt +++ b/cams/CMakeLists.txt @@ -21,17 +21,129 @@ set(cams_public_header include/alibabacloud/cams/CamsExport.h ) set(cams_public_header_model - include/alibabacloud/cams/model/CheckContactsRequest.h - include/alibabacloud/cams/model/CheckContactsResult.h - include/alibabacloud/cams/model/SendMessageRequest.h - include/alibabacloud/cams/model/SendMessageResult.h ) + include/alibabacloud/cams/model/BeeBotAssociateRequest.h + include/alibabacloud/cams/model/BeeBotAssociateResult.h + include/alibabacloud/cams/model/BeeBotChatRequest.h + include/alibabacloud/cams/model/BeeBotChatResult.h + include/alibabacloud/cams/model/ChatappBindWabaRequest.h + include/alibabacloud/cams/model/ChatappBindWabaResult.h + include/alibabacloud/cams/model/ChatappEmbedSignUpRequest.h + include/alibabacloud/cams/model/ChatappEmbedSignUpResult.h + include/alibabacloud/cams/model/ChatappMigrationRegisterRequest.h + include/alibabacloud/cams/model/ChatappMigrationRegisterResult.h + include/alibabacloud/cams/model/ChatappMigrationVerifiedRequest.h + include/alibabacloud/cams/model/ChatappMigrationVerifiedResult.h + include/alibabacloud/cams/model/ChatappPhoneNumberRegisterRequest.h + include/alibabacloud/cams/model/ChatappPhoneNumberRegisterResult.h + include/alibabacloud/cams/model/ChatappSyncPhoneNumberRequest.h + include/alibabacloud/cams/model/ChatappSyncPhoneNumberResult.h + include/alibabacloud/cams/model/ChatappVerifyAndRegisterRequest.h + include/alibabacloud/cams/model/ChatappVerifyAndRegisterResult.h + include/alibabacloud/cams/model/CreateChatappMigrationInitiateRequest.h + include/alibabacloud/cams/model/CreateChatappMigrationInitiateResult.h + include/alibabacloud/cams/model/CreateChatappTemplateRequest.h + include/alibabacloud/cams/model/CreateChatappTemplateResult.h + include/alibabacloud/cams/model/DeleteChatappTemplateRequest.h + include/alibabacloud/cams/model/DeleteChatappTemplateResult.h + include/alibabacloud/cams/model/GetChatappTemplateDetailRequest.h + include/alibabacloud/cams/model/GetChatappTemplateDetailResult.h + include/alibabacloud/cams/model/GetChatappUploadAuthorizationRequest.h + include/alibabacloud/cams/model/GetChatappUploadAuthorizationResult.h + include/alibabacloud/cams/model/GetChatappVerifyCodeRequest.h + include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h + include/alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h + include/alibabacloud/cams/model/GetMigrationVerifyCodeResult.h + include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusRequest.h + include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusResult.h + include/alibabacloud/cams/model/IsvGetAppIdRequest.h + include/alibabacloud/cams/model/IsvGetAppIdResult.h + include/alibabacloud/cams/model/ListChatappTemplateRequest.h + include/alibabacloud/cams/model/ListChatappTemplateResult.h + include/alibabacloud/cams/model/ModifyChatappTemplateRequest.h + include/alibabacloud/cams/model/ModifyChatappTemplateResult.h + include/alibabacloud/cams/model/ModifyPhoneBusinessProfileRequest.h + include/alibabacloud/cams/model/ModifyPhoneBusinessProfileResult.h + include/alibabacloud/cams/model/QueryChatappBindWabaRequest.h + include/alibabacloud/cams/model/QueryChatappBindWabaResult.h + include/alibabacloud/cams/model/QueryChatappPhoneNumbersRequest.h + include/alibabacloud/cams/model/QueryChatappPhoneNumbersResult.h + include/alibabacloud/cams/model/QueryPhoneBusinessProfileRequest.h + include/alibabacloud/cams/model/QueryPhoneBusinessProfileResult.h + include/alibabacloud/cams/model/QueryWabaBusinessInfoRequest.h + include/alibabacloud/cams/model/QueryWabaBusinessInfoResult.h + include/alibabacloud/cams/model/SendChatappMassMessageRequest.h + include/alibabacloud/cams/model/SendChatappMassMessageResult.h + include/alibabacloud/cams/model/SendChatappMessageRequest.h + include/alibabacloud/cams/model/SendChatappMessageResult.h + include/alibabacloud/cams/model/SubmitIsvCustomerTermsRequest.h + include/alibabacloud/cams/model/SubmitIsvCustomerTermsResult.h + include/alibabacloud/cams/model/UpdateAccountWebhookRequest.h + include/alibabacloud/cams/model/UpdateAccountWebhookResult.h + include/alibabacloud/cams/model/UpdatePhoneWebhookRequest.h + include/alibabacloud/cams/model/UpdatePhoneWebhookResult.h ) set(cams_src src/CamsClient.cc - src/model/CheckContactsRequest.cc - src/model/CheckContactsResult.cc - src/model/SendMessageRequest.cc - src/model/SendMessageResult.cc ) + src/model/BeeBotAssociateRequest.cc + src/model/BeeBotAssociateResult.cc + src/model/BeeBotChatRequest.cc + src/model/BeeBotChatResult.cc + src/model/ChatappBindWabaRequest.cc + src/model/ChatappBindWabaResult.cc + src/model/ChatappEmbedSignUpRequest.cc + src/model/ChatappEmbedSignUpResult.cc + src/model/ChatappMigrationRegisterRequest.cc + src/model/ChatappMigrationRegisterResult.cc + src/model/ChatappMigrationVerifiedRequest.cc + src/model/ChatappMigrationVerifiedResult.cc + src/model/ChatappPhoneNumberRegisterRequest.cc + src/model/ChatappPhoneNumberRegisterResult.cc + src/model/ChatappSyncPhoneNumberRequest.cc + src/model/ChatappSyncPhoneNumberResult.cc + src/model/ChatappVerifyAndRegisterRequest.cc + src/model/ChatappVerifyAndRegisterResult.cc + src/model/CreateChatappMigrationInitiateRequest.cc + src/model/CreateChatappMigrationInitiateResult.cc + src/model/CreateChatappTemplateRequest.cc + src/model/CreateChatappTemplateResult.cc + src/model/DeleteChatappTemplateRequest.cc + src/model/DeleteChatappTemplateResult.cc + src/model/GetChatappTemplateDetailRequest.cc + src/model/GetChatappTemplateDetailResult.cc + src/model/GetChatappUploadAuthorizationRequest.cc + src/model/GetChatappUploadAuthorizationResult.cc + src/model/GetChatappVerifyCodeRequest.cc + src/model/GetChatappVerifyCodeResult.cc + src/model/GetMigrationVerifyCodeRequest.cc + src/model/GetMigrationVerifyCodeResult.cc + src/model/GetPhoneNumberVerificationStatusRequest.cc + src/model/GetPhoneNumberVerificationStatusResult.cc + src/model/IsvGetAppIdRequest.cc + src/model/IsvGetAppIdResult.cc + src/model/ListChatappTemplateRequest.cc + src/model/ListChatappTemplateResult.cc + src/model/ModifyChatappTemplateRequest.cc + src/model/ModifyChatappTemplateResult.cc + src/model/ModifyPhoneBusinessProfileRequest.cc + src/model/ModifyPhoneBusinessProfileResult.cc + src/model/QueryChatappBindWabaRequest.cc + src/model/QueryChatappBindWabaResult.cc + src/model/QueryChatappPhoneNumbersRequest.cc + src/model/QueryChatappPhoneNumbersResult.cc + src/model/QueryPhoneBusinessProfileRequest.cc + src/model/QueryPhoneBusinessProfileResult.cc + src/model/QueryWabaBusinessInfoRequest.cc + src/model/QueryWabaBusinessInfoResult.cc + src/model/SendChatappMassMessageRequest.cc + src/model/SendChatappMassMessageResult.cc + src/model/SendChatappMessageRequest.cc + src/model/SendChatappMessageResult.cc + src/model/SubmitIsvCustomerTermsRequest.cc + src/model/SubmitIsvCustomerTermsResult.cc + src/model/UpdateAccountWebhookRequest.cc + src/model/UpdateAccountWebhookResult.cc + src/model/UpdatePhoneWebhookRequest.cc + src/model/UpdatePhoneWebhookResult.cc ) add_library(cams ${LIB_TYPE} ${cams_public_header} diff --git a/cams/include/alibabacloud/cams/CamsClient.h b/cams/include/alibabacloud/cams/CamsClient.h index d987f5740..0f29dfd42 100644 --- a/cams/include/alibabacloud/cams/CamsClient.h +++ b/cams/include/alibabacloud/cams/CamsClient.h @@ -22,10 +22,66 @@ #include #include #include "CamsExport.h" -#include "model/CheckContactsRequest.h" -#include "model/CheckContactsResult.h" -#include "model/SendMessageRequest.h" -#include "model/SendMessageResult.h" +#include "model/BeeBotAssociateRequest.h" +#include "model/BeeBotAssociateResult.h" +#include "model/BeeBotChatRequest.h" +#include "model/BeeBotChatResult.h" +#include "model/ChatappBindWabaRequest.h" +#include "model/ChatappBindWabaResult.h" +#include "model/ChatappEmbedSignUpRequest.h" +#include "model/ChatappEmbedSignUpResult.h" +#include "model/ChatappMigrationRegisterRequest.h" +#include "model/ChatappMigrationRegisterResult.h" +#include "model/ChatappMigrationVerifiedRequest.h" +#include "model/ChatappMigrationVerifiedResult.h" +#include "model/ChatappPhoneNumberRegisterRequest.h" +#include "model/ChatappPhoneNumberRegisterResult.h" +#include "model/ChatappSyncPhoneNumberRequest.h" +#include "model/ChatappSyncPhoneNumberResult.h" +#include "model/ChatappVerifyAndRegisterRequest.h" +#include "model/ChatappVerifyAndRegisterResult.h" +#include "model/CreateChatappMigrationInitiateRequest.h" +#include "model/CreateChatappMigrationInitiateResult.h" +#include "model/CreateChatappTemplateRequest.h" +#include "model/CreateChatappTemplateResult.h" +#include "model/DeleteChatappTemplateRequest.h" +#include "model/DeleteChatappTemplateResult.h" +#include "model/GetChatappTemplateDetailRequest.h" +#include "model/GetChatappTemplateDetailResult.h" +#include "model/GetChatappUploadAuthorizationRequest.h" +#include "model/GetChatappUploadAuthorizationResult.h" +#include "model/GetChatappVerifyCodeRequest.h" +#include "model/GetChatappVerifyCodeResult.h" +#include "model/GetMigrationVerifyCodeRequest.h" +#include "model/GetMigrationVerifyCodeResult.h" +#include "model/GetPhoneNumberVerificationStatusRequest.h" +#include "model/GetPhoneNumberVerificationStatusResult.h" +#include "model/IsvGetAppIdRequest.h" +#include "model/IsvGetAppIdResult.h" +#include "model/ListChatappTemplateRequest.h" +#include "model/ListChatappTemplateResult.h" +#include "model/ModifyChatappTemplateRequest.h" +#include "model/ModifyChatappTemplateResult.h" +#include "model/ModifyPhoneBusinessProfileRequest.h" +#include "model/ModifyPhoneBusinessProfileResult.h" +#include "model/QueryChatappBindWabaRequest.h" +#include "model/QueryChatappBindWabaResult.h" +#include "model/QueryChatappPhoneNumbersRequest.h" +#include "model/QueryChatappPhoneNumbersResult.h" +#include "model/QueryPhoneBusinessProfileRequest.h" +#include "model/QueryPhoneBusinessProfileResult.h" +#include "model/QueryWabaBusinessInfoRequest.h" +#include "model/QueryWabaBusinessInfoResult.h" +#include "model/SendChatappMassMessageRequest.h" +#include "model/SendChatappMassMessageResult.h" +#include "model/SendChatappMessageRequest.h" +#include "model/SendChatappMessageResult.h" +#include "model/SubmitIsvCustomerTermsRequest.h" +#include "model/SubmitIsvCustomerTermsResult.h" +#include "model/UpdateAccountWebhookRequest.h" +#include "model/UpdateAccountWebhookResult.h" +#include "model/UpdatePhoneWebhookRequest.h" +#include "model/UpdatePhoneWebhookResult.h" namespace AlibabaCloud @@ -35,23 +91,191 @@ namespace AlibabaCloud class ALIBABACLOUD_CAMS_EXPORT CamsClient : public RpcServiceClient { public: - typedef Outcome CheckContactsOutcome; - typedef std::future CheckContactsOutcomeCallable; - typedef std::function&)> CheckContactsAsyncHandler; - typedef Outcome SendMessageOutcome; - typedef std::future SendMessageOutcomeCallable; - typedef std::function&)> SendMessageAsyncHandler; + typedef Outcome BeeBotAssociateOutcome; + typedef std::future BeeBotAssociateOutcomeCallable; + typedef std::function&)> BeeBotAssociateAsyncHandler; + typedef Outcome BeeBotChatOutcome; + typedef std::future BeeBotChatOutcomeCallable; + typedef std::function&)> BeeBotChatAsyncHandler; + typedef Outcome ChatappBindWabaOutcome; + typedef std::future ChatappBindWabaOutcomeCallable; + typedef std::function&)> ChatappBindWabaAsyncHandler; + typedef Outcome ChatappEmbedSignUpOutcome; + typedef std::future ChatappEmbedSignUpOutcomeCallable; + typedef std::function&)> ChatappEmbedSignUpAsyncHandler; + typedef Outcome ChatappMigrationRegisterOutcome; + typedef std::future ChatappMigrationRegisterOutcomeCallable; + typedef std::function&)> ChatappMigrationRegisterAsyncHandler; + typedef Outcome ChatappMigrationVerifiedOutcome; + typedef std::future ChatappMigrationVerifiedOutcomeCallable; + typedef std::function&)> ChatappMigrationVerifiedAsyncHandler; + typedef Outcome ChatappPhoneNumberRegisterOutcome; + typedef std::future ChatappPhoneNumberRegisterOutcomeCallable; + typedef std::function&)> ChatappPhoneNumberRegisterAsyncHandler; + typedef Outcome ChatappSyncPhoneNumberOutcome; + typedef std::future ChatappSyncPhoneNumberOutcomeCallable; + typedef std::function&)> ChatappSyncPhoneNumberAsyncHandler; + typedef Outcome ChatappVerifyAndRegisterOutcome; + typedef std::future ChatappVerifyAndRegisterOutcomeCallable; + typedef std::function&)> ChatappVerifyAndRegisterAsyncHandler; + typedef Outcome CreateChatappMigrationInitiateOutcome; + typedef std::future CreateChatappMigrationInitiateOutcomeCallable; + typedef std::function&)> CreateChatappMigrationInitiateAsyncHandler; + typedef Outcome CreateChatappTemplateOutcome; + typedef std::future CreateChatappTemplateOutcomeCallable; + typedef std::function&)> CreateChatappTemplateAsyncHandler; + typedef Outcome DeleteChatappTemplateOutcome; + typedef std::future DeleteChatappTemplateOutcomeCallable; + typedef std::function&)> DeleteChatappTemplateAsyncHandler; + typedef Outcome GetChatappTemplateDetailOutcome; + typedef std::future GetChatappTemplateDetailOutcomeCallable; + typedef std::function&)> GetChatappTemplateDetailAsyncHandler; + typedef Outcome GetChatappUploadAuthorizationOutcome; + typedef std::future GetChatappUploadAuthorizationOutcomeCallable; + typedef std::function&)> GetChatappUploadAuthorizationAsyncHandler; + typedef Outcome GetChatappVerifyCodeOutcome; + typedef std::future GetChatappVerifyCodeOutcomeCallable; + typedef std::function&)> GetChatappVerifyCodeAsyncHandler; + typedef Outcome GetMigrationVerifyCodeOutcome; + typedef std::future GetMigrationVerifyCodeOutcomeCallable; + typedef std::function&)> GetMigrationVerifyCodeAsyncHandler; + typedef Outcome GetPhoneNumberVerificationStatusOutcome; + typedef std::future GetPhoneNumberVerificationStatusOutcomeCallable; + typedef std::function&)> GetPhoneNumberVerificationStatusAsyncHandler; + typedef Outcome IsvGetAppIdOutcome; + typedef std::future IsvGetAppIdOutcomeCallable; + typedef std::function&)> IsvGetAppIdAsyncHandler; + typedef Outcome ListChatappTemplateOutcome; + typedef std::future ListChatappTemplateOutcomeCallable; + typedef std::function&)> ListChatappTemplateAsyncHandler; + typedef Outcome ModifyChatappTemplateOutcome; + typedef std::future ModifyChatappTemplateOutcomeCallable; + typedef std::function&)> ModifyChatappTemplateAsyncHandler; + typedef Outcome ModifyPhoneBusinessProfileOutcome; + typedef std::future ModifyPhoneBusinessProfileOutcomeCallable; + typedef std::function&)> ModifyPhoneBusinessProfileAsyncHandler; + typedef Outcome QueryChatappBindWabaOutcome; + typedef std::future QueryChatappBindWabaOutcomeCallable; + typedef std::function&)> QueryChatappBindWabaAsyncHandler; + typedef Outcome QueryChatappPhoneNumbersOutcome; + typedef std::future QueryChatappPhoneNumbersOutcomeCallable; + typedef std::function&)> QueryChatappPhoneNumbersAsyncHandler; + typedef Outcome QueryPhoneBusinessProfileOutcome; + typedef std::future QueryPhoneBusinessProfileOutcomeCallable; + typedef std::function&)> QueryPhoneBusinessProfileAsyncHandler; + typedef Outcome QueryWabaBusinessInfoOutcome; + typedef std::future QueryWabaBusinessInfoOutcomeCallable; + typedef std::function&)> QueryWabaBusinessInfoAsyncHandler; + typedef Outcome SendChatappMassMessageOutcome; + typedef std::future SendChatappMassMessageOutcomeCallable; + typedef std::function&)> SendChatappMassMessageAsyncHandler; + typedef Outcome SendChatappMessageOutcome; + typedef std::future SendChatappMessageOutcomeCallable; + typedef std::function&)> SendChatappMessageAsyncHandler; + typedef Outcome SubmitIsvCustomerTermsOutcome; + typedef std::future SubmitIsvCustomerTermsOutcomeCallable; + typedef std::function&)> SubmitIsvCustomerTermsAsyncHandler; + typedef Outcome UpdateAccountWebhookOutcome; + typedef std::future UpdateAccountWebhookOutcomeCallable; + typedef std::function&)> UpdateAccountWebhookAsyncHandler; + typedef Outcome UpdatePhoneWebhookOutcome; + typedef std::future UpdatePhoneWebhookOutcomeCallable; + typedef std::function&)> UpdatePhoneWebhookAsyncHandler; CamsClient(const Credentials &credentials, const ClientConfiguration &configuration); CamsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CamsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CamsClient(); - CheckContactsOutcome checkContacts(const Model::CheckContactsRequest &request)const; - void checkContactsAsync(const Model::CheckContactsRequest& request, const CheckContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CheckContactsOutcomeCallable checkContactsCallable(const Model::CheckContactsRequest& request) const; - SendMessageOutcome sendMessage(const Model::SendMessageRequest &request)const; - void sendMessageAsync(const Model::SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SendMessageOutcomeCallable sendMessageCallable(const Model::SendMessageRequest& request) const; + BeeBotAssociateOutcome beeBotAssociate(const Model::BeeBotAssociateRequest &request)const; + void beeBotAssociateAsync(const Model::BeeBotAssociateRequest& request, const BeeBotAssociateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BeeBotAssociateOutcomeCallable beeBotAssociateCallable(const Model::BeeBotAssociateRequest& request) const; + BeeBotChatOutcome beeBotChat(const Model::BeeBotChatRequest &request)const; + void beeBotChatAsync(const Model::BeeBotChatRequest& request, const BeeBotChatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BeeBotChatOutcomeCallable beeBotChatCallable(const Model::BeeBotChatRequest& request) const; + ChatappBindWabaOutcome chatappBindWaba(const Model::ChatappBindWabaRequest &request)const; + void chatappBindWabaAsync(const Model::ChatappBindWabaRequest& request, const ChatappBindWabaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappBindWabaOutcomeCallable chatappBindWabaCallable(const Model::ChatappBindWabaRequest& request) const; + ChatappEmbedSignUpOutcome chatappEmbedSignUp(const Model::ChatappEmbedSignUpRequest &request)const; + void chatappEmbedSignUpAsync(const Model::ChatappEmbedSignUpRequest& request, const ChatappEmbedSignUpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappEmbedSignUpOutcomeCallable chatappEmbedSignUpCallable(const Model::ChatappEmbedSignUpRequest& request) const; + ChatappMigrationRegisterOutcome chatappMigrationRegister(const Model::ChatappMigrationRegisterRequest &request)const; + void chatappMigrationRegisterAsync(const Model::ChatappMigrationRegisterRequest& request, const ChatappMigrationRegisterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappMigrationRegisterOutcomeCallable chatappMigrationRegisterCallable(const Model::ChatappMigrationRegisterRequest& request) const; + ChatappMigrationVerifiedOutcome chatappMigrationVerified(const Model::ChatappMigrationVerifiedRequest &request)const; + void chatappMigrationVerifiedAsync(const Model::ChatappMigrationVerifiedRequest& request, const ChatappMigrationVerifiedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappMigrationVerifiedOutcomeCallable chatappMigrationVerifiedCallable(const Model::ChatappMigrationVerifiedRequest& request) const; + ChatappPhoneNumberRegisterOutcome chatappPhoneNumberRegister(const Model::ChatappPhoneNumberRegisterRequest &request)const; + void chatappPhoneNumberRegisterAsync(const Model::ChatappPhoneNumberRegisterRequest& request, const ChatappPhoneNumberRegisterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappPhoneNumberRegisterOutcomeCallable chatappPhoneNumberRegisterCallable(const Model::ChatappPhoneNumberRegisterRequest& request) const; + ChatappSyncPhoneNumberOutcome chatappSyncPhoneNumber(const Model::ChatappSyncPhoneNumberRequest &request)const; + void chatappSyncPhoneNumberAsync(const Model::ChatappSyncPhoneNumberRequest& request, const ChatappSyncPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappSyncPhoneNumberOutcomeCallable chatappSyncPhoneNumberCallable(const Model::ChatappSyncPhoneNumberRequest& request) const; + ChatappVerifyAndRegisterOutcome chatappVerifyAndRegister(const Model::ChatappVerifyAndRegisterRequest &request)const; + void chatappVerifyAndRegisterAsync(const Model::ChatappVerifyAndRegisterRequest& request, const ChatappVerifyAndRegisterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChatappVerifyAndRegisterOutcomeCallable chatappVerifyAndRegisterCallable(const Model::ChatappVerifyAndRegisterRequest& request) const; + CreateChatappMigrationInitiateOutcome createChatappMigrationInitiate(const Model::CreateChatappMigrationInitiateRequest &request)const; + void createChatappMigrationInitiateAsync(const Model::CreateChatappMigrationInitiateRequest& request, const CreateChatappMigrationInitiateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateChatappMigrationInitiateOutcomeCallable createChatappMigrationInitiateCallable(const Model::CreateChatappMigrationInitiateRequest& request) const; + CreateChatappTemplateOutcome createChatappTemplate(const Model::CreateChatappTemplateRequest &request)const; + void createChatappTemplateAsync(const Model::CreateChatappTemplateRequest& request, const CreateChatappTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateChatappTemplateOutcomeCallable createChatappTemplateCallable(const Model::CreateChatappTemplateRequest& request) const; + DeleteChatappTemplateOutcome deleteChatappTemplate(const Model::DeleteChatappTemplateRequest &request)const; + void deleteChatappTemplateAsync(const Model::DeleteChatappTemplateRequest& request, const DeleteChatappTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteChatappTemplateOutcomeCallable deleteChatappTemplateCallable(const Model::DeleteChatappTemplateRequest& request) const; + GetChatappTemplateDetailOutcome getChatappTemplateDetail(const Model::GetChatappTemplateDetailRequest &request)const; + void getChatappTemplateDetailAsync(const Model::GetChatappTemplateDetailRequest& request, const GetChatappTemplateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetChatappTemplateDetailOutcomeCallable getChatappTemplateDetailCallable(const Model::GetChatappTemplateDetailRequest& request) const; + GetChatappUploadAuthorizationOutcome getChatappUploadAuthorization(const Model::GetChatappUploadAuthorizationRequest &request)const; + void getChatappUploadAuthorizationAsync(const Model::GetChatappUploadAuthorizationRequest& request, const GetChatappUploadAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetChatappUploadAuthorizationOutcomeCallable getChatappUploadAuthorizationCallable(const Model::GetChatappUploadAuthorizationRequest& request) const; + GetChatappVerifyCodeOutcome getChatappVerifyCode(const Model::GetChatappVerifyCodeRequest &request)const; + void getChatappVerifyCodeAsync(const Model::GetChatappVerifyCodeRequest& request, const GetChatappVerifyCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetChatappVerifyCodeOutcomeCallable getChatappVerifyCodeCallable(const Model::GetChatappVerifyCodeRequest& request) const; + GetMigrationVerifyCodeOutcome getMigrationVerifyCode(const Model::GetMigrationVerifyCodeRequest &request)const; + void getMigrationVerifyCodeAsync(const Model::GetMigrationVerifyCodeRequest& request, const GetMigrationVerifyCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMigrationVerifyCodeOutcomeCallable getMigrationVerifyCodeCallable(const Model::GetMigrationVerifyCodeRequest& request) const; + GetPhoneNumberVerificationStatusOutcome getPhoneNumberVerificationStatus(const Model::GetPhoneNumberVerificationStatusRequest &request)const; + void getPhoneNumberVerificationStatusAsync(const Model::GetPhoneNumberVerificationStatusRequest& request, const GetPhoneNumberVerificationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhoneNumberVerificationStatusOutcomeCallable getPhoneNumberVerificationStatusCallable(const Model::GetPhoneNumberVerificationStatusRequest& request) const; + IsvGetAppIdOutcome isvGetAppId(const Model::IsvGetAppIdRequest &request)const; + void isvGetAppIdAsync(const Model::IsvGetAppIdRequest& request, const IsvGetAppIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IsvGetAppIdOutcomeCallable isvGetAppIdCallable(const Model::IsvGetAppIdRequest& request) const; + ListChatappTemplateOutcome listChatappTemplate(const Model::ListChatappTemplateRequest &request)const; + void listChatappTemplateAsync(const Model::ListChatappTemplateRequest& request, const ListChatappTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListChatappTemplateOutcomeCallable listChatappTemplateCallable(const Model::ListChatappTemplateRequest& request) const; + ModifyChatappTemplateOutcome modifyChatappTemplate(const Model::ModifyChatappTemplateRequest &request)const; + void modifyChatappTemplateAsync(const Model::ModifyChatappTemplateRequest& request, const ModifyChatappTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyChatappTemplateOutcomeCallable modifyChatappTemplateCallable(const Model::ModifyChatappTemplateRequest& request) const; + ModifyPhoneBusinessProfileOutcome modifyPhoneBusinessProfile(const Model::ModifyPhoneBusinessProfileRequest &request)const; + void modifyPhoneBusinessProfileAsync(const Model::ModifyPhoneBusinessProfileRequest& request, const ModifyPhoneBusinessProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPhoneBusinessProfileOutcomeCallable modifyPhoneBusinessProfileCallable(const Model::ModifyPhoneBusinessProfileRequest& request) const; + QueryChatappBindWabaOutcome queryChatappBindWaba(const Model::QueryChatappBindWabaRequest &request)const; + void queryChatappBindWabaAsync(const Model::QueryChatappBindWabaRequest& request, const QueryChatappBindWabaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryChatappBindWabaOutcomeCallable queryChatappBindWabaCallable(const Model::QueryChatappBindWabaRequest& request) const; + QueryChatappPhoneNumbersOutcome queryChatappPhoneNumbers(const Model::QueryChatappPhoneNumbersRequest &request)const; + void queryChatappPhoneNumbersAsync(const Model::QueryChatappPhoneNumbersRequest& request, const QueryChatappPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryChatappPhoneNumbersOutcomeCallable queryChatappPhoneNumbersCallable(const Model::QueryChatappPhoneNumbersRequest& request) const; + QueryPhoneBusinessProfileOutcome queryPhoneBusinessProfile(const Model::QueryPhoneBusinessProfileRequest &request)const; + void queryPhoneBusinessProfileAsync(const Model::QueryPhoneBusinessProfileRequest& request, const QueryPhoneBusinessProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPhoneBusinessProfileOutcomeCallable queryPhoneBusinessProfileCallable(const Model::QueryPhoneBusinessProfileRequest& request) const; + QueryWabaBusinessInfoOutcome queryWabaBusinessInfo(const Model::QueryWabaBusinessInfoRequest &request)const; + void queryWabaBusinessInfoAsync(const Model::QueryWabaBusinessInfoRequest& request, const QueryWabaBusinessInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryWabaBusinessInfoOutcomeCallable queryWabaBusinessInfoCallable(const Model::QueryWabaBusinessInfoRequest& request) const; + SendChatappMassMessageOutcome sendChatappMassMessage(const Model::SendChatappMassMessageRequest &request)const; + void sendChatappMassMessageAsync(const Model::SendChatappMassMessageRequest& request, const SendChatappMassMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendChatappMassMessageOutcomeCallable sendChatappMassMessageCallable(const Model::SendChatappMassMessageRequest& request) const; + SendChatappMessageOutcome sendChatappMessage(const Model::SendChatappMessageRequest &request)const; + void sendChatappMessageAsync(const Model::SendChatappMessageRequest& request, const SendChatappMessageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendChatappMessageOutcomeCallable sendChatappMessageCallable(const Model::SendChatappMessageRequest& request) const; + SubmitIsvCustomerTermsOutcome submitIsvCustomerTerms(const Model::SubmitIsvCustomerTermsRequest &request)const; + void submitIsvCustomerTermsAsync(const Model::SubmitIsvCustomerTermsRequest& request, const SubmitIsvCustomerTermsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitIsvCustomerTermsOutcomeCallable submitIsvCustomerTermsCallable(const Model::SubmitIsvCustomerTermsRequest& request) const; + UpdateAccountWebhookOutcome updateAccountWebhook(const Model::UpdateAccountWebhookRequest &request)const; + void updateAccountWebhookAsync(const Model::UpdateAccountWebhookRequest& request, const UpdateAccountWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAccountWebhookOutcomeCallable updateAccountWebhookCallable(const Model::UpdateAccountWebhookRequest& request) const; + UpdatePhoneWebhookOutcome updatePhoneWebhook(const Model::UpdatePhoneWebhookRequest &request)const; + void updatePhoneWebhookAsync(const Model::UpdatePhoneWebhookRequest& request, const UpdatePhoneWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePhoneWebhookOutcomeCallable updatePhoneWebhookCallable(const Model::UpdatePhoneWebhookRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cams/include/alibabacloud/cams/model/BeeBotAssociateRequest.h b/cams/include/alibabacloud/cams/model/BeeBotAssociateRequest.h new file mode 100644 index 000000000..1e0b2c8eb --- /dev/null +++ b/cams/include/alibabacloud/cams/model/BeeBotAssociateRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_BEEBOTASSOCIATEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_BEEBOTASSOCIATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT BeeBotAssociateRequest : public RpcServiceRequest { +public: + BeeBotAssociateRequest(); + ~BeeBotAssociateRequest(); + std::string getSessionId() const; + void setSessionId(const std::string &sessionId); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getPerspective() const; + void setPerspective(const std::string &perspective); + std::string getUtterance() const; + void setUtterance(const std::string &utterance); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + int getRecommendNum() const; + void setRecommendNum(int recommendNum); + std::string getChatBotInstanceId() const; + void setChatBotInstanceId(const std::string &chatBotInstanceId); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string sessionId_; + std::string apiCode_; + std::string perspective_; + std::string utterance_; + std::string isvCode_; + std::string prodCode_; + int recommendNum_; + std::string chatBotInstanceId_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_BEEBOTASSOCIATEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/BeeBotAssociateResult.h b/cams/include/alibabacloud/cams/model/BeeBotAssociateResult.h new file mode 100644 index 000000000..3caa5a07c --- /dev/null +++ b/cams/include/alibabacloud/cams/model/BeeBotAssociateResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_BEEBOTASSOCIATERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_BEEBOTASSOCIATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT BeeBotAssociateResult : public ServiceResult + { + public: + struct Data + { + struct 联想的列表 + { + std::string meta; + std::string title; + }; + std::vector<联想的列表> associate; + std::string sessionId; + std::string messageId; + }; + + + BeeBotAssociateResult(); + explicit BeeBotAssociateResult(const std::string &payload); + ~BeeBotAssociateResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_BEEBOTASSOCIATERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/BeeBotChatRequest.h b/cams/include/alibabacloud/cams/model/BeeBotChatRequest.h new file mode 100644 index 000000000..7161276ed --- /dev/null +++ b/cams/include/alibabacloud/cams/model/BeeBotChatRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT BeeBotChatRequest : public RpcServiceRequest { +public: + BeeBotChatRequest(); + ~BeeBotChatRequest(); + std::string getSessionId() const; + void setSessionId(const std::string &sessionId); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getIntentName() const; + void setIntentName(const std::string &intentName); + std::string getSenderNick() const; + void setSenderNick(const std::string &senderNick); + std::vector getPerspective() const; + void setPerspective(const std::vector &perspective); + std::string getUtterance() const; + void setUtterance(const std::string &utterance); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getKnowledgeId() const; + void setKnowledgeId(const std::string &knowledgeId); + std::map getVendorParam() const; + void setVendorParam(const std::map &vendorParam); + std::string getSenderId() const; + void setSenderId(const std::string &senderId); + std::string getChatBotInstanceId() const; + void setChatBotInstanceId(const std::string &chatBotInstanceId); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string sessionId_; + std::string apiCode_; + std::string intentName_; + std::string senderNick_; + std::vector perspective_; + std::string utterance_; + std::string isvCode_; + std::string prodCode_; + std::string knowledgeId_; + std::map vendorParam_; + std::string senderId_; + std::string chatBotInstanceId_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/BeeBotChatResult.h b/cams/include/alibabacloud/cams/model/BeeBotChatResult.h new file mode 100644 index 000000000..0606fd692 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/BeeBotChatResult.h @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT BeeBotChatResult : public ServiceResult + { + public: + struct Data + { + struct 消息的列表 + { + struct Knowledge + { + struct RelatedKnowledgesItem + { + std::string title; + std::string knowledgeId; + }; + std::string category; + std::string contentType; + std::string content; + std::string answerSource; + std::vector relatedKnowledges; + std::string hitStatement; + std::string summary; + std::string title; + std::string id; + }; + struct Text + { + struct SlotsItem + { + std::string origin; + bool hit; + std::string value; + std::string name; + }; + std::string ext; + std::string contentType; + std::string nodeName; + std::string userDefinedChatTitle; + std::string answerSource; + std::string hitStatement; + std::vector slots; + std::string dialogName; + std::string intentName; + std::string metaData; + std::string content; + std::string nodeId; + std::string externalFlags; + }; + struct Recommend + { + std::string answerSource; + std::string title; + std::string knowledgeId; + }; + std::string answerSource; + Text text; + std::vector<消息的列表::Recommend> recommends; + std::string answerType; + Knowledge knowledge; + }; + std::vector<消息的列表> messages; + std::string sessionId; + std::string messageId; + }; + + + BeeBotChatResult(); + explicit BeeBotChatResult(const std::string &payload); + ~BeeBotChatResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappBindWabaRequest.h b/cams/include/alibabacloud/cams/model/ChatappBindWabaRequest.h new file mode 100644 index 000000000..3bd4d459e --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappBindWabaRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABAREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappBindWabaRequest : public RpcServiceRequest { +public: + ChatappBindWabaRequest(); + ~ChatappBindWabaRequest(); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getWabaId() const; + void setWabaId(const std::string &wabaId); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + +private: + std::string prodCode_; + std::string wabaId_; + std::string apiCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABAREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/SendMessageResult.h b/cams/include/alibabacloud/cams/model/ChatappBindWabaResult.h similarity index 60% rename from cams/include/alibabacloud/cams/model/SendMessageResult.h rename to cams/include/alibabacloud/cams/model/ChatappBindWabaResult.h index 925fc61c5..e3edb1974 100644 --- a/cams/include/alibabacloud/cams/model/SendMessageResult.h +++ b/cams/include/alibabacloud/cams/model/ChatappBindWabaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAMS_MODEL_SENDMESSAGERESULT_H_ -#define ALIBABACLOUD_CAMS_MODEL_SENDMESSAGERESULT_H_ +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABARESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABARESULT_H_ #include #include @@ -29,33 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAMS_EXPORT SendMessageResult : public ServiceResult + class ALIBABACLOUD_CAMS_EXPORT ChatappBindWabaResult : public ServiceResult { public: - struct Module + struct Data { - std::string toId; - std::string fromId; - std::string messageId; + std::string custSpaceId; + std::string wabaId; }; - SendMessageResult(); - explicit SendMessageResult(const std::string &payload); - ~SendMessageResult(); - Module getModule()const; - std::string getResultMessage()const; - std::string getResultCode()const; + ChatappBindWabaResult(); + explicit ChatappBindWabaResult(const std::string &payload); + ~ChatappBindWabaResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; protected: void parse(const std::string &payload); private: - Module module_; - std::string resultMessage_; - std::string resultCode_; + std::string message_; + Data data_; + std::string code_; }; } } } -#endif // !ALIBABACLOUD_CAMS_MODEL_SENDMESSAGERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABARESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappEmbedSignUpRequest.h b/cams/include/alibabacloud/cams/model/ChatappEmbedSignUpRequest.h new file mode 100644 index 000000000..cf954fe9c --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappEmbedSignUpRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappEmbedSignUpRequest : public RpcServiceRequest { +public: + ChatappEmbedSignUpRequest(); + ~ChatappEmbedSignUpRequest(); + std::string getInputToken() const; + void setInputToken(const std::string &inputToken); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + +private: + std::string inputToken_; + std::string prodCode_; + std::string apiCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ChatappEmbedSignUpResult.h b/cams/include/alibabacloud/cams/model/ChatappEmbedSignUpResult.h new file mode 100644 index 000000000..38006011a --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappEmbedSignUpResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ChatappEmbedSignUpResult : public ServiceResult + { + public: + struct Waba列表 + { + std::string currency; + std::string id; + std::string accountReviewStatus; + std::string messageTemplateNamespace; + std::string name; + }; + + + ChatappEmbedSignUpResult(); + explicit ChatappEmbedSignUpResult(const std::string &payload); + ~ChatappEmbedSignUpResult(); + std::string getMessage()const; + std::vector getWabas()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector wabas_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappMigrationRegisterRequest.h b/cams/include/alibabacloud/cams/model/ChatappMigrationRegisterRequest.h new file mode 100644 index 000000000..ab18fc00e --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappMigrationRegisterRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONREGISTERREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONREGISTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappMigrationRegisterRequest : public RpcServiceRequest { +public: + ChatappMigrationRegisterRequest(); + ~ChatappMigrationRegisterRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONREGISTERREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ChatappMigrationRegisterResult.h b/cams/include/alibabacloud/cams/model/ChatappMigrationRegisterResult.h new file mode 100644 index 000000000..d38a59daf --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappMigrationRegisterResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONREGISTERRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONREGISTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ChatappMigrationRegisterResult : public ServiceResult + { + public: + + + ChatappMigrationRegisterResult(); + explicit ChatappMigrationRegisterResult(const std::string &payload); + ~ChatappMigrationRegisterResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONREGISTERRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappMigrationVerifiedRequest.h b/cams/include/alibabacloud/cams/model/ChatappMigrationVerifiedRequest.h new file mode 100644 index 000000000..9d54d0272 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappMigrationVerifiedRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappMigrationVerifiedRequest : public RpcServiceRequest { +public: + ChatappMigrationVerifiedRequest(); + ~ChatappMigrationVerifiedRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getVerifyCode() const; + void setVerifyCode(const std::string &verifyCode); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string verifyCode_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/CheckContactsResult.h b/cams/include/alibabacloud/cams/model/ChatappMigrationVerifiedResult.h similarity index 60% rename from cams/include/alibabacloud/cams/model/CheckContactsResult.h rename to cams/include/alibabacloud/cams/model/ChatappMigrationVerifiedResult.h index d16aeb2ec..98b6b7d4e 100644 --- a/cams/include/alibabacloud/cams/model/CheckContactsResult.h +++ b/cams/include/alibabacloud/cams/model/ChatappMigrationVerifiedResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_ -#define ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_ +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDRESULT_H_ #include #include @@ -29,32 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAMS_EXPORT CheckContactsResult : public ServiceResult + class ALIBABACLOUD_CAMS_EXPORT ChatappMigrationVerifiedResult : public ServiceResult { public: - struct ContactStatus + struct Data { - std::string status; std::string phoneNumber; + std::string id; }; - CheckContactsResult(); - explicit CheckContactsResult(const std::string &payload); - ~CheckContactsResult(); - std::vector getContacts()const; - std::string getResultMessage()const; - std::string getResultCode()const; + ChatappMigrationVerifiedResult(); + explicit ChatappMigrationVerifiedResult(const std::string &payload); + ~ChatappMigrationVerifiedResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; protected: void parse(const std::string &payload); private: - std::vector contacts_; - std::string resultMessage_; - std::string resultCode_; + std::string message_; + Data data_; + std::string code_; }; } } } -#endif // !ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappPhoneNumberRegisterRequest.h b/cams/include/alibabacloud/cams/model/ChatappPhoneNumberRegisterRequest.h new file mode 100644 index 000000000..b4ceda47e --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappPhoneNumberRegisterRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERREGISTERREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERREGISTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappPhoneNumberRegisterRequest : public RpcServiceRequest { +public: + ChatappPhoneNumberRegisterRequest(); + ~ChatappPhoneNumberRegisterRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERREGISTERREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ChatappPhoneNumberRegisterResult.h b/cams/include/alibabacloud/cams/model/ChatappPhoneNumberRegisterResult.h new file mode 100644 index 000000000..2306358da --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappPhoneNumberRegisterResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERREGISTERRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERREGISTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ChatappPhoneNumberRegisterResult : public ServiceResult + { + public: + + + ChatappPhoneNumberRegisterResult(); + explicit ChatappPhoneNumberRegisterResult(const std::string &payload); + ~ChatappPhoneNumberRegisterResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPPHONENUMBERREGISTERRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappSyncPhoneNumberRequest.h b/cams/include/alibabacloud/cams/model/ChatappSyncPhoneNumberRequest.h new file mode 100644 index 000000000..af4f2331c --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappSyncPhoneNumberRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappSyncPhoneNumberRequest : public RpcServiceRequest { +public: + ChatappSyncPhoneNumberRequest(); + ~ChatappSyncPhoneNumberRequest(); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string prodCode_; + std::string apiCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ChatappSyncPhoneNumberResult.h b/cams/include/alibabacloud/cams/model/ChatappSyncPhoneNumberResult.h new file mode 100644 index 000000000..5537718e8 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappSyncPhoneNumberResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ChatappSyncPhoneNumberResult : public ServiceResult + { + public: + struct PhoneNumbersItem + { + std::string verifiedName; + std::string status; + std::string qualityRating; + std::string codeVerificationStatus; + std::string newNameStatus; + std::string phoneNumber; + std::string statusQueue; + std::string upQueue; + std::string nameStatus; + std::string upCallbackUrl; + std::string messagingLimitTier; + std::string statusCallbackUrl; + }; + + + ChatappSyncPhoneNumberResult(); + explicit ChatappSyncPhoneNumberResult(const std::string &payload); + ~ChatappSyncPhoneNumberResult(); + std::vector getPhoneNumbers()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector phoneNumbers_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ChatappVerifyAndRegisterRequest.h b/cams/include/alibabacloud/cams/model/ChatappVerifyAndRegisterRequest.h new file mode 100644 index 000000000..f80c9f95b --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappVerifyAndRegisterRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPVERIFYANDREGISTERREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPVERIFYANDREGISTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ChatappVerifyAndRegisterRequest : public RpcServiceRequest { +public: + ChatappVerifyAndRegisterRequest(); + ~ChatappVerifyAndRegisterRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getVerifyCode() const; + void setVerifyCode(const std::string &verifyCode); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string verifyCode_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPVERIFYANDREGISTERREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ChatappVerifyAndRegisterResult.h b/cams/include/alibabacloud/cams/model/ChatappVerifyAndRegisterResult.h new file mode 100644 index 000000000..2a3af6b8c --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ChatappVerifyAndRegisterResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CHATAPPVERIFYANDREGISTERRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CHATAPPVERIFYANDREGISTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ChatappVerifyAndRegisterResult : public ServiceResult + { + public: + + + ChatappVerifyAndRegisterResult(); + explicit ChatappVerifyAndRegisterResult(const std::string &payload); + ~ChatappVerifyAndRegisterResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPVERIFYANDREGISTERRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/CheckContactsRequest.h b/cams/include/alibabacloud/cams/model/CheckContactsRequest.h deleted file mode 100644 index 6b985e563..000000000 --- a/cams/include/alibabacloud/cams/model/CheckContactsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSREQUEST_H_ -#define ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cams - { - namespace Model - { - class ALIBABACLOUD_CAMS_EXPORT CheckContactsRequest : public RpcServiceRequest - { - - public: - CheckContactsRequest(); - ~CheckContactsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getChannelType()const; - void setChannelType(const std::string& channelType); - std::string getFrom()const; - void setFrom(const std::string& from); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getContacts()const; - void setContacts(const std::string& contacts); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string channelType_; - std::string from_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string contacts_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSREQUEST_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/CreateChatappMigrationInitiateRequest.h b/cams/include/alibabacloud/cams/model/CreateChatappMigrationInitiateRequest.h new file mode 100644 index 000000000..233f2d153 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/CreateChatappMigrationInitiateRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPMIGRATIONINITIATEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPMIGRATIONINITIATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT CreateChatappMigrationInitiateRequest : public RpcServiceRequest { +public: + CreateChatappMigrationInitiateRequest(); + ~CreateChatappMigrationInitiateRequest(); + std::string getMobileNumber() const; + void setMobileNumber(const std::string &mobileNumber); + std::string getCountryCode() const; + void setCountryCode(const std::string &countryCode); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string mobileNumber_; + std::string countryCode_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPMIGRATIONINITIATEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/CreateChatappMigrationInitiateResult.h b/cams/include/alibabacloud/cams/model/CreateChatappMigrationInitiateResult.h new file mode 100644 index 000000000..b3384b520 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/CreateChatappMigrationInitiateResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPMIGRATIONINITIATERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPMIGRATIONINITIATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT CreateChatappMigrationInitiateResult : public ServiceResult + { + public: + struct Data + { + std::string status; + std::string phoneNumber; + std::string id; + }; + + + CreateChatappMigrationInitiateResult(); + explicit CreateChatappMigrationInitiateResult(const std::string &payload); + ~CreateChatappMigrationInitiateResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPMIGRATIONINITIATERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/CreateChatappTemplateRequest.h b/cams/include/alibabacloud/cams/model/CreateChatappTemplateRequest.h new file mode 100644 index 000000000..f7bf42d38 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/CreateChatappTemplateRequest.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT CreateChatappTemplateRequest : public RpcServiceRequest { +public: + struct Components { + std::string type; + std::string text; + std::string format; + std::string url; + std::string caption; + std::string fileName; + struct ButtonsItem { + std::string type; + std::string text; + std::string phoneNumber; + std::string url; + std::string urlType; + }; + ButtonsItem buttonsItem; + std::vector buttons; + std::string thumbUrl; + int duration; + std::string fileType; + }; + CreateChatappTemplateRequest(); + ~CreateChatappTemplateRequest(); + std::vector getComponents() const; + void setComponents(const std::vector &components); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::map getExample() const; + void setExample(const std::map &example); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getTemplateType() const; + void setTemplateType(const std::string &templateType); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getName() const; + void setName(const std::string &name); + bool getAllowCategoryChange() const; + void setAllowCategoryChange(bool allowCategoryChange); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::vector components_; + std::string language_; + std::string custWabaId_; + std::map example_; + std::string apiCode_; + std::string templateType_; + std::string isvCode_; + std::string prodCode_; + std::string custSpaceId_; + std::string name_; + bool allowCategoryChange_; + std::string category_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPTEMPLATEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/CreateChatappTemplateResult.h b/cams/include/alibabacloud/cams/model/CreateChatappTemplateResult.h new file mode 100644 index 000000000..b9eb0f548 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/CreateChatappTemplateResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPTEMPLATERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT CreateChatappTemplateResult : public ServiceResult + { + public: + struct Data + { + std::string templateCode; + std::string templateName; + }; + + + CreateChatappTemplateResult(); + explicit CreateChatappTemplateResult(const std::string &payload); + ~CreateChatappTemplateResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_CREATECHATAPPTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/DeleteChatappTemplateRequest.h b/cams/include/alibabacloud/cams/model/DeleteChatappTemplateRequest.h new file mode 100644 index 000000000..b2a8237ce --- /dev/null +++ b/cams/include/alibabacloud/cams/model/DeleteChatappTemplateRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_DELETECHATAPPTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_DELETECHATAPPTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT DeleteChatappTemplateRequest : public RpcServiceRequest { +public: + DeleteChatappTemplateRequest(); + ~DeleteChatappTemplateRequest(); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getTemplateCode() const; + void setTemplateCode(const std::string &templateCode); + +private: + std::string custWabaId_; + std::string apiCode_; + std::string isvCode_; + std::string prodCode_; + std::string custSpaceId_; + std::string templateCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_DELETECHATAPPTEMPLATEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/DeleteChatappTemplateResult.h b/cams/include/alibabacloud/cams/model/DeleteChatappTemplateResult.h new file mode 100644 index 000000000..ef8840ed2 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/DeleteChatappTemplateResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_DELETECHATAPPTEMPLATERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_DELETECHATAPPTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT DeleteChatappTemplateResult : public ServiceResult + { + public: + + + DeleteChatappTemplateResult(); + explicit DeleteChatappTemplateResult(const std::string &payload); + ~DeleteChatappTemplateResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_DELETECHATAPPTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/GetChatappTemplateDetailRequest.h b/cams/include/alibabacloud/cams/model/GetChatappTemplateDetailRequest.h new file mode 100644 index 000000000..ac56c087f --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetChatappTemplateDetailRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEDETAILREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT GetChatappTemplateDetailRequest : public RpcServiceRequest { +public: + GetChatappTemplateDetailRequest(); + ~GetChatappTemplateDetailRequest(); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getTemplateType() const; + void setTemplateType(const std::string &templateType); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getTemplateCode() const; + void setTemplateCode(const std::string &templateCode); + +private: + std::string language_; + std::string custWabaId_; + std::string apiCode_; + std::string templateType_; + std::string isvCode_; + std::string prodCode_; + std::string custSpaceId_; + std::string templateCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEDETAILREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/GetChatappTemplateDetailResult.h b/cams/include/alibabacloud/cams/model/GetChatappTemplateDetailResult.h new file mode 100644 index 000000000..f331d01fb --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetChatappTemplateDetailResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEDETAILRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT GetChatappTemplateDetailResult : public ServiceResult + { + public: + struct Data + { + struct Component + { + struct Button + { + std::string type; + std::string phoneNumber; + std::string text; + std::string urlType; + std::string url; + }; + std::string thumbUrl; + std::string fileName; + std::string text; + int duration; + std::string latitude; + std::string longitude; + std::string url; + std::string caption; + std::string locationName; + std::string type; + std::string format; + std::string fileType; + std::string locationAddress; + std::vector buttons; + }; + std::vector components; + std::string templateCode; + std::string category; + std::string auditStatus; + std::string language; + std::string example; + std::string templateType; + std::string name; + }; + + + GetChatappTemplateDetailResult(); + explicit GetChatappTemplateDetailResult(const std::string &payload); + ~GetChatappTemplateDetailResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPTEMPLATEDETAILRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/GetChatappUploadAuthorizationRequest.h b/cams/include/alibabacloud/cams/model/GetChatappUploadAuthorizationRequest.h new file mode 100644 index 000000000..fc59cb868 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetChatappUploadAuthorizationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPUPLOADAUTHORIZATIONREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPUPLOADAUTHORIZATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT GetChatappUploadAuthorizationRequest : public RpcServiceRequest { +public: + GetChatappUploadAuthorizationRequest(); + ~GetChatappUploadAuthorizationRequest(); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string prodCode_; + std::string apiCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPUPLOADAUTHORIZATIONREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/GetChatappUploadAuthorizationResult.h b/cams/include/alibabacloud/cams/model/GetChatappUploadAuthorizationResult.h new file mode 100644 index 000000000..e32893db7 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetChatappUploadAuthorizationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPUPLOADAUTHORIZATIONRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPUPLOADAUTHORIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT GetChatappUploadAuthorizationResult : public ServiceResult + { + public: + struct Data + { + std::string securityToken; + int expire; + std::string bucketName; + std::string accessKeyId; + std::string accessKeySecret; + std::string endPoint; + std::string dir; + }; + + + GetChatappUploadAuthorizationResult(); + explicit GetChatappUploadAuthorizationResult(const std::string &payload); + ~GetChatappUploadAuthorizationResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPUPLOADAUTHORIZATIONRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/GetChatappVerifyCodeRequest.h b/cams/include/alibabacloud/cams/model/GetChatappVerifyCodeRequest.h new file mode 100644 index 000000000..ce498d1f7 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetChatappVerifyCodeRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPVERIFYCODEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPVERIFYCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT GetChatappVerifyCodeRequest : public RpcServiceRequest { +public: + GetChatappVerifyCodeRequest(); + ~GetChatappVerifyCodeRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getLocale() const; + void setLocale(const std::string &locale); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getMethod() const; + void setMethod(const std::string &method); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string locale_; + std::string apiCode_; + std::string method_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPVERIFYCODEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h b/cams/include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h new file mode 100644 index 000000000..0908b1344 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETCHATAPPVERIFYCODERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETCHATAPPVERIFYCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT GetChatappVerifyCodeResult : public ServiceResult + { + public: + + + GetChatappVerifyCodeResult(); + explicit GetChatappVerifyCodeResult(const std::string &payload); + ~GetChatappVerifyCodeResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_GETCHATAPPVERIFYCODERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h b/cams/include/alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h new file mode 100644 index 000000000..0aa95a60a --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETMIGRATIONVERIFYCODEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETMIGRATIONVERIFYCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT GetMigrationVerifyCodeRequest : public RpcServiceRequest { +public: + GetMigrationVerifyCodeRequest(); + ~GetMigrationVerifyCodeRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getLocale() const; + void setLocale(const std::string &locale); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getMethod() const; + void setMethod(const std::string &method); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string locale_; + std::string apiCode_; + std::string method_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_GETMIGRATIONVERIFYCODEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/GetMigrationVerifyCodeResult.h b/cams/include/alibabacloud/cams/model/GetMigrationVerifyCodeResult.h new file mode 100644 index 000000000..f7b2b265d --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetMigrationVerifyCodeResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETMIGRATIONVERIFYCODERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETMIGRATIONVERIFYCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT GetMigrationVerifyCodeResult : public ServiceResult + { + public: + struct Data + { + std::string phoneNumber; + std::string id; + }; + + + GetMigrationVerifyCodeResult(); + explicit GetMigrationVerifyCodeResult(const std::string &payload); + ~GetMigrationVerifyCodeResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_GETMIGRATIONVERIFYCODERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusRequest.h b/cams/include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusRequest.h new file mode 100644 index 000000000..5be77addb --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETPHONENUMBERVERIFICATIONSTATUSREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETPHONENUMBERVERIFICATIONSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT GetPhoneNumberVerificationStatusRequest : public RpcServiceRequest { +public: + GetPhoneNumberVerificationStatusRequest(); + ~GetPhoneNumberVerificationStatusRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_GETPHONENUMBERVERIFICATIONSTATUSREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusResult.h b/cams/include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusResult.h new file mode 100644 index 000000000..40bd0a97a --- /dev/null +++ b/cams/include/alibabacloud/cams/model/GetPhoneNumberVerificationStatusResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_GETPHONENUMBERVERIFICATIONSTATUSRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_GETPHONENUMBERVERIFICATIONSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT GetPhoneNumberVerificationStatusResult : public ServiceResult + { + public: + struct Data + { + std::string codeVerificationStatus; + std::string phoneNumber; + std::string id; + }; + + + GetPhoneNumberVerificationStatusResult(); + explicit GetPhoneNumberVerificationStatusResult(const std::string &payload); + ~GetPhoneNumberVerificationStatusResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_GETPHONENUMBERVERIFICATIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/IsvGetAppIdRequest.h b/cams/include/alibabacloud/cams/model/IsvGetAppIdRequest.h new file mode 100644 index 000000000..28deccf87 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/IsvGetAppIdRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_ISVGETAPPIDREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_ISVGETAPPIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT IsvGetAppIdRequest : public RpcServiceRequest { +public: + IsvGetAppIdRequest(); + ~IsvGetAppIdRequest(); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getType() const; + void setType(const std::string &type); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + +private: + std::string prodCode_; + std::string type_; + std::string apiCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_ISVGETAPPIDREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/IsvGetAppIdResult.h b/cams/include/alibabacloud/cams/model/IsvGetAppIdResult.h new file mode 100644 index 000000000..b56708c2e --- /dev/null +++ b/cams/include/alibabacloud/cams/model/IsvGetAppIdResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_ISVGETAPPIDRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_ISVGETAPPIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT IsvGetAppIdResult : public ServiceResult + { + public: + + + IsvGetAppIdResult(); + explicit IsvGetAppIdResult(const std::string &payload); + ~IsvGetAppIdResult(); + std::string getMessage()const; + std::string getAppId()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string appId_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_ISVGETAPPIDRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ListChatappTemplateRequest.h b/cams/include/alibabacloud/cams/model/ListChatappTemplateRequest.h new file mode 100644 index 000000000..b4f83f68b --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ListChatappTemplateRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_LISTCHATAPPTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_LISTCHATAPPTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ListChatappTemplateRequest : public RpcServiceRequest { +public: + struct Page { + int index; + int size; + }; + ListChatappTemplateRequest(); + ~ListChatappTemplateRequest(); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getTemplateType() const; + void setTemplateType(const std::string &templateType); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getAuditStatus() const; + void setAuditStatus(const std::string &auditStatus); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getName() const; + void setName(const std::string &name); + Page getPage() const; + void setPage(const Page &page); + +private: + std::string language_; + std::string custWabaId_; + std::string apiCode_; + std::string templateType_; + std::string isvCode_; + std::string auditStatus_; + std::string prodCode_; + std::string custSpaceId_; + std::string name_; + Page page_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_LISTCHATAPPTEMPLATEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ListChatappTemplateResult.h b/cams/include/alibabacloud/cams/model/ListChatappTemplateResult.h new file mode 100644 index 000000000..2fad062ea --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ListChatappTemplateResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_LISTCHATAPPTEMPLATERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_LISTCHATAPPTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ListChatappTemplateResult : public ServiceResult + { + public: + struct _Template + { + std::string templateCode; + std::string auditStatus; + std::string category; + std::string language; + std::string templateName; + std::string templateType; + }; + + + ListChatappTemplateResult(); + explicit ListChatappTemplateResult(const std::string &payload); + ~ListChatappTemplateResult(); + std::string getMessage()const; + std::vector<_Template> getListTemplate()const; + int getTotal()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector<_Template> listTemplate_; + int total_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_LISTCHATAPPTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ModifyChatappTemplateRequest.h b/cams/include/alibabacloud/cams/model/ModifyChatappTemplateRequest.h new file mode 100644 index 000000000..cff84fe6f --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ModifyChatappTemplateRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ModifyChatappTemplateRequest : public RpcServiceRequest { +public: + struct Components { + std::string type; + std::string text; + std::string format; + std::string url; + std::string caption; + std::string fileName; + struct ButtonsItem { + std::string type; + std::string text; + std::string phoneNumber; + std::string url; + std::string urlType; + }; + ButtonsItem buttonsItem; + std::vector buttons; + std::string thumbUrl; + int duration; + std::string fileType; + }; + ModifyChatappTemplateRequest(); + ~ModifyChatappTemplateRequest(); + std::vector getComponents() const; + void setComponents(const std::vector &components); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::map getExample() const; + void setExample(const std::map &example); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getTemplateType() const; + void setTemplateType(const std::string &templateType); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getTemplateCode() const; + void setTemplateCode(const std::string &templateCode); + +private: + std::vector components_; + std::string language_; + std::string custWabaId_; + std::map example_; + std::string apiCode_; + std::string templateType_; + std::string isvCode_; + std::string prodCode_; + std::string custSpaceId_; + std::string category_; + std::string templateCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ModifyChatappTemplateResult.h b/cams/include/alibabacloud/cams/model/ModifyChatappTemplateResult.h new file mode 100644 index 000000000..b5743e1ae --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ModifyChatappTemplateResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ModifyChatappTemplateResult : public ServiceResult + { + public: + struct Data + { + std::string templateCode; + std::string templateName; + }; + + + ModifyChatappTemplateResult(); + explicit ModifyChatappTemplateResult(const std::string &payload); + ~ModifyChatappTemplateResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_MODIFYCHATAPPTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/ModifyPhoneBusinessProfileRequest.h b/cams/include/alibabacloud/cams/model/ModifyPhoneBusinessProfileRequest.h new file mode 100644 index 000000000..7e063f428 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ModifyPhoneBusinessProfileRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT ModifyPhoneBusinessProfileRequest : public RpcServiceRequest { +public: + ModifyPhoneBusinessProfileRequest(); + ~ModifyPhoneBusinessProfileRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVertical() const; + void setVertical(const std::string &vertical); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getEmail() const; + void setEmail(const std::string &email); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getProfilePictureUrl() const; + void setProfilePictureUrl(const std::string &profilePictureUrl); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::vector getWebsites() const; + void setWebsites(const std::vector &websites); + +private: + std::string phoneNumber_; + std::string description_; + std::string vertical_; + std::string apiCode_; + std::string email_; + std::string address_; + std::string prodCode_; + std::string profilePictureUrl_; + std::string custSpaceId_; + std::vector websites_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/ModifyPhoneBusinessProfileResult.h b/cams/include/alibabacloud/cams/model/ModifyPhoneBusinessProfileResult.h new file mode 100644 index 000000000..a60f0c01a --- /dev/null +++ b/cams/include/alibabacloud/cams/model/ModifyPhoneBusinessProfileResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT ModifyPhoneBusinessProfileResult : public ServiceResult + { + public: + + + ModifyPhoneBusinessProfileResult(); + explicit ModifyPhoneBusinessProfileResult(const std::string &payload); + ~ModifyPhoneBusinessProfileResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/QueryChatappBindWabaRequest.h b/cams/include/alibabacloud/cams/model/QueryChatappBindWabaRequest.h new file mode 100644 index 000000000..70088e460 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryChatappBindWabaRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPBINDWABAREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPBINDWABAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT QueryChatappBindWabaRequest : public RpcServiceRequest { +public: + QueryChatappBindWabaRequest(); + ~QueryChatappBindWabaRequest(); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string apiCode_; + std::string isvCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPBINDWABAREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/QueryChatappBindWabaResult.h b/cams/include/alibabacloud/cams/model/QueryChatappBindWabaResult.h new file mode 100644 index 000000000..d058e80f0 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryChatappBindWabaResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPBINDWABARESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPBINDWABARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT QueryChatappBindWabaResult : public ServiceResult + { + public: + struct Data + { + std::string currency; + std::string id; + std::string accountReviewStatus; + std::string messageTemplateNamespace; + std::string name; + }; + + + QueryChatappBindWabaResult(); + explicit QueryChatappBindWabaResult(const std::string &payload); + ~QueryChatappBindWabaResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPBINDWABARESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/QueryChatappPhoneNumbersRequest.h b/cams/include/alibabacloud/cams/model/QueryChatappPhoneNumbersRequest.h new file mode 100644 index 000000000..8b951cd65 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryChatappPhoneNumbersRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT QueryChatappPhoneNumbersRequest : public RpcServiceRequest { +public: + QueryChatappPhoneNumbersRequest(); + ~QueryChatappPhoneNumbersRequest(); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string apiCode_; + std::string isvCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/QueryChatappPhoneNumbersResult.h b/cams/include/alibabacloud/cams/model/QueryChatappPhoneNumbersResult.h new file mode 100644 index 000000000..4241851ef --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryChatappPhoneNumbersResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT QueryChatappPhoneNumbersResult : public ServiceResult + { + public: + struct PhoneNumbersItem + { + std::string verifiedName; + std::string status; + std::string qualityRating; + std::string codeVerificationStatus; + std::string newNameStatus; + std::string phoneNumber; + std::string statusQueue; + std::string upQueue; + std::string nameStatus; + std::string upCallbackUrl; + std::string messagingLimitTier; + std::string statusCallbackUrl; + }; + + + QueryChatappPhoneNumbersResult(); + explicit QueryChatappPhoneNumbersResult(const std::string &payload); + ~QueryChatappPhoneNumbersResult(); + std::vector getPhoneNumbers()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector phoneNumbers_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/QueryPhoneBusinessProfileRequest.h b/cams/include/alibabacloud/cams/model/QueryPhoneBusinessProfileRequest.h new file mode 100644 index 000000000..c790cf5e7 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryPhoneBusinessProfileRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYPHONEBUSINESSPROFILEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYPHONEBUSINESSPROFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT QueryPhoneBusinessProfileRequest : public RpcServiceRequest { +public: + QueryPhoneBusinessProfileRequest(); + ~QueryPhoneBusinessProfileRequest(); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string phoneNumber_; + std::string apiCode_; + std::string prodCode_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYPHONEBUSINESSPROFILEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/QueryPhoneBusinessProfileResult.h b/cams/include/alibabacloud/cams/model/QueryPhoneBusinessProfileResult.h new file mode 100644 index 000000000..00a35aa1e --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryPhoneBusinessProfileResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYPHONEBUSINESSPROFILERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYPHONEBUSINESSPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT QueryPhoneBusinessProfileResult : public ServiceResult + { + public: + struct Data + { + std::string vertical; + std::string description; + std::string email; + std::string address; + std::string profilePictureUrl; + std::vector websites; + }; + + + QueryPhoneBusinessProfileResult(); + explicit QueryPhoneBusinessProfileResult(const std::string &payload); + ~QueryPhoneBusinessProfileResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYPHONEBUSINESSPROFILERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/QueryWabaBusinessInfoRequest.h b/cams/include/alibabacloud/cams/model/QueryWabaBusinessInfoRequest.h new file mode 100644 index 000000000..e07a3fbde --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryWabaBusinessInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYWABABUSINESSINFOREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYWABABUSINESSINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT QueryWabaBusinessInfoRequest : public RpcServiceRequest { +public: + QueryWabaBusinessInfoRequest(); + ~QueryWabaBusinessInfoRequest(); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getWabaId() const; + void setWabaId(const std::string &wabaId); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string apiCode_; + std::string prodCode_; + std::string wabaId_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYWABABUSINESSINFOREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/QueryWabaBusinessInfoResult.h b/cams/include/alibabacloud/cams/model/QueryWabaBusinessInfoResult.h new file mode 100644 index 000000000..93d7a422d --- /dev/null +++ b/cams/include/alibabacloud/cams/model/QueryWabaBusinessInfoResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_QUERYWABABUSINESSINFORESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_QUERYWABABUSINESSINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT QueryWabaBusinessInfoResult : public ServiceResult + { + public: + struct Data + { + std::string vertical; + std::string verificationStatus; + std::string businessName; + std::string businessId; + }; + + + QueryWabaBusinessInfoResult(); + explicit QueryWabaBusinessInfoResult(const std::string &payload); + ~QueryWabaBusinessInfoResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYWABABUSINESSINFORESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/SendChatappMassMessageRequest.h b/cams/include/alibabacloud/cams/model/SendChatappMassMessageRequest.h new file mode 100644 index 000000000..16e832e26 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/SendChatappMassMessageRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMASSMESSAGEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMASSMESSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT SendChatappMassMessageRequest : public RpcServiceRequest { +public: + struct SenderList { + std::string to; + std::map templateParams; + std::string string; + std::vector payload; + }; + SendChatappMassMessageRequest(); + ~SendChatappMassMessageRequest(); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::string getFallBackContent() const; + void setFallBackContent(const std::string &fallBackContent); + std::vector getSenderList() const; + void setSenderList(const std::vector &senderList); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getChannelType() const; + void setChannelType(const std::string &channelType); + std::string getFrom() const; + void setFrom(const std::string &from); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getLabel() const; + void setLabel(const std::string &label); + std::string getFallBackId() const; + void setFallBackId(const std::string &fallBackId); + long getTtl() const; + void setTtl(long ttl); + int getFallBackDuration() const; + void setFallBackDuration(int fallBackDuration); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getTemplateCode() const; + void setTemplateCode(const std::string &templateCode); + +private: + std::string language_; + std::string custWabaId_; + std::string fallBackContent_; + std::vector senderList_; + std::string apiCode_; + std::string channelType_; + std::string from_; + std::string tag_; + std::string taskId_; + std::string isvCode_; + std::string prodCode_; + std::string label_; + std::string fallBackId_; + long ttl_; + int fallBackDuration_; + std::string custSpaceId_; + std::string templateCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMASSMESSAGEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/SendChatappMassMessageResult.h b/cams/include/alibabacloud/cams/model/SendChatappMassMessageResult.h new file mode 100644 index 000000000..ae7376767 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/SendChatappMassMessageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMASSMESSAGERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMASSMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT SendChatappMassMessageResult : public ServiceResult + { + public: + + + SendChatappMassMessageResult(); + explicit SendChatappMassMessageResult(const std::string &payload); + ~SendChatappMassMessageResult(); + std::string getMessage()const; + std::string getGroupMessageId()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string groupMessageId_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMASSMESSAGERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/SendChatappMessageRequest.h b/cams/include/alibabacloud/cams/model/SendChatappMessageRequest.h new file mode 100644 index 000000000..bbbb21cd2 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/SendChatappMessageRequest.h @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMESSAGEREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMESSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT SendChatappMessageRequest : public RpcServiceRequest { +public: + SendChatappMessageRequest(); + ~SendChatappMessageRequest(); + std::string getMessageType() const; + void setMessageType(const std::string &messageType); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getCustWabaId() const; + void setCustWabaId(const std::string &custWabaId); + std::string getType() const; + void setType(const std::string &type); + std::string getFallBackContent() const; + void setFallBackContent(const std::string &fallBackContent); + std::string getContent() const; + void setContent(const std::string &content); + std::map getTemplateParams() const; + void setTemplateParams(const std::map &templateParams); + std::vector getPayload() const; + void setPayload(const std::vector &payload); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getChannelType() const; + void setChannelType(const std::string &channelType); + std::string getFrom() const; + void setFrom(const std::string &from); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getTrackingData() const; + void setTrackingData(const std::string &trackingData); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getIsvCode() const; + void setIsvCode(const std::string &isvCode); + std::string getContextMessageId() const; + void setContextMessageId(const std::string &contextMessageId); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getLabel() const; + void setLabel(const std::string &label); + std::string getFallBackId() const; + void setFallBackId(const std::string &fallBackId); + int getTtl() const; + void setTtl(int ttl); + int getFallBackDuration() const; + void setFallBackDuration(int fallBackDuration); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getTo() const; + void setTo(const std::string &to); + std::string getTemplateCode() const; + void setTemplateCode(const std::string &templateCode); + +private: + std::string messageType_; + std::string language_; + std::string custWabaId_; + std::string type_; + std::string fallBackContent_; + std::string content_; + std::map templateParams_; + std::vector payload_; + std::string apiCode_; + std::string channelType_; + std::string from_; + std::string tag_; + std::string trackingData_; + std::string taskId_; + std::string isvCode_; + std::string contextMessageId_; + std::string prodCode_; + std::string label_; + std::string fallBackId_; + int ttl_; + int fallBackDuration_; + std::string custSpaceId_; + std::string to_; + std::string templateCode_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMESSAGEREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/SendChatappMessageResult.h b/cams/include/alibabacloud/cams/model/SendChatappMessageResult.h new file mode 100644 index 000000000..d1ab42688 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/SendChatappMessageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMESSAGERESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMESSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT SendChatappMessageResult : public ServiceResult + { + public: + + + SendChatappMessageResult(); + explicit SendChatappMessageResult(const std::string &payload); + ~SendChatappMessageResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getMessageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string messageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_SENDCHATAPPMESSAGERESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/SendMessageRequest.h b/cams/include/alibabacloud/cams/model/SendMessageRequest.h deleted file mode 100644 index 5a07ff1df..000000000 --- a/cams/include/alibabacloud/cams/model/SendMessageRequest.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAMS_MODEL_SENDMESSAGEREQUEST_H_ -#define ALIBABACLOUD_CAMS_MODEL_SENDMESSAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cams - { - namespace Model - { - class ALIBABACLOUD_CAMS_EXPORT SendMessageRequest : public RpcServiceRequest - { - - public: - SendMessageRequest(); - ~SendMessageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getMessageType()const; - void setMessageType(const std::string& messageType); - std::string getTemplateBodyParams()const; - void setTemplateBodyParams(const std::string& templateBodyParams); - std::string getLink()const; - void setLink(const std::string& link); - std::string getCaption()const; - void setCaption(const std::string& caption); - std::string getType()const; - void setType(const std::string& type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getChannelType()const; - void setChannelType(const std::string& channelType); - std::string getFrom()const; - void setFrom(const std::string& from); - std::string getText()const; - void setText(const std::string& text); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTo()const; - void setTo(const std::string& to); - std::string getTemplateCode()const; - void setTemplateCode(const std::string& templateCode); - - private: - long resourceOwnerId_; - std::string messageType_; - std::string templateBodyParams_; - std::string link_; - std::string caption_; - std::string type_; - std::string accessKeyId_; - std::string channelType_; - std::string from_; - std::string text_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string to_; - std::string templateCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAMS_MODEL_SENDMESSAGEREQUEST_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/SubmitIsvCustomerTermsRequest.h b/cams/include/alibabacloud/cams/model/SubmitIsvCustomerTermsRequest.h new file mode 100644 index 000000000..111b341b3 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/SubmitIsvCustomerTermsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_SUBMITISVCUSTOMERTERMSREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_SUBMITISVCUSTOMERTERMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT SubmitIsvCustomerTermsRequest : public RpcServiceRequest { +public: + SubmitIsvCustomerTermsRequest(); + ~SubmitIsvCustomerTermsRequest(); + std::string getOfficeAddress() const; + void setOfficeAddress(const std::string &officeAddress); + std::string getIsvTerms() const; + void setIsvTerms(const std::string &isvTerms); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getContactMail() const; + void setContactMail(const std::string &contactMail); + std::string getCountryId() const; + void setCountryId(const std::string &countryId); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + std::string getBusinessDesc() const; + void setBusinessDesc(const std::string &businessDesc); + std::string getCustName() const; + void setCustName(const std::string &custName); + +private: + std::string officeAddress_; + std::string isvTerms_; + std::string apiCode_; + std::string prodCode_; + std::string contactMail_; + std::string countryId_; + std::string custSpaceId_; + std::string businessDesc_; + std::string custName_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_SUBMITISVCUSTOMERTERMSREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/SubmitIsvCustomerTermsResult.h b/cams/include/alibabacloud/cams/model/SubmitIsvCustomerTermsResult.h new file mode 100644 index 000000000..575ce4c1a --- /dev/null +++ b/cams/include/alibabacloud/cams/model/SubmitIsvCustomerTermsResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_SUBMITISVCUSTOMERTERMSRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_SUBMITISVCUSTOMERTERMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT SubmitIsvCustomerTermsResult : public ServiceResult + { + public: + + + SubmitIsvCustomerTermsResult(); + explicit SubmitIsvCustomerTermsResult(const std::string &payload); + ~SubmitIsvCustomerTermsResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_SUBMITISVCUSTOMERTERMSRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/UpdateAccountWebhookRequest.h b/cams/include/alibabacloud/cams/model/UpdateAccountWebhookRequest.h new file mode 100644 index 000000000..5f6879dfa --- /dev/null +++ b/cams/include/alibabacloud/cams/model/UpdateAccountWebhookRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_UPDATEACCOUNTWEBHOOKREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_UPDATEACCOUNTWEBHOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT UpdateAccountWebhookRequest : public RpcServiceRequest { +public: + UpdateAccountWebhookRequest(); + ~UpdateAccountWebhookRequest(); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getQueueFlag() const; + void setQueueFlag(const std::string &queueFlag); + std::string getHttpFlag() const; + void setHttpFlag(const std::string &httpFlag); + std::string getStatusCallbackUrl() const; + void setStatusCallbackUrl(const std::string &statusCallbackUrl); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string apiCode_; + std::string prodCode_; + std::string queueFlag_; + std::string httpFlag_; + std::string statusCallbackUrl_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_UPDATEACCOUNTWEBHOOKREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/UpdateAccountWebhookResult.h b/cams/include/alibabacloud/cams/model/UpdateAccountWebhookResult.h new file mode 100644 index 000000000..c79655f81 --- /dev/null +++ b/cams/include/alibabacloud/cams/model/UpdateAccountWebhookResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_UPDATEACCOUNTWEBHOOKRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_UPDATEACCOUNTWEBHOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT UpdateAccountWebhookResult : public ServiceResult + { + public: + + + UpdateAccountWebhookResult(); + explicit UpdateAccountWebhookResult(const std::string &payload); + ~UpdateAccountWebhookResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_UPDATEACCOUNTWEBHOOKRESULT_H_ \ No newline at end of file diff --git a/cams/include/alibabacloud/cams/model/UpdatePhoneWebhookRequest.h b/cams/include/alibabacloud/cams/model/UpdatePhoneWebhookRequest.h new file mode 100644 index 000000000..6bf3b38ae --- /dev/null +++ b/cams/include/alibabacloud/cams/model/UpdatePhoneWebhookRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_UPDATEPHONEWEBHOOKREQUEST_H_ +#define ALIBABACLOUD_CAMS_MODEL_UPDATEPHONEWEBHOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cams { +namespace Model { +class ALIBABACLOUD_CAMS_EXPORT UpdatePhoneWebhookRequest : public RpcServiceRequest { +public: + UpdatePhoneWebhookRequest(); + ~UpdatePhoneWebhookRequest(); + std::string getUpCallbackUrl() const; + void setUpCallbackUrl(const std::string &upCallbackUrl); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getApiCode() const; + void setApiCode(const std::string &apiCode); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getQueueFlag() const; + void setQueueFlag(const std::string &queueFlag); + std::string getHttpFlag() const; + void setHttpFlag(const std::string &httpFlag); + std::string getStatusCallbackUrl() const; + void setStatusCallbackUrl(const std::string &statusCallbackUrl); + std::string getCustSpaceId() const; + void setCustSpaceId(const std::string &custSpaceId); + +private: + std::string upCallbackUrl_; + std::string phoneNumber_; + std::string apiCode_; + std::string prodCode_; + std::string queueFlag_; + std::string httpFlag_; + std::string statusCallbackUrl_; + std::string custSpaceId_; +}; +} // namespace Model +} // namespace Cams +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAMS_MODEL_UPDATEPHONEWEBHOOKREQUEST_H_ diff --git a/cams/include/alibabacloud/cams/model/UpdatePhoneWebhookResult.h b/cams/include/alibabacloud/cams/model/UpdatePhoneWebhookResult.h new file mode 100644 index 000000000..8381278bb --- /dev/null +++ b/cams/include/alibabacloud/cams/model/UpdatePhoneWebhookResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAMS_MODEL_UPDATEPHONEWEBHOOKRESULT_H_ +#define ALIBABACLOUD_CAMS_MODEL_UPDATEPHONEWEBHOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cams + { + namespace Model + { + class ALIBABACLOUD_CAMS_EXPORT UpdatePhoneWebhookResult : public ServiceResult + { + public: + + + UpdatePhoneWebhookResult(); + explicit UpdatePhoneWebhookResult(const std::string &payload); + ~UpdatePhoneWebhookResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAMS_MODEL_UPDATEPHONEWEBHOOKRESULT_H_ \ No newline at end of file diff --git a/cams/src/CamsClient.cc b/cams/src/CamsClient.cc index 6b29f9b30..a81c93ba5 100644 --- a/cams/src/CamsClient.cc +++ b/cams/src/CamsClient.cc @@ -31,92 +31,1100 @@ CamsClient::CamsClient(const Credentials &credentials, const ClientConfiguration RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cams"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } CamsClient::CamsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cams"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } CamsClient::CamsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cams"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } CamsClient::~CamsClient() {} -CamsClient::CheckContactsOutcome CamsClient::checkContacts(const CheckContactsRequest &request) const +CamsClient::BeeBotAssociateOutcome CamsClient::beeBotAssociate(const BeeBotAssociateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CheckContactsOutcome(endpointOutcome.error()); + return BeeBotAssociateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CheckContactsOutcome(CheckContactsResult(outcome.result())); + return BeeBotAssociateOutcome(BeeBotAssociateResult(outcome.result())); else - return CheckContactsOutcome(outcome.error()); + return BeeBotAssociateOutcome(outcome.error()); } -void CamsClient::checkContactsAsync(const CheckContactsRequest& request, const CheckContactsAsyncHandler& handler, const std::shared_ptr& context) const +void CamsClient::beeBotAssociateAsync(const BeeBotAssociateRequest& request, const BeeBotAssociateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, checkContacts(request), context); + handler(this, request, beeBotAssociate(request), context); }; asyncExecute(new Runnable(fn)); } -CamsClient::CheckContactsOutcomeCallable CamsClient::checkContactsCallable(const CheckContactsRequest &request) const +CamsClient::BeeBotAssociateOutcomeCallable CamsClient::beeBotAssociateCallable(const BeeBotAssociateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->checkContacts(request); + return this->beeBotAssociate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CamsClient::SendMessageOutcome CamsClient::sendMessage(const SendMessageRequest &request) const +CamsClient::BeeBotChatOutcome CamsClient::beeBotChat(const BeeBotChatRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SendMessageOutcome(endpointOutcome.error()); + return BeeBotChatOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SendMessageOutcome(SendMessageResult(outcome.result())); + return BeeBotChatOutcome(BeeBotChatResult(outcome.result())); else - return SendMessageOutcome(outcome.error()); + return BeeBotChatOutcome(outcome.error()); } -void CamsClient::sendMessageAsync(const SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr& context) const +void CamsClient::beeBotChatAsync(const BeeBotChatRequest& request, const BeeBotChatAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, sendMessage(request), context); + handler(this, request, beeBotChat(request), context); }; asyncExecute(new Runnable(fn)); } -CamsClient::SendMessageOutcomeCallable CamsClient::sendMessageCallable(const SendMessageRequest &request) const +CamsClient::BeeBotChatOutcomeCallable CamsClient::beeBotChatCallable(const BeeBotChatRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->sendMessage(request); + return this->beeBotChat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappBindWabaOutcome CamsClient::chatappBindWaba(const ChatappBindWabaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappBindWabaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappBindWabaOutcome(ChatappBindWabaResult(outcome.result())); + else + return ChatappBindWabaOutcome(outcome.error()); +} + +void CamsClient::chatappBindWabaAsync(const ChatappBindWabaRequest& request, const ChatappBindWabaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappBindWaba(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappBindWabaOutcomeCallable CamsClient::chatappBindWabaCallable(const ChatappBindWabaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappBindWaba(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappEmbedSignUpOutcome CamsClient::chatappEmbedSignUp(const ChatappEmbedSignUpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappEmbedSignUpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappEmbedSignUpOutcome(ChatappEmbedSignUpResult(outcome.result())); + else + return ChatappEmbedSignUpOutcome(outcome.error()); +} + +void CamsClient::chatappEmbedSignUpAsync(const ChatappEmbedSignUpRequest& request, const ChatappEmbedSignUpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappEmbedSignUp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappEmbedSignUpOutcomeCallable CamsClient::chatappEmbedSignUpCallable(const ChatappEmbedSignUpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappEmbedSignUp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappMigrationRegisterOutcome CamsClient::chatappMigrationRegister(const ChatappMigrationRegisterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappMigrationRegisterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappMigrationRegisterOutcome(ChatappMigrationRegisterResult(outcome.result())); + else + return ChatappMigrationRegisterOutcome(outcome.error()); +} + +void CamsClient::chatappMigrationRegisterAsync(const ChatappMigrationRegisterRequest& request, const ChatappMigrationRegisterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappMigrationRegister(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappMigrationRegisterOutcomeCallable CamsClient::chatappMigrationRegisterCallable(const ChatappMigrationRegisterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappMigrationRegister(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappMigrationVerifiedOutcome CamsClient::chatappMigrationVerified(const ChatappMigrationVerifiedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappMigrationVerifiedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappMigrationVerifiedOutcome(ChatappMigrationVerifiedResult(outcome.result())); + else + return ChatappMigrationVerifiedOutcome(outcome.error()); +} + +void CamsClient::chatappMigrationVerifiedAsync(const ChatappMigrationVerifiedRequest& request, const ChatappMigrationVerifiedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappMigrationVerified(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappMigrationVerifiedOutcomeCallable CamsClient::chatappMigrationVerifiedCallable(const ChatappMigrationVerifiedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappMigrationVerified(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappPhoneNumberRegisterOutcome CamsClient::chatappPhoneNumberRegister(const ChatappPhoneNumberRegisterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappPhoneNumberRegisterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappPhoneNumberRegisterOutcome(ChatappPhoneNumberRegisterResult(outcome.result())); + else + return ChatappPhoneNumberRegisterOutcome(outcome.error()); +} + +void CamsClient::chatappPhoneNumberRegisterAsync(const ChatappPhoneNumberRegisterRequest& request, const ChatappPhoneNumberRegisterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappPhoneNumberRegister(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappPhoneNumberRegisterOutcomeCallable CamsClient::chatappPhoneNumberRegisterCallable(const ChatappPhoneNumberRegisterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappPhoneNumberRegister(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappSyncPhoneNumberOutcome CamsClient::chatappSyncPhoneNumber(const ChatappSyncPhoneNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappSyncPhoneNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappSyncPhoneNumberOutcome(ChatappSyncPhoneNumberResult(outcome.result())); + else + return ChatappSyncPhoneNumberOutcome(outcome.error()); +} + +void CamsClient::chatappSyncPhoneNumberAsync(const ChatappSyncPhoneNumberRequest& request, const ChatappSyncPhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappSyncPhoneNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappSyncPhoneNumberOutcomeCallable CamsClient::chatappSyncPhoneNumberCallable(const ChatappSyncPhoneNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappSyncPhoneNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ChatappVerifyAndRegisterOutcome CamsClient::chatappVerifyAndRegister(const ChatappVerifyAndRegisterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChatappVerifyAndRegisterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChatappVerifyAndRegisterOutcome(ChatappVerifyAndRegisterResult(outcome.result())); + else + return ChatappVerifyAndRegisterOutcome(outcome.error()); +} + +void CamsClient::chatappVerifyAndRegisterAsync(const ChatappVerifyAndRegisterRequest& request, const ChatappVerifyAndRegisterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, chatappVerifyAndRegister(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ChatappVerifyAndRegisterOutcomeCallable CamsClient::chatappVerifyAndRegisterCallable(const ChatappVerifyAndRegisterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->chatappVerifyAndRegister(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::CreateChatappMigrationInitiateOutcome CamsClient::createChatappMigrationInitiate(const CreateChatappMigrationInitiateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateChatappMigrationInitiateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateChatappMigrationInitiateOutcome(CreateChatappMigrationInitiateResult(outcome.result())); + else + return CreateChatappMigrationInitiateOutcome(outcome.error()); +} + +void CamsClient::createChatappMigrationInitiateAsync(const CreateChatappMigrationInitiateRequest& request, const CreateChatappMigrationInitiateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createChatappMigrationInitiate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::CreateChatappMigrationInitiateOutcomeCallable CamsClient::createChatappMigrationInitiateCallable(const CreateChatappMigrationInitiateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createChatappMigrationInitiate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::CreateChatappTemplateOutcome CamsClient::createChatappTemplate(const CreateChatappTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateChatappTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateChatappTemplateOutcome(CreateChatappTemplateResult(outcome.result())); + else + return CreateChatappTemplateOutcome(outcome.error()); +} + +void CamsClient::createChatappTemplateAsync(const CreateChatappTemplateRequest& request, const CreateChatappTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createChatappTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::CreateChatappTemplateOutcomeCallable CamsClient::createChatappTemplateCallable(const CreateChatappTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createChatappTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::DeleteChatappTemplateOutcome CamsClient::deleteChatappTemplate(const DeleteChatappTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteChatappTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteChatappTemplateOutcome(DeleteChatappTemplateResult(outcome.result())); + else + return DeleteChatappTemplateOutcome(outcome.error()); +} + +void CamsClient::deleteChatappTemplateAsync(const DeleteChatappTemplateRequest& request, const DeleteChatappTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteChatappTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::DeleteChatappTemplateOutcomeCallable CamsClient::deleteChatappTemplateCallable(const DeleteChatappTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteChatappTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::GetChatappTemplateDetailOutcome CamsClient::getChatappTemplateDetail(const GetChatappTemplateDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetChatappTemplateDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetChatappTemplateDetailOutcome(GetChatappTemplateDetailResult(outcome.result())); + else + return GetChatappTemplateDetailOutcome(outcome.error()); +} + +void CamsClient::getChatappTemplateDetailAsync(const GetChatappTemplateDetailRequest& request, const GetChatappTemplateDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getChatappTemplateDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::GetChatappTemplateDetailOutcomeCallable CamsClient::getChatappTemplateDetailCallable(const GetChatappTemplateDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getChatappTemplateDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::GetChatappUploadAuthorizationOutcome CamsClient::getChatappUploadAuthorization(const GetChatappUploadAuthorizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetChatappUploadAuthorizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetChatappUploadAuthorizationOutcome(GetChatappUploadAuthorizationResult(outcome.result())); + else + return GetChatappUploadAuthorizationOutcome(outcome.error()); +} + +void CamsClient::getChatappUploadAuthorizationAsync(const GetChatappUploadAuthorizationRequest& request, const GetChatappUploadAuthorizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getChatappUploadAuthorization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::GetChatappUploadAuthorizationOutcomeCallable CamsClient::getChatappUploadAuthorizationCallable(const GetChatappUploadAuthorizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getChatappUploadAuthorization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::GetChatappVerifyCodeOutcome CamsClient::getChatappVerifyCode(const GetChatappVerifyCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetChatappVerifyCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetChatappVerifyCodeOutcome(GetChatappVerifyCodeResult(outcome.result())); + else + return GetChatappVerifyCodeOutcome(outcome.error()); +} + +void CamsClient::getChatappVerifyCodeAsync(const GetChatappVerifyCodeRequest& request, const GetChatappVerifyCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getChatappVerifyCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::GetChatappVerifyCodeOutcomeCallable CamsClient::getChatappVerifyCodeCallable(const GetChatappVerifyCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getChatappVerifyCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::GetMigrationVerifyCodeOutcome CamsClient::getMigrationVerifyCode(const GetMigrationVerifyCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMigrationVerifyCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMigrationVerifyCodeOutcome(GetMigrationVerifyCodeResult(outcome.result())); + else + return GetMigrationVerifyCodeOutcome(outcome.error()); +} + +void CamsClient::getMigrationVerifyCodeAsync(const GetMigrationVerifyCodeRequest& request, const GetMigrationVerifyCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMigrationVerifyCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::GetMigrationVerifyCodeOutcomeCallable CamsClient::getMigrationVerifyCodeCallable(const GetMigrationVerifyCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMigrationVerifyCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::GetPhoneNumberVerificationStatusOutcome CamsClient::getPhoneNumberVerificationStatus(const GetPhoneNumberVerificationStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPhoneNumberVerificationStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPhoneNumberVerificationStatusOutcome(GetPhoneNumberVerificationStatusResult(outcome.result())); + else + return GetPhoneNumberVerificationStatusOutcome(outcome.error()); +} + +void CamsClient::getPhoneNumberVerificationStatusAsync(const GetPhoneNumberVerificationStatusRequest& request, const GetPhoneNumberVerificationStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPhoneNumberVerificationStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::GetPhoneNumberVerificationStatusOutcomeCallable CamsClient::getPhoneNumberVerificationStatusCallable(const GetPhoneNumberVerificationStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPhoneNumberVerificationStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::IsvGetAppIdOutcome CamsClient::isvGetAppId(const IsvGetAppIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IsvGetAppIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IsvGetAppIdOutcome(IsvGetAppIdResult(outcome.result())); + else + return IsvGetAppIdOutcome(outcome.error()); +} + +void CamsClient::isvGetAppIdAsync(const IsvGetAppIdRequest& request, const IsvGetAppIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, isvGetAppId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::IsvGetAppIdOutcomeCallable CamsClient::isvGetAppIdCallable(const IsvGetAppIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->isvGetAppId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ListChatappTemplateOutcome CamsClient::listChatappTemplate(const ListChatappTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListChatappTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListChatappTemplateOutcome(ListChatappTemplateResult(outcome.result())); + else + return ListChatappTemplateOutcome(outcome.error()); +} + +void CamsClient::listChatappTemplateAsync(const ListChatappTemplateRequest& request, const ListChatappTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listChatappTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ListChatappTemplateOutcomeCallable CamsClient::listChatappTemplateCallable(const ListChatappTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listChatappTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ModifyChatappTemplateOutcome CamsClient::modifyChatappTemplate(const ModifyChatappTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyChatappTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyChatappTemplateOutcome(ModifyChatappTemplateResult(outcome.result())); + else + return ModifyChatappTemplateOutcome(outcome.error()); +} + +void CamsClient::modifyChatappTemplateAsync(const ModifyChatappTemplateRequest& request, const ModifyChatappTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyChatappTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ModifyChatappTemplateOutcomeCallable CamsClient::modifyChatappTemplateCallable(const ModifyChatappTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyChatappTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::ModifyPhoneBusinessProfileOutcome CamsClient::modifyPhoneBusinessProfile(const ModifyPhoneBusinessProfileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPhoneBusinessProfileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPhoneBusinessProfileOutcome(ModifyPhoneBusinessProfileResult(outcome.result())); + else + return ModifyPhoneBusinessProfileOutcome(outcome.error()); +} + +void CamsClient::modifyPhoneBusinessProfileAsync(const ModifyPhoneBusinessProfileRequest& request, const ModifyPhoneBusinessProfileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPhoneBusinessProfile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::ModifyPhoneBusinessProfileOutcomeCallable CamsClient::modifyPhoneBusinessProfileCallable(const ModifyPhoneBusinessProfileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPhoneBusinessProfile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::QueryChatappBindWabaOutcome CamsClient::queryChatappBindWaba(const QueryChatappBindWabaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryChatappBindWabaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryChatappBindWabaOutcome(QueryChatappBindWabaResult(outcome.result())); + else + return QueryChatappBindWabaOutcome(outcome.error()); +} + +void CamsClient::queryChatappBindWabaAsync(const QueryChatappBindWabaRequest& request, const QueryChatappBindWabaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryChatappBindWaba(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::QueryChatappBindWabaOutcomeCallable CamsClient::queryChatappBindWabaCallable(const QueryChatappBindWabaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryChatappBindWaba(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::QueryChatappPhoneNumbersOutcome CamsClient::queryChatappPhoneNumbers(const QueryChatappPhoneNumbersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryChatappPhoneNumbersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryChatappPhoneNumbersOutcome(QueryChatappPhoneNumbersResult(outcome.result())); + else + return QueryChatappPhoneNumbersOutcome(outcome.error()); +} + +void CamsClient::queryChatappPhoneNumbersAsync(const QueryChatappPhoneNumbersRequest& request, const QueryChatappPhoneNumbersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryChatappPhoneNumbers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::QueryChatappPhoneNumbersOutcomeCallable CamsClient::queryChatappPhoneNumbersCallable(const QueryChatappPhoneNumbersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryChatappPhoneNumbers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::QueryPhoneBusinessProfileOutcome CamsClient::queryPhoneBusinessProfile(const QueryPhoneBusinessProfileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPhoneBusinessProfileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPhoneBusinessProfileOutcome(QueryPhoneBusinessProfileResult(outcome.result())); + else + return QueryPhoneBusinessProfileOutcome(outcome.error()); +} + +void CamsClient::queryPhoneBusinessProfileAsync(const QueryPhoneBusinessProfileRequest& request, const QueryPhoneBusinessProfileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPhoneBusinessProfile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::QueryPhoneBusinessProfileOutcomeCallable CamsClient::queryPhoneBusinessProfileCallable(const QueryPhoneBusinessProfileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPhoneBusinessProfile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::QueryWabaBusinessInfoOutcome CamsClient::queryWabaBusinessInfo(const QueryWabaBusinessInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryWabaBusinessInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryWabaBusinessInfoOutcome(QueryWabaBusinessInfoResult(outcome.result())); + else + return QueryWabaBusinessInfoOutcome(outcome.error()); +} + +void CamsClient::queryWabaBusinessInfoAsync(const QueryWabaBusinessInfoRequest& request, const QueryWabaBusinessInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryWabaBusinessInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::QueryWabaBusinessInfoOutcomeCallable CamsClient::queryWabaBusinessInfoCallable(const QueryWabaBusinessInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryWabaBusinessInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::SendChatappMassMessageOutcome CamsClient::sendChatappMassMessage(const SendChatappMassMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendChatappMassMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendChatappMassMessageOutcome(SendChatappMassMessageResult(outcome.result())); + else + return SendChatappMassMessageOutcome(outcome.error()); +} + +void CamsClient::sendChatappMassMessageAsync(const SendChatappMassMessageRequest& request, const SendChatappMassMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendChatappMassMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::SendChatappMassMessageOutcomeCallable CamsClient::sendChatappMassMessageCallable(const SendChatappMassMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendChatappMassMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::SendChatappMessageOutcome CamsClient::sendChatappMessage(const SendChatappMessageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendChatappMessageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendChatappMessageOutcome(SendChatappMessageResult(outcome.result())); + else + return SendChatappMessageOutcome(outcome.error()); +} + +void CamsClient::sendChatappMessageAsync(const SendChatappMessageRequest& request, const SendChatappMessageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendChatappMessage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::SendChatappMessageOutcomeCallable CamsClient::sendChatappMessageCallable(const SendChatappMessageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendChatappMessage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::SubmitIsvCustomerTermsOutcome CamsClient::submitIsvCustomerTerms(const SubmitIsvCustomerTermsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitIsvCustomerTermsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitIsvCustomerTermsOutcome(SubmitIsvCustomerTermsResult(outcome.result())); + else + return SubmitIsvCustomerTermsOutcome(outcome.error()); +} + +void CamsClient::submitIsvCustomerTermsAsync(const SubmitIsvCustomerTermsRequest& request, const SubmitIsvCustomerTermsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitIsvCustomerTerms(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::SubmitIsvCustomerTermsOutcomeCallable CamsClient::submitIsvCustomerTermsCallable(const SubmitIsvCustomerTermsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitIsvCustomerTerms(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::UpdateAccountWebhookOutcome CamsClient::updateAccountWebhook(const UpdateAccountWebhookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAccountWebhookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAccountWebhookOutcome(UpdateAccountWebhookResult(outcome.result())); + else + return UpdateAccountWebhookOutcome(outcome.error()); +} + +void CamsClient::updateAccountWebhookAsync(const UpdateAccountWebhookRequest& request, const UpdateAccountWebhookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAccountWebhook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::UpdateAccountWebhookOutcomeCallable CamsClient::updateAccountWebhookCallable(const UpdateAccountWebhookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAccountWebhook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CamsClient::UpdatePhoneWebhookOutcome CamsClient::updatePhoneWebhook(const UpdatePhoneWebhookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePhoneWebhookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePhoneWebhookOutcome(UpdatePhoneWebhookResult(outcome.result())); + else + return UpdatePhoneWebhookOutcome(outcome.error()); +} + +void CamsClient::updatePhoneWebhookAsync(const UpdatePhoneWebhookRequest& request, const UpdatePhoneWebhookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePhoneWebhook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CamsClient::UpdatePhoneWebhookOutcomeCallable CamsClient::updatePhoneWebhookCallable(const UpdatePhoneWebhookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePhoneWebhook(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/cams/src/model/BeeBotAssociateRequest.cc b/cams/src/model/BeeBotAssociateRequest.cc new file mode 100644 index 000000000..f19aa2d8e --- /dev/null +++ b/cams/src/model/BeeBotAssociateRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::BeeBotAssociateRequest; + +BeeBotAssociateRequest::BeeBotAssociateRequest() + : RpcServiceRequest("cams", "2020-06-06", "BeeBotAssociate") { + setMethod(HttpRequest::Method::Post); +} + +BeeBotAssociateRequest::~BeeBotAssociateRequest() {} + +std::string BeeBotAssociateRequest::getSessionId() const { + return sessionId_; +} + +void BeeBotAssociateRequest::setSessionId(const std::string &sessionId) { + sessionId_ = sessionId; + setBodyParameter(std::string("SessionId"), sessionId); +} + +std::string BeeBotAssociateRequest::getApiCode() const { + return apiCode_; +} + +void BeeBotAssociateRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string BeeBotAssociateRequest::getPerspective() const { + return perspective_; +} + +void BeeBotAssociateRequest::setPerspective(const std::string &perspective) { + perspective_ = perspective; + setBodyParameter(std::string("Perspective"), perspective); +} + +std::string BeeBotAssociateRequest::getUtterance() const { + return utterance_; +} + +void BeeBotAssociateRequest::setUtterance(const std::string &utterance) { + utterance_ = utterance; + setBodyParameter(std::string("Utterance"), utterance); +} + +std::string BeeBotAssociateRequest::getIsvCode() const { + return isvCode_; +} + +void BeeBotAssociateRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setBodyParameter(std::string("IsvCode"), isvCode); +} + +std::string BeeBotAssociateRequest::getProdCode() const { + return prodCode_; +} + +void BeeBotAssociateRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +int BeeBotAssociateRequest::getRecommendNum() const { + return recommendNum_; +} + +void BeeBotAssociateRequest::setRecommendNum(int recommendNum) { + recommendNum_ = recommendNum; + setBodyParameter(std::string("RecommendNum"), std::to_string(recommendNum)); +} + +std::string BeeBotAssociateRequest::getChatBotInstanceId() const { + return chatBotInstanceId_; +} + +void BeeBotAssociateRequest::setChatBotInstanceId(const std::string &chatBotInstanceId) { + chatBotInstanceId_ = chatBotInstanceId; + setBodyParameter(std::string("ChatBotInstanceId"), chatBotInstanceId); +} + +std::string BeeBotAssociateRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void BeeBotAssociateRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/BeeBotAssociateResult.cc b/cams/src/model/BeeBotAssociateResult.cc new file mode 100644 index 000000000..8e949a074 --- /dev/null +++ b/cams/src/model/BeeBotAssociateResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +BeeBotAssociateResult::BeeBotAssociateResult() : + ServiceResult() +{} + +BeeBotAssociateResult::BeeBotAssociateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BeeBotAssociateResult::~BeeBotAssociateResult() +{} + +void BeeBotAssociateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["MessageId"].isNull()) + data_.messageId = dataNode["MessageId"].asString(); + if(!dataNode["SessionId"].isNull()) + data_.sessionId = dataNode["SessionId"].asString(); + auto allAssociateNode = dataNode["Associate"]["联想的列表"]; + for (auto dataNodeAssociate联想的列表 : allAssociateNode) + { + Data::联想的列表 联想的列表Object; + if(!dataNodeAssociate联想的列表["Meta"].isNull()) + 联想的列表Object.meta = dataNodeAssociate联想的列表["Meta"].asString(); + if(!dataNodeAssociate联想的列表["Title"].isNull()) + 联想的列表Object.title = dataNodeAssociate联想的列表["Title"].asString(); + data_.associate.push_back(联想的列表Object); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BeeBotAssociateResult::getMessage()const +{ + return message_; +} + +BeeBotAssociateResult::Data BeeBotAssociateResult::getData()const +{ + return data_; +} + +std::string BeeBotAssociateResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/BeeBotChatRequest.cc b/cams/src/model/BeeBotChatRequest.cc new file mode 100644 index 000000000..6d789a0f7 --- /dev/null +++ b/cams/src/model/BeeBotChatRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::BeeBotChatRequest; + +BeeBotChatRequest::BeeBotChatRequest() + : RpcServiceRequest("cams", "2020-06-06", "BeeBotChat") { + setMethod(HttpRequest::Method::Post); +} + +BeeBotChatRequest::~BeeBotChatRequest() {} + +std::string BeeBotChatRequest::getSessionId() const { + return sessionId_; +} + +void BeeBotChatRequest::setSessionId(const std::string &sessionId) { + sessionId_ = sessionId; + setBodyParameter(std::string("SessionId"), sessionId); +} + +std::string BeeBotChatRequest::getApiCode() const { + return apiCode_; +} + +void BeeBotChatRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string BeeBotChatRequest::getIntentName() const { + return intentName_; +} + +void BeeBotChatRequest::setIntentName(const std::string &intentName) { + intentName_ = intentName; + setBodyParameter(std::string("IntentName"), intentName); +} + +std::string BeeBotChatRequest::getSenderNick() const { + return senderNick_; +} + +void BeeBotChatRequest::setSenderNick(const std::string &senderNick) { + senderNick_ = senderNick; + setBodyParameter(std::string("SenderNick"), senderNick); +} + +std::vector BeeBotChatRequest::getPerspective() const { + return perspective_; +} + +void BeeBotChatRequest::setPerspective(const std::vector &perspective) { + perspective_ = perspective; + for(int dep1 = 0; dep1 != perspective.size(); dep1++) { + setBodyParameter(std::string("Perspective") + "." + std::to_string(dep1 + 1), perspective[dep1]); + } +} + +std::string BeeBotChatRequest::getUtterance() const { + return utterance_; +} + +void BeeBotChatRequest::setUtterance(const std::string &utterance) { + utterance_ = utterance; + setBodyParameter(std::string("Utterance"), utterance); +} + +std::string BeeBotChatRequest::getIsvCode() const { + return isvCode_; +} + +void BeeBotChatRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setBodyParameter(std::string("IsvCode"), isvCode); +} + +std::string BeeBotChatRequest::getProdCode() const { + return prodCode_; +} + +void BeeBotChatRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string BeeBotChatRequest::getKnowledgeId() const { + return knowledgeId_; +} + +void BeeBotChatRequest::setKnowledgeId(const std::string &knowledgeId) { + knowledgeId_ = knowledgeId; + setBodyParameter(std::string("KnowledgeId"), knowledgeId); +} + +std::map BeeBotChatRequest::getVendorParam() const { + return vendorParam_; +} + +void BeeBotChatRequest::setVendorParam(const std::map &vendorParam) { + vendorParam_ = vendorParam; + for(auto const &iter1 : vendorParam) { + setBodyParameter(std::string("VendorParam") + "." + iter1.first, iter1.second); + } +} + +std::string BeeBotChatRequest::getSenderId() const { + return senderId_; +} + +void BeeBotChatRequest::setSenderId(const std::string &senderId) { + senderId_ = senderId; + setBodyParameter(std::string("SenderId"), senderId); +} + +std::string BeeBotChatRequest::getChatBotInstanceId() const { + return chatBotInstanceId_; +} + +void BeeBotChatRequest::setChatBotInstanceId(const std::string &chatBotInstanceId) { + chatBotInstanceId_ = chatBotInstanceId; + setBodyParameter(std::string("ChatBotInstanceId"), chatBotInstanceId); +} + +std::string BeeBotChatRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void BeeBotChatRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/BeeBotChatResult.cc b/cams/src/model/BeeBotChatResult.cc new file mode 100644 index 000000000..e0a00dc9f --- /dev/null +++ b/cams/src/model/BeeBotChatResult.cc @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +BeeBotChatResult::BeeBotChatResult() : + ServiceResult() +{} + +BeeBotChatResult::BeeBotChatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BeeBotChatResult::~BeeBotChatResult() +{} + +void BeeBotChatResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["MessageId"].isNull()) + data_.messageId = dataNode["MessageId"].asString(); + if(!dataNode["SessionId"].isNull()) + data_.sessionId = dataNode["SessionId"].asString(); + auto allMessagesNode = dataNode["Messages"]["消息的列表"]; + for (auto dataNodeMessages消息的列表 : allMessagesNode) + { + Data::消息的列表 消息的列表Object; + if(!dataNodeMessages消息的列表["AnswerType"].isNull()) + 消息的列表Object.answerType = dataNodeMessages消息的列表["AnswerType"].asString(); + if(!dataNodeMessages消息的列表["AnswerSource"].isNull()) + 消息的列表Object.answerSource = dataNodeMessages消息的列表["AnswerSource"].asString(); + auto allRecommendsNode = dataNodeMessages消息的列表["Recommends"]["Recommend"]; + for (auto dataNodeMessages消息的列表RecommendsRecommend : allRecommendsNode) + { + Data::消息的列表::Recommend recommendsObject; + if(!dataNodeMessages消息的列表RecommendsRecommend["KnowledgeId"].isNull()) + recommendsObject.knowledgeId = dataNodeMessages消息的列表RecommendsRecommend["KnowledgeId"].asString(); + if(!dataNodeMessages消息的列表RecommendsRecommend["Title"].isNull()) + recommendsObject.title = dataNodeMessages消息的列表RecommendsRecommend["Title"].asString(); + if(!dataNodeMessages消息的列表RecommendsRecommend["AnswerSource"].isNull()) + recommendsObject.answerSource = dataNodeMessages消息的列表RecommendsRecommend["AnswerSource"].asString(); + 消息的列表Object.recommends.push_back(recommendsObject); + } + auto knowledgeNode = value["Knowledge"]; + if(!knowledgeNode["HitStatement"].isNull()) + 消息的列表Object.knowledge.hitStatement = knowledgeNode["HitStatement"].asString(); + if(!knowledgeNode["Summary"].isNull()) + 消息的列表Object.knowledge.summary = knowledgeNode["Summary"].asString(); + if(!knowledgeNode["Category"].isNull()) + 消息的列表Object.knowledge.category = knowledgeNode["Category"].asString(); + if(!knowledgeNode["Title"].isNull()) + 消息的列表Object.knowledge.title = knowledgeNode["Title"].asString(); + if(!knowledgeNode["Content"].isNull()) + 消息的列表Object.knowledge.content = knowledgeNode["Content"].asString(); + if(!knowledgeNode["AnswerSource"].isNull()) + 消息的列表Object.knowledge.answerSource = knowledgeNode["AnswerSource"].asString(); + if(!knowledgeNode["Id"].isNull()) + 消息的列表Object.knowledge.id = knowledgeNode["Id"].asString(); + if(!knowledgeNode["ContentType"].isNull()) + 消息的列表Object.knowledge.contentType = knowledgeNode["ContentType"].asString(); + auto allRelatedKnowledgesNode = knowledgeNode["RelatedKnowledges"]["RelatedKnowledgesItem"]; + for (auto knowledgeNodeRelatedKnowledgesRelatedKnowledgesItem : allRelatedKnowledgesNode) + { + Data::消息的列表::Knowledge::RelatedKnowledgesItem relatedKnowledgesItemObject; + if(!knowledgeNodeRelatedKnowledgesRelatedKnowledgesItem["KnowledgeId"].isNull()) + relatedKnowledgesItemObject.knowledgeId = knowledgeNodeRelatedKnowledgesRelatedKnowledgesItem["KnowledgeId"].asString(); + if(!knowledgeNodeRelatedKnowledgesRelatedKnowledgesItem["Title"].isNull()) + relatedKnowledgesItemObject.title = knowledgeNodeRelatedKnowledgesRelatedKnowledgesItem["Title"].asString(); + 消息的列表Object.knowledge.relatedKnowledges.push_back(relatedKnowledgesItemObject); + } + auto textNode = value["Text"]; + if(!textNode["HitStatement"].isNull()) + 消息的列表Object.text.hitStatement = textNode["HitStatement"].asString(); + if(!textNode["DialogName"].isNull()) + 消息的列表Object.text.dialogName = textNode["DialogName"].asString(); + if(!textNode["AnswerSource"].isNull()) + 消息的列表Object.text.answerSource = textNode["AnswerSource"].asString(); + if(!textNode["NodeName"].isNull()) + 消息的列表Object.text.nodeName = textNode["NodeName"].asString(); + if(!textNode["IntentName"].isNull()) + 消息的列表Object.text.intentName = textNode["IntentName"].asString(); + if(!textNode["MetaData"].isNull()) + 消息的列表Object.text.metaData = textNode["MetaData"].asString(); + if(!textNode["ExternalFlags"].isNull()) + 消息的列表Object.text.externalFlags = textNode["ExternalFlags"].asString(); + if(!textNode["Ext"].isNull()) + 消息的列表Object.text.ext = textNode["Ext"].asString(); + if(!textNode["UserDefinedChatTitle"].isNull()) + 消息的列表Object.text.userDefinedChatTitle = textNode["UserDefinedChatTitle"].asString(); + if(!textNode["Content"].isNull()) + 消息的列表Object.text.content = textNode["Content"].asString(); + if(!textNode["NodeId"].isNull()) + 消息的列表Object.text.nodeId = textNode["NodeId"].asString(); + if(!textNode["ContentType"].isNull()) + 消息的列表Object.text.contentType = textNode["ContentType"].asString(); + auto allSlotsNode = textNode["Slots"]["SlotsItem"]; + for (auto textNodeSlotsSlotsItem : allSlotsNode) + { + Data::消息的列表::Text::SlotsItem slotsItemObject; + if(!textNodeSlotsSlotsItem["Value"].isNull()) + slotsItemObject.value = textNodeSlotsSlotsItem["Value"].asString(); + if(!textNodeSlotsSlotsItem["Origin"].isNull()) + slotsItemObject.origin = textNodeSlotsSlotsItem["Origin"].asString(); + if(!textNodeSlotsSlotsItem["Name"].isNull()) + slotsItemObject.name = textNodeSlotsSlotsItem["Name"].asString(); + if(!textNodeSlotsSlotsItem["Hit"].isNull()) + slotsItemObject.hit = textNodeSlotsSlotsItem["Hit"].asString() == "true"; + 消息的列表Object.text.slots.push_back(slotsItemObject); + } + data_.messages.push_back(消息的列表Object); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BeeBotChatResult::getMessage()const +{ + return message_; +} + +BeeBotChatResult::Data BeeBotChatResult::getData()const +{ + return data_; +} + +std::string BeeBotChatResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappBindWabaRequest.cc b/cams/src/model/ChatappBindWabaRequest.cc new file mode 100644 index 000000000..48642c001 --- /dev/null +++ b/cams/src/model/ChatappBindWabaRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappBindWabaRequest; + +ChatappBindWabaRequest::ChatappBindWabaRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappBindWaba") { + setMethod(HttpRequest::Method::Post); +} + +ChatappBindWabaRequest::~ChatappBindWabaRequest() {} + +std::string ChatappBindWabaRequest::getProdCode() const { + return prodCode_; +} + +void ChatappBindWabaRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappBindWabaRequest::getWabaId() const { + return wabaId_; +} + +void ChatappBindWabaRequest::setWabaId(const std::string &wabaId) { + wabaId_ = wabaId; + setBodyParameter(std::string("WabaId"), wabaId); +} + +std::string ChatappBindWabaRequest::getApiCode() const { + return apiCode_; +} + +void ChatappBindWabaRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + diff --git a/cams/src/model/ChatappBindWabaResult.cc b/cams/src/model/ChatappBindWabaResult.cc new file mode 100644 index 000000000..86292ab1d --- /dev/null +++ b/cams/src/model/ChatappBindWabaResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappBindWabaResult::ChatappBindWabaResult() : + ServiceResult() +{} + +ChatappBindWabaResult::ChatappBindWabaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappBindWabaResult::~ChatappBindWabaResult() +{} + +void ChatappBindWabaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CustSpaceId"].isNull()) + data_.custSpaceId = dataNode["CustSpaceId"].asString(); + if(!dataNode["WabaId"].isNull()) + data_.wabaId = dataNode["WabaId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChatappBindWabaResult::getMessage()const +{ + return message_; +} + +ChatappBindWabaResult::Data ChatappBindWabaResult::getData()const +{ + return data_; +} + +std::string ChatappBindWabaResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappEmbedSignUpRequest.cc b/cams/src/model/ChatappEmbedSignUpRequest.cc new file mode 100644 index 000000000..5f74850b1 --- /dev/null +++ b/cams/src/model/ChatappEmbedSignUpRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappEmbedSignUpRequest; + +ChatappEmbedSignUpRequest::ChatappEmbedSignUpRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappEmbedSignUp") { + setMethod(HttpRequest::Method::Post); +} + +ChatappEmbedSignUpRequest::~ChatappEmbedSignUpRequest() {} + +std::string ChatappEmbedSignUpRequest::getInputToken() const { + return inputToken_; +} + +void ChatappEmbedSignUpRequest::setInputToken(const std::string &inputToken) { + inputToken_ = inputToken; + setBodyParameter(std::string("InputToken"), inputToken); +} + +std::string ChatappEmbedSignUpRequest::getProdCode() const { + return prodCode_; +} + +void ChatappEmbedSignUpRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappEmbedSignUpRequest::getApiCode() const { + return apiCode_; +} + +void ChatappEmbedSignUpRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + diff --git a/cams/src/model/ChatappEmbedSignUpResult.cc b/cams/src/model/ChatappEmbedSignUpResult.cc new file mode 100644 index 000000000..e7037c767 --- /dev/null +++ b/cams/src/model/ChatappEmbedSignUpResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappEmbedSignUpResult::ChatappEmbedSignUpResult() : + ServiceResult() +{} + +ChatappEmbedSignUpResult::ChatappEmbedSignUpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappEmbedSignUpResult::~ChatappEmbedSignUpResult() +{} + +void ChatappEmbedSignUpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allWabasNode = value["Wabas"]["Waba列表"]; + for (auto valueWabasWaba列表 : allWabasNode) + { + Waba列表 wabasObject; + if(!valueWabasWaba列表["Id"].isNull()) + wabasObject.id = valueWabasWaba列表["Id"].asString(); + if(!valueWabasWaba列表["Name"].isNull()) + wabasObject.name = valueWabasWaba列表["Name"].asString(); + if(!valueWabasWaba列表["Currency"].isNull()) + wabasObject.currency = valueWabasWaba列表["Currency"].asString(); + if(!valueWabasWaba列表["AccountReviewStatus"].isNull()) + wabasObject.accountReviewStatus = valueWabasWaba列表["AccountReviewStatus"].asString(); + if(!valueWabasWaba列表["MessageTemplateNamespace"].isNull()) + wabasObject.messageTemplateNamespace = valueWabasWaba列表["MessageTemplateNamespace"].asString(); + wabas_.push_back(wabasObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChatappEmbedSignUpResult::getMessage()const +{ + return message_; +} + +std::vector ChatappEmbedSignUpResult::getWabas()const +{ + return wabas_; +} + +std::string ChatappEmbedSignUpResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappMigrationRegisterRequest.cc b/cams/src/model/ChatappMigrationRegisterRequest.cc new file mode 100644 index 000000000..09cd7680d --- /dev/null +++ b/cams/src/model/ChatappMigrationRegisterRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappMigrationRegisterRequest; + +ChatappMigrationRegisterRequest::ChatappMigrationRegisterRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappMigrationRegister") { + setMethod(HttpRequest::Method::Post); +} + +ChatappMigrationRegisterRequest::~ChatappMigrationRegisterRequest() {} + +std::string ChatappMigrationRegisterRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void ChatappMigrationRegisterRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string ChatappMigrationRegisterRequest::getApiCode() const { + return apiCode_; +} + +void ChatappMigrationRegisterRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ChatappMigrationRegisterRequest::getProdCode() const { + return prodCode_; +} + +void ChatappMigrationRegisterRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappMigrationRegisterRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ChatappMigrationRegisterRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/ChatappMigrationRegisterResult.cc b/cams/src/model/ChatappMigrationRegisterResult.cc new file mode 100644 index 000000000..58b4bbb0f --- /dev/null +++ b/cams/src/model/ChatappMigrationRegisterResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappMigrationRegisterResult::ChatappMigrationRegisterResult() : + ServiceResult() +{} + +ChatappMigrationRegisterResult::ChatappMigrationRegisterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappMigrationRegisterResult::~ChatappMigrationRegisterResult() +{} + +void ChatappMigrationRegisterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChatappMigrationRegisterResult::getMessage()const +{ + return message_; +} + +std::string ChatappMigrationRegisterResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappMigrationVerifiedRequest.cc b/cams/src/model/ChatappMigrationVerifiedRequest.cc new file mode 100644 index 000000000..721a1954f --- /dev/null +++ b/cams/src/model/ChatappMigrationVerifiedRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappMigrationVerifiedRequest; + +ChatappMigrationVerifiedRequest::ChatappMigrationVerifiedRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappMigrationVerified") { + setMethod(HttpRequest::Method::Post); +} + +ChatappMigrationVerifiedRequest::~ChatappMigrationVerifiedRequest() {} + +std::string ChatappMigrationVerifiedRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void ChatappMigrationVerifiedRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string ChatappMigrationVerifiedRequest::getVerifyCode() const { + return verifyCode_; +} + +void ChatappMigrationVerifiedRequest::setVerifyCode(const std::string &verifyCode) { + verifyCode_ = verifyCode; + setParameter(std::string("VerifyCode"), verifyCode); +} + +std::string ChatappMigrationVerifiedRequest::getApiCode() const { + return apiCode_; +} + +void ChatappMigrationVerifiedRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ChatappMigrationVerifiedRequest::getProdCode() const { + return prodCode_; +} + +void ChatappMigrationVerifiedRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappMigrationVerifiedRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ChatappMigrationVerifiedRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/ChatappMigrationVerifiedResult.cc b/cams/src/model/ChatappMigrationVerifiedResult.cc new file mode 100644 index 000000000..54f87597e --- /dev/null +++ b/cams/src/model/ChatappMigrationVerifiedResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappMigrationVerifiedResult::ChatappMigrationVerifiedResult() : + ServiceResult() +{} + +ChatappMigrationVerifiedResult::ChatappMigrationVerifiedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappMigrationVerifiedResult::~ChatappMigrationVerifiedResult() +{} + +void ChatappMigrationVerifiedResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PhoneNumber"].isNull()) + data_.phoneNumber = dataNode["PhoneNumber"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChatappMigrationVerifiedResult::getMessage()const +{ + return message_; +} + +ChatappMigrationVerifiedResult::Data ChatappMigrationVerifiedResult::getData()const +{ + return data_; +} + +std::string ChatappMigrationVerifiedResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappPhoneNumberRegisterRequest.cc b/cams/src/model/ChatappPhoneNumberRegisterRequest.cc new file mode 100644 index 000000000..438a2f791 --- /dev/null +++ b/cams/src/model/ChatappPhoneNumberRegisterRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappPhoneNumberRegisterRequest; + +ChatappPhoneNumberRegisterRequest::ChatappPhoneNumberRegisterRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappPhoneNumberRegister") { + setMethod(HttpRequest::Method::Post); +} + +ChatappPhoneNumberRegisterRequest::~ChatappPhoneNumberRegisterRequest() {} + +std::string ChatappPhoneNumberRegisterRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void ChatappPhoneNumberRegisterRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setBodyParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string ChatappPhoneNumberRegisterRequest::getApiCode() const { + return apiCode_; +} + +void ChatappPhoneNumberRegisterRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ChatappPhoneNumberRegisterRequest::getProdCode() const { + return prodCode_; +} + +void ChatappPhoneNumberRegisterRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappPhoneNumberRegisterRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ChatappPhoneNumberRegisterRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/ChatappPhoneNumberRegisterResult.cc b/cams/src/model/ChatappPhoneNumberRegisterResult.cc new file mode 100644 index 000000000..2521a01f2 --- /dev/null +++ b/cams/src/model/ChatappPhoneNumberRegisterResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappPhoneNumberRegisterResult::ChatappPhoneNumberRegisterResult() : + ServiceResult() +{} + +ChatappPhoneNumberRegisterResult::ChatappPhoneNumberRegisterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappPhoneNumberRegisterResult::~ChatappPhoneNumberRegisterResult() +{} + +void ChatappPhoneNumberRegisterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChatappPhoneNumberRegisterResult::getMessage()const +{ + return message_; +} + +std::string ChatappPhoneNumberRegisterResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappSyncPhoneNumberRequest.cc b/cams/src/model/ChatappSyncPhoneNumberRequest.cc new file mode 100644 index 000000000..2d118bdd9 --- /dev/null +++ b/cams/src/model/ChatappSyncPhoneNumberRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappSyncPhoneNumberRequest; + +ChatappSyncPhoneNumberRequest::ChatappSyncPhoneNumberRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappSyncPhoneNumber") { + setMethod(HttpRequest::Method::Post); +} + +ChatappSyncPhoneNumberRequest::~ChatappSyncPhoneNumberRequest() {} + +std::string ChatappSyncPhoneNumberRequest::getProdCode() const { + return prodCode_; +} + +void ChatappSyncPhoneNumberRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappSyncPhoneNumberRequest::getApiCode() const { + return apiCode_; +} + +void ChatappSyncPhoneNumberRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ChatappSyncPhoneNumberRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ChatappSyncPhoneNumberRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/ChatappSyncPhoneNumberResult.cc b/cams/src/model/ChatappSyncPhoneNumberResult.cc new file mode 100644 index 000000000..9bc1f5f27 --- /dev/null +++ b/cams/src/model/ChatappSyncPhoneNumberResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappSyncPhoneNumberResult::ChatappSyncPhoneNumberResult() : + ServiceResult() +{} + +ChatappSyncPhoneNumberResult::ChatappSyncPhoneNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappSyncPhoneNumberResult::~ChatappSyncPhoneNumberResult() +{} + +void ChatappSyncPhoneNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPhoneNumbersNode = value["PhoneNumbers"]["phoneNumbersItem"]; + for (auto valuePhoneNumbersphoneNumbersItem : allPhoneNumbersNode) + { + PhoneNumbersItem phoneNumbersObject; + if(!valuePhoneNumbersphoneNumbersItem["UpQueue"].isNull()) + phoneNumbersObject.upQueue = valuePhoneNumbersphoneNumbersItem["UpQueue"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["PhoneNumber"].isNull()) + phoneNumbersObject.phoneNumber = valuePhoneNumbersphoneNumbersItem["PhoneNumber"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["StatusQueue"].isNull()) + phoneNumbersObject.statusQueue = valuePhoneNumbersphoneNumbersItem["StatusQueue"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["VerifiedName"].isNull()) + phoneNumbersObject.verifiedName = valuePhoneNumbersphoneNumbersItem["VerifiedName"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["StatusCallbackUrl"].isNull()) + phoneNumbersObject.statusCallbackUrl = valuePhoneNumbersphoneNumbersItem["StatusCallbackUrl"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["UpCallbackUrl"].isNull()) + phoneNumbersObject.upCallbackUrl = valuePhoneNumbersphoneNumbersItem["UpCallbackUrl"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["QualityRating"].isNull()) + phoneNumbersObject.qualityRating = valuePhoneNumbersphoneNumbersItem["QualityRating"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["Status"].isNull()) + phoneNumbersObject.status = valuePhoneNumbersphoneNumbersItem["Status"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["CodeVerificationStatus"].isNull()) + phoneNumbersObject.codeVerificationStatus = valuePhoneNumbersphoneNumbersItem["CodeVerificationStatus"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["NameStatus"].isNull()) + phoneNumbersObject.nameStatus = valuePhoneNumbersphoneNumbersItem["NameStatus"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["MessagingLimitTier"].isNull()) + phoneNumbersObject.messagingLimitTier = valuePhoneNumbersphoneNumbersItem["MessagingLimitTier"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["NewNameStatus"].isNull()) + phoneNumbersObject.newNameStatus = valuePhoneNumbersphoneNumbersItem["NewNameStatus"].asString(); + phoneNumbers_.push_back(phoneNumbersObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector ChatappSyncPhoneNumberResult::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +std::string ChatappSyncPhoneNumberResult::getMessage()const +{ + return message_; +} + +std::string ChatappSyncPhoneNumberResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ChatappVerifyAndRegisterRequest.cc b/cams/src/model/ChatappVerifyAndRegisterRequest.cc new file mode 100644 index 000000000..2a1be0758 --- /dev/null +++ b/cams/src/model/ChatappVerifyAndRegisterRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ChatappVerifyAndRegisterRequest; + +ChatappVerifyAndRegisterRequest::ChatappVerifyAndRegisterRequest() + : RpcServiceRequest("cams", "2020-06-06", "ChatappVerifyAndRegister") { + setMethod(HttpRequest::Method::Post); +} + +ChatappVerifyAndRegisterRequest::~ChatappVerifyAndRegisterRequest() {} + +std::string ChatappVerifyAndRegisterRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void ChatappVerifyAndRegisterRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setBodyParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string ChatappVerifyAndRegisterRequest::getVerifyCode() const { + return verifyCode_; +} + +void ChatappVerifyAndRegisterRequest::setVerifyCode(const std::string &verifyCode) { + verifyCode_ = verifyCode; + setBodyParameter(std::string("VerifyCode"), verifyCode); +} + +std::string ChatappVerifyAndRegisterRequest::getApiCode() const { + return apiCode_; +} + +void ChatappVerifyAndRegisterRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ChatappVerifyAndRegisterRequest::getProdCode() const { + return prodCode_; +} + +void ChatappVerifyAndRegisterRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ChatappVerifyAndRegisterRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ChatappVerifyAndRegisterRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/ChatappVerifyAndRegisterResult.cc b/cams/src/model/ChatappVerifyAndRegisterResult.cc new file mode 100644 index 000000000..8ff98fa9f --- /dev/null +++ b/cams/src/model/ChatappVerifyAndRegisterResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ChatappVerifyAndRegisterResult::ChatappVerifyAndRegisterResult() : + ServiceResult() +{} + +ChatappVerifyAndRegisterResult::ChatappVerifyAndRegisterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChatappVerifyAndRegisterResult::~ChatappVerifyAndRegisterResult() +{} + +void ChatappVerifyAndRegisterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChatappVerifyAndRegisterResult::getMessage()const +{ + return message_; +} + +std::string ChatappVerifyAndRegisterResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/CheckContactsRequest.cc b/cams/src/model/CheckContactsRequest.cc deleted file mode 100644 index cb095b04b..000000000 --- a/cams/src/model/CheckContactsRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cams::Model::CheckContactsRequest; - -CheckContactsRequest::CheckContactsRequest() : - RpcServiceRequest("cams", "2020-06-06", "CheckContacts") -{ - setMethod(HttpRequest::Method::Post); -} - -CheckContactsRequest::~CheckContactsRequest() -{} - -long CheckContactsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CheckContactsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CheckContactsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CheckContactsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string CheckContactsRequest::getChannelType()const -{ - return channelType_; -} - -void CheckContactsRequest::setChannelType(const std::string& channelType) -{ - channelType_ = channelType; - setBodyParameter("ChannelType", channelType); -} - -std::string CheckContactsRequest::getFrom()const -{ - return from_; -} - -void CheckContactsRequest::setFrom(const std::string& from) -{ - from_ = from; - setBodyParameter("From", from); -} - -std::string CheckContactsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CheckContactsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -long CheckContactsRequest::getOwnerId()const -{ - return ownerId_; -} - -void CheckContactsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CheckContactsRequest::getContacts()const -{ - return contacts_; -} - -void CheckContactsRequest::setContacts(const std::string& contacts) -{ - contacts_ = contacts; - setBodyParameter("Contacts", contacts); -} - diff --git a/cams/src/model/CheckContactsResult.cc b/cams/src/model/CheckContactsResult.cc deleted file mode 100644 index 5a1778026..000000000 --- a/cams/src/model/CheckContactsResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cams; -using namespace AlibabaCloud::Cams::Model; - -CheckContactsResult::CheckContactsResult() : - ServiceResult() -{} - -CheckContactsResult::CheckContactsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CheckContactsResult::~CheckContactsResult() -{} - -void CheckContactsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allContactsNode = value["Contacts"]["ContactStatus"]; - for (auto valueContactsContactStatus : allContactsNode) - { - ContactStatus contactsObject; - if(!valueContactsContactStatus["PhoneNumber"].isNull()) - contactsObject.phoneNumber = valueContactsContactStatus["PhoneNumber"].asString(); - if(!valueContactsContactStatus["Status"].isNull()) - contactsObject.status = valueContactsContactStatus["Status"].asString(); - contacts_.push_back(contactsObject); - } - if(!value["ResultCode"].isNull()) - resultCode_ = value["ResultCode"].asString(); - if(!value["ResultMessage"].isNull()) - resultMessage_ = value["ResultMessage"].asString(); - -} - -std::vector CheckContactsResult::getContacts()const -{ - return contacts_; -} - -std::string CheckContactsResult::getResultMessage()const -{ - return resultMessage_; -} - -std::string CheckContactsResult::getResultCode()const -{ - return resultCode_; -} - diff --git a/cams/src/model/CreateChatappMigrationInitiateRequest.cc b/cams/src/model/CreateChatappMigrationInitiateRequest.cc new file mode 100644 index 000000000..1c5c9693b --- /dev/null +++ b/cams/src/model/CreateChatappMigrationInitiateRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::CreateChatappMigrationInitiateRequest; + +CreateChatappMigrationInitiateRequest::CreateChatappMigrationInitiateRequest() + : RpcServiceRequest("cams", "2020-06-06", "CreateChatappMigrationInitiate") { + setMethod(HttpRequest::Method::Post); +} + +CreateChatappMigrationInitiateRequest::~CreateChatappMigrationInitiateRequest() {} + +std::string CreateChatappMigrationInitiateRequest::getMobileNumber() const { + return mobileNumber_; +} + +void CreateChatappMigrationInitiateRequest::setMobileNumber(const std::string &mobileNumber) { + mobileNumber_ = mobileNumber; + setParameter(std::string("MobileNumber"), mobileNumber); +} + +std::string CreateChatappMigrationInitiateRequest::getCountryCode() const { + return countryCode_; +} + +void CreateChatappMigrationInitiateRequest::setCountryCode(const std::string &countryCode) { + countryCode_ = countryCode; + setParameter(std::string("CountryCode"), countryCode); +} + +std::string CreateChatappMigrationInitiateRequest::getApiCode() const { + return apiCode_; +} + +void CreateChatappMigrationInitiateRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string CreateChatappMigrationInitiateRequest::getProdCode() const { + return prodCode_; +} + +void CreateChatappMigrationInitiateRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string CreateChatappMigrationInitiateRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void CreateChatappMigrationInitiateRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/CreateChatappMigrationInitiateResult.cc b/cams/src/model/CreateChatappMigrationInitiateResult.cc new file mode 100644 index 000000000..b00b634c4 --- /dev/null +++ b/cams/src/model/CreateChatappMigrationInitiateResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +CreateChatappMigrationInitiateResult::CreateChatappMigrationInitiateResult() : + ServiceResult() +{} + +CreateChatappMigrationInitiateResult::CreateChatappMigrationInitiateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateChatappMigrationInitiateResult::~CreateChatappMigrationInitiateResult() +{} + +void CreateChatappMigrationInitiateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PhoneNumber"].isNull()) + data_.phoneNumber = dataNode["PhoneNumber"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateChatappMigrationInitiateResult::getMessage()const +{ + return message_; +} + +CreateChatappMigrationInitiateResult::Data CreateChatappMigrationInitiateResult::getData()const +{ + return data_; +} + +std::string CreateChatappMigrationInitiateResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/CreateChatappTemplateRequest.cc b/cams/src/model/CreateChatappTemplateRequest.cc new file mode 100644 index 000000000..d8a1cb5f3 --- /dev/null +++ b/cams/src/model/CreateChatappTemplateRequest.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::CreateChatappTemplateRequest; + +CreateChatappTemplateRequest::CreateChatappTemplateRequest() + : RpcServiceRequest("cams", "2020-06-06", "CreateChatappTemplate") { + setMethod(HttpRequest::Method::Post); +} + +CreateChatappTemplateRequest::~CreateChatappTemplateRequest() {} + +std::vector CreateChatappTemplateRequest::getComponents() const { + return components_; +} + +void CreateChatappTemplateRequest::setComponents(const std::vector &components) { + components_ = components; + for(int dep1 = 0; dep1 != components.size(); dep1++) { + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Type", components[dep1].type); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Text", components[dep1].text); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Format", components[dep1].format); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Url", components[dep1].url); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Caption", components[dep1].caption); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".FileName", components[dep1].fileName); + for(int dep2 = 0; dep2 != components[dep1].buttons.size(); dep2++) { + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".Type", components[dep1].buttons[dep2].type); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".Text", components[dep1].buttons[dep2].text); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".PhoneNumber", components[dep1].buttons[dep2].phoneNumber); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".Url", components[dep1].buttons[dep2].url); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".UrlType", components[dep1].buttons[dep2].urlType); + } + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ThumbUrl", components[dep1].thumbUrl); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Duration", std::to_string(components[dep1].duration)); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".FileType", components[dep1].fileType); + } +} + +std::string CreateChatappTemplateRequest::getLanguage() const { + return language_; +} + +void CreateChatappTemplateRequest::setLanguage(const std::string &language) { + language_ = language; + setBodyParameter(std::string("Language"), language); +} + +std::string CreateChatappTemplateRequest::getCustWabaId() const { + return custWabaId_; +} + +void CreateChatappTemplateRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setBodyParameter(std::string("CustWabaId"), custWabaId); +} + +std::map CreateChatappTemplateRequest::getExample() const { + return example_; +} + +void CreateChatappTemplateRequest::setExample(const std::map &example) { + example_ = example; + for(auto const &iter1 : example) { + setBodyParameter(std::string("Example") + "." + iter1.first, iter1.second); + } +} + +std::string CreateChatappTemplateRequest::getApiCode() const { + return apiCode_; +} + +void CreateChatappTemplateRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string CreateChatappTemplateRequest::getTemplateType() const { + return templateType_; +} + +void CreateChatappTemplateRequest::setTemplateType(const std::string &templateType) { + templateType_ = templateType; + setBodyParameter(std::string("TemplateType"), templateType); +} + +std::string CreateChatappTemplateRequest::getIsvCode() const { + return isvCode_; +} + +void CreateChatappTemplateRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setBodyParameter(std::string("IsvCode"), isvCode); +} + +std::string CreateChatappTemplateRequest::getProdCode() const { + return prodCode_; +} + +void CreateChatappTemplateRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string CreateChatappTemplateRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void CreateChatappTemplateRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string CreateChatappTemplateRequest::getName() const { + return name_; +} + +void CreateChatappTemplateRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +bool CreateChatappTemplateRequest::getAllowCategoryChange() const { + return allowCategoryChange_; +} + +void CreateChatappTemplateRequest::setAllowCategoryChange(bool allowCategoryChange) { + allowCategoryChange_ = allowCategoryChange; + setBodyParameter(std::string("AllowCategoryChange"), allowCategoryChange ? "true" : "false"); +} + +std::string CreateChatappTemplateRequest::getCategory() const { + return category_; +} + +void CreateChatappTemplateRequest::setCategory(const std::string &category) { + category_ = category; + setBodyParameter(std::string("Category"), category); +} + diff --git a/cams/src/model/CreateChatappTemplateResult.cc b/cams/src/model/CreateChatappTemplateResult.cc new file mode 100644 index 000000000..c4e7f082e --- /dev/null +++ b/cams/src/model/CreateChatappTemplateResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +CreateChatappTemplateResult::CreateChatappTemplateResult() : + ServiceResult() +{} + +CreateChatappTemplateResult::CreateChatappTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateChatappTemplateResult::~CreateChatappTemplateResult() +{} + +void CreateChatappTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TemplateCode"].isNull()) + data_.templateCode = dataNode["TemplateCode"].asString(); + if(!dataNode["TemplateName"].isNull()) + data_.templateName = dataNode["TemplateName"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateChatappTemplateResult::getMessage()const +{ + return message_; +} + +CreateChatappTemplateResult::Data CreateChatappTemplateResult::getData()const +{ + return data_; +} + +std::string CreateChatappTemplateResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/DeleteChatappTemplateRequest.cc b/cams/src/model/DeleteChatappTemplateRequest.cc new file mode 100644 index 000000000..495e0c498 --- /dev/null +++ b/cams/src/model/DeleteChatappTemplateRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::DeleteChatappTemplateRequest; + +DeleteChatappTemplateRequest::DeleteChatappTemplateRequest() + : RpcServiceRequest("cams", "2020-06-06", "DeleteChatappTemplate") { + setMethod(HttpRequest::Method::Post); +} + +DeleteChatappTemplateRequest::~DeleteChatappTemplateRequest() {} + +std::string DeleteChatappTemplateRequest::getCustWabaId() const { + return custWabaId_; +} + +void DeleteChatappTemplateRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setParameter(std::string("CustWabaId"), custWabaId); +} + +std::string DeleteChatappTemplateRequest::getApiCode() const { + return apiCode_; +} + +void DeleteChatappTemplateRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string DeleteChatappTemplateRequest::getIsvCode() const { + return isvCode_; +} + +void DeleteChatappTemplateRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setParameter(std::string("IsvCode"), isvCode); +} + +std::string DeleteChatappTemplateRequest::getProdCode() const { + return prodCode_; +} + +void DeleteChatappTemplateRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string DeleteChatappTemplateRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void DeleteChatappTemplateRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string DeleteChatappTemplateRequest::getTemplateCode() const { + return templateCode_; +} + +void DeleteChatappTemplateRequest::setTemplateCode(const std::string &templateCode) { + templateCode_ = templateCode; + setParameter(std::string("TemplateCode"), templateCode); +} + diff --git a/cams/src/model/DeleteChatappTemplateResult.cc b/cams/src/model/DeleteChatappTemplateResult.cc new file mode 100644 index 000000000..3eb2ba8d4 --- /dev/null +++ b/cams/src/model/DeleteChatappTemplateResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +DeleteChatappTemplateResult::DeleteChatappTemplateResult() : + ServiceResult() +{} + +DeleteChatappTemplateResult::DeleteChatappTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteChatappTemplateResult::~DeleteChatappTemplateResult() +{} + +void DeleteChatappTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteChatappTemplateResult::getMessage()const +{ + return message_; +} + +std::string DeleteChatappTemplateResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/GetChatappTemplateDetailRequest.cc b/cams/src/model/GetChatappTemplateDetailRequest.cc new file mode 100644 index 000000000..05e4a54ad --- /dev/null +++ b/cams/src/model/GetChatappTemplateDetailRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::GetChatappTemplateDetailRequest; + +GetChatappTemplateDetailRequest::GetChatappTemplateDetailRequest() + : RpcServiceRequest("cams", "2020-06-06", "GetChatappTemplateDetail") { + setMethod(HttpRequest::Method::Post); +} + +GetChatappTemplateDetailRequest::~GetChatappTemplateDetailRequest() {} + +std::string GetChatappTemplateDetailRequest::getLanguage() const { + return language_; +} + +void GetChatappTemplateDetailRequest::setLanguage(const std::string &language) { + language_ = language; + setParameter(std::string("Language"), language); +} + +std::string GetChatappTemplateDetailRequest::getCustWabaId() const { + return custWabaId_; +} + +void GetChatappTemplateDetailRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setParameter(std::string("CustWabaId"), custWabaId); +} + +std::string GetChatappTemplateDetailRequest::getApiCode() const { + return apiCode_; +} + +void GetChatappTemplateDetailRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string GetChatappTemplateDetailRequest::getTemplateType() const { + return templateType_; +} + +void GetChatappTemplateDetailRequest::setTemplateType(const std::string &templateType) { + templateType_ = templateType; + setParameter(std::string("TemplateType"), templateType); +} + +std::string GetChatappTemplateDetailRequest::getIsvCode() const { + return isvCode_; +} + +void GetChatappTemplateDetailRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setParameter(std::string("IsvCode"), isvCode); +} + +std::string GetChatappTemplateDetailRequest::getProdCode() const { + return prodCode_; +} + +void GetChatappTemplateDetailRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string GetChatappTemplateDetailRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void GetChatappTemplateDetailRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string GetChatappTemplateDetailRequest::getTemplateCode() const { + return templateCode_; +} + +void GetChatappTemplateDetailRequest::setTemplateCode(const std::string &templateCode) { + templateCode_ = templateCode; + setParameter(std::string("TemplateCode"), templateCode); +} + diff --git a/cams/src/model/GetChatappTemplateDetailResult.cc b/cams/src/model/GetChatappTemplateDetailResult.cc new file mode 100644 index 000000000..dcbe01cc9 --- /dev/null +++ b/cams/src/model/GetChatappTemplateDetailResult.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +GetChatappTemplateDetailResult::GetChatappTemplateDetailResult() : + ServiceResult() +{} + +GetChatappTemplateDetailResult::GetChatappTemplateDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetChatappTemplateDetailResult::~GetChatappTemplateDetailResult() +{} + +void GetChatappTemplateDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Category"].isNull()) + data_.category = dataNode["Category"].asString(); + if(!dataNode["TemplateCode"].isNull()) + data_.templateCode = dataNode["TemplateCode"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Language"].isNull()) + data_.language = dataNode["Language"].asString(); + if(!dataNode["Example"].isNull()) + data_.example = dataNode["Example"].asString(); + if(!dataNode["AuditStatus"].isNull()) + data_.auditStatus = dataNode["AuditStatus"].asString(); + if(!dataNode["TemplateType"].isNull()) + data_.templateType = dataNode["TemplateType"].asString(); + auto allComponentsNode = dataNode["Components"]["component"]; + for (auto dataNodeComponentscomponent : allComponentsNode) + { + Data::Component componentObject; + if(!dataNodeComponentscomponent["Type"].isNull()) + componentObject.type = dataNodeComponentscomponent["Type"].asString(); + if(!dataNodeComponentscomponent["Url"].isNull()) + componentObject.url = dataNodeComponentscomponent["Url"].asString(); + if(!dataNodeComponentscomponent["Text"].isNull()) + componentObject.text = dataNodeComponentscomponent["Text"].asString(); + if(!dataNodeComponentscomponent["Caption"].isNull()) + componentObject.caption = dataNodeComponentscomponent["Caption"].asString(); + if(!dataNodeComponentscomponent["FileName"].isNull()) + componentObject.fileName = dataNodeComponentscomponent["FileName"].asString(); + if(!dataNodeComponentscomponent["Format"].isNull()) + componentObject.format = dataNodeComponentscomponent["Format"].asString(); + if(!dataNodeComponentscomponent["ThumbUrl"].isNull()) + componentObject.thumbUrl = dataNodeComponentscomponent["ThumbUrl"].asString(); + if(!dataNodeComponentscomponent["Duration"].isNull()) + componentObject.duration = std::stoi(dataNodeComponentscomponent["Duration"].asString()); + if(!dataNodeComponentscomponent["FileType"].isNull()) + componentObject.fileType = dataNodeComponentscomponent["FileType"].asString(); + if(!dataNodeComponentscomponent["Latitude"].isNull()) + componentObject.latitude = dataNodeComponentscomponent["Latitude"].asString(); + if(!dataNodeComponentscomponent["Longitude"].isNull()) + componentObject.longitude = dataNodeComponentscomponent["Longitude"].asString(); + if(!dataNodeComponentscomponent["LocationName"].isNull()) + componentObject.locationName = dataNodeComponentscomponent["LocationName"].asString(); + if(!dataNodeComponentscomponent["LocationAddress"].isNull()) + componentObject.locationAddress = dataNodeComponentscomponent["LocationAddress"].asString(); + auto allButtonsNode = dataNodeComponentscomponent["Buttons"]["button"]; + for (auto dataNodeComponentscomponentButtonsbutton : allButtonsNode) + { + Data::Component::Button buttonsObject; + if(!dataNodeComponentscomponentButtonsbutton["Type"].isNull()) + buttonsObject.type = dataNodeComponentscomponentButtonsbutton["Type"].asString(); + if(!dataNodeComponentscomponentButtonsbutton["Text"].isNull()) + buttonsObject.text = dataNodeComponentscomponentButtonsbutton["Text"].asString(); + if(!dataNodeComponentscomponentButtonsbutton["PhoneNumber"].isNull()) + buttonsObject.phoneNumber = dataNodeComponentscomponentButtonsbutton["PhoneNumber"].asString(); + if(!dataNodeComponentscomponentButtonsbutton["Url"].isNull()) + buttonsObject.url = dataNodeComponentscomponentButtonsbutton["Url"].asString(); + if(!dataNodeComponentscomponentButtonsbutton["UrlType"].isNull()) + buttonsObject.urlType = dataNodeComponentscomponentButtonsbutton["UrlType"].asString(); + componentObject.buttons.push_back(buttonsObject); + } + data_.components.push_back(componentObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetChatappTemplateDetailResult::getMessage()const +{ + return message_; +} + +GetChatappTemplateDetailResult::Data GetChatappTemplateDetailResult::getData()const +{ + return data_; +} + +std::string GetChatappTemplateDetailResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/GetChatappUploadAuthorizationRequest.cc b/cams/src/model/GetChatappUploadAuthorizationRequest.cc new file mode 100644 index 000000000..43ed12ab9 --- /dev/null +++ b/cams/src/model/GetChatappUploadAuthorizationRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::GetChatappUploadAuthorizationRequest; + +GetChatappUploadAuthorizationRequest::GetChatappUploadAuthorizationRequest() + : RpcServiceRequest("cams", "2020-06-06", "GetChatappUploadAuthorization") { + setMethod(HttpRequest::Method::Post); +} + +GetChatappUploadAuthorizationRequest::~GetChatappUploadAuthorizationRequest() {} + +std::string GetChatappUploadAuthorizationRequest::getProdCode() const { + return prodCode_; +} + +void GetChatappUploadAuthorizationRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string GetChatappUploadAuthorizationRequest::getApiCode() const { + return apiCode_; +} + +void GetChatappUploadAuthorizationRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string GetChatappUploadAuthorizationRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void GetChatappUploadAuthorizationRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/GetChatappUploadAuthorizationResult.cc b/cams/src/model/GetChatappUploadAuthorizationResult.cc new file mode 100644 index 000000000..334517aec --- /dev/null +++ b/cams/src/model/GetChatappUploadAuthorizationResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +GetChatappUploadAuthorizationResult::GetChatappUploadAuthorizationResult() : + ServiceResult() +{} + +GetChatappUploadAuthorizationResult::GetChatappUploadAuthorizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetChatappUploadAuthorizationResult::~GetChatappUploadAuthorizationResult() +{} + +void GetChatappUploadAuthorizationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AccessKeyId"].isNull()) + data_.accessKeyId = dataNode["AccessKeyId"].asString(); + if(!dataNode["AccessKeySecret"].isNull()) + data_.accessKeySecret = dataNode["AccessKeySecret"].asString(); + if(!dataNode["BucketName"].isNull()) + data_.bucketName = dataNode["BucketName"].asString(); + if(!dataNode["Dir"].isNull()) + data_.dir = dataNode["Dir"].asString(); + if(!dataNode["EndPoint"].isNull()) + data_.endPoint = dataNode["EndPoint"].asString(); + if(!dataNode["SecurityToken"].isNull()) + data_.securityToken = dataNode["SecurityToken"].asString(); + if(!dataNode["Expire"].isNull()) + data_.expire = std::stoi(dataNode["Expire"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetChatappUploadAuthorizationResult::getMessage()const +{ + return message_; +} + +GetChatappUploadAuthorizationResult::Data GetChatappUploadAuthorizationResult::getData()const +{ + return data_; +} + +std::string GetChatappUploadAuthorizationResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/GetChatappVerifyCodeRequest.cc b/cams/src/model/GetChatappVerifyCodeRequest.cc new file mode 100644 index 000000000..13c497354 --- /dev/null +++ b/cams/src/model/GetChatappVerifyCodeRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::GetChatappVerifyCodeRequest; + +GetChatappVerifyCodeRequest::GetChatappVerifyCodeRequest() + : RpcServiceRequest("cams", "2020-06-06", "GetChatappVerifyCode") { + setMethod(HttpRequest::Method::Post); +} + +GetChatappVerifyCodeRequest::~GetChatappVerifyCodeRequest() {} + +std::string GetChatappVerifyCodeRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void GetChatappVerifyCodeRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setBodyParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string GetChatappVerifyCodeRequest::getLocale() const { + return locale_; +} + +void GetChatappVerifyCodeRequest::setLocale(const std::string &locale) { + locale_ = locale; + setBodyParameter(std::string("Locale"), locale); +} + +std::string GetChatappVerifyCodeRequest::getApiCode() const { + return apiCode_; +} + +void GetChatappVerifyCodeRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string GetChatappVerifyCodeRequest::getMethod() const { + return method_; +} + +void GetChatappVerifyCodeRequest::setMethod(const std::string &method) { + method_ = method; + setBodyParameter(std::string("Method"), method); +} + +std::string GetChatappVerifyCodeRequest::getProdCode() const { + return prodCode_; +} + +void GetChatappVerifyCodeRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string GetChatappVerifyCodeRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void GetChatappVerifyCodeRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/GetChatappVerifyCodeResult.cc b/cams/src/model/GetChatappVerifyCodeResult.cc new file mode 100644 index 000000000..bfbc388f6 --- /dev/null +++ b/cams/src/model/GetChatappVerifyCodeResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +GetChatappVerifyCodeResult::GetChatappVerifyCodeResult() : + ServiceResult() +{} + +GetChatappVerifyCodeResult::GetChatappVerifyCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetChatappVerifyCodeResult::~GetChatappVerifyCodeResult() +{} + +void GetChatappVerifyCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetChatappVerifyCodeResult::getMessage()const +{ + return message_; +} + +std::string GetChatappVerifyCodeResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/GetMigrationVerifyCodeRequest.cc b/cams/src/model/GetMigrationVerifyCodeRequest.cc new file mode 100644 index 000000000..32fa5c611 --- /dev/null +++ b/cams/src/model/GetMigrationVerifyCodeRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::GetMigrationVerifyCodeRequest; + +GetMigrationVerifyCodeRequest::GetMigrationVerifyCodeRequest() + : RpcServiceRequest("cams", "2020-06-06", "GetMigrationVerifyCode") { + setMethod(HttpRequest::Method::Post); +} + +GetMigrationVerifyCodeRequest::~GetMigrationVerifyCodeRequest() {} + +std::string GetMigrationVerifyCodeRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void GetMigrationVerifyCodeRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string GetMigrationVerifyCodeRequest::getLocale() const { + return locale_; +} + +void GetMigrationVerifyCodeRequest::setLocale(const std::string &locale) { + locale_ = locale; + setParameter(std::string("Locale"), locale); +} + +std::string GetMigrationVerifyCodeRequest::getApiCode() const { + return apiCode_; +} + +void GetMigrationVerifyCodeRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string GetMigrationVerifyCodeRequest::getMethod() const { + return method_; +} + +void GetMigrationVerifyCodeRequest::setMethod(const std::string &method) { + method_ = method; + setParameter(std::string("Method"), method); +} + +std::string GetMigrationVerifyCodeRequest::getProdCode() const { + return prodCode_; +} + +void GetMigrationVerifyCodeRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string GetMigrationVerifyCodeRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void GetMigrationVerifyCodeRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/GetMigrationVerifyCodeResult.cc b/cams/src/model/GetMigrationVerifyCodeResult.cc new file mode 100644 index 000000000..6eada60e1 --- /dev/null +++ b/cams/src/model/GetMigrationVerifyCodeResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +GetMigrationVerifyCodeResult::GetMigrationVerifyCodeResult() : + ServiceResult() +{} + +GetMigrationVerifyCodeResult::GetMigrationVerifyCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMigrationVerifyCodeResult::~GetMigrationVerifyCodeResult() +{} + +void GetMigrationVerifyCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PhoneNumber"].isNull()) + data_.phoneNumber = dataNode["PhoneNumber"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetMigrationVerifyCodeResult::getMessage()const +{ + return message_; +} + +GetMigrationVerifyCodeResult::Data GetMigrationVerifyCodeResult::getData()const +{ + return data_; +} + +std::string GetMigrationVerifyCodeResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/GetPhoneNumberVerificationStatusRequest.cc b/cams/src/model/GetPhoneNumberVerificationStatusRequest.cc new file mode 100644 index 000000000..325b9de85 --- /dev/null +++ b/cams/src/model/GetPhoneNumberVerificationStatusRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::GetPhoneNumberVerificationStatusRequest; + +GetPhoneNumberVerificationStatusRequest::GetPhoneNumberVerificationStatusRequest() + : RpcServiceRequest("cams", "2020-06-06", "GetPhoneNumberVerificationStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetPhoneNumberVerificationStatusRequest::~GetPhoneNumberVerificationStatusRequest() {} + +std::string GetPhoneNumberVerificationStatusRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void GetPhoneNumberVerificationStatusRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setBodyParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string GetPhoneNumberVerificationStatusRequest::getApiCode() const { + return apiCode_; +} + +void GetPhoneNumberVerificationStatusRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string GetPhoneNumberVerificationStatusRequest::getProdCode() const { + return prodCode_; +} + +void GetPhoneNumberVerificationStatusRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string GetPhoneNumberVerificationStatusRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void GetPhoneNumberVerificationStatusRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/GetPhoneNumberVerificationStatusResult.cc b/cams/src/model/GetPhoneNumberVerificationStatusResult.cc new file mode 100644 index 000000000..399d87dc9 --- /dev/null +++ b/cams/src/model/GetPhoneNumberVerificationStatusResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +GetPhoneNumberVerificationStatusResult::GetPhoneNumberVerificationStatusResult() : + ServiceResult() +{} + +GetPhoneNumberVerificationStatusResult::GetPhoneNumberVerificationStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPhoneNumberVerificationStatusResult::~GetPhoneNumberVerificationStatusResult() +{} + +void GetPhoneNumberVerificationStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PhoneNumber"].isNull()) + data_.phoneNumber = dataNode["PhoneNumber"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["CodeVerificationStatus"].isNull()) + data_.codeVerificationStatus = dataNode["CodeVerificationStatus"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetPhoneNumberVerificationStatusResult::getMessage()const +{ + return message_; +} + +GetPhoneNumberVerificationStatusResult::Data GetPhoneNumberVerificationStatusResult::getData()const +{ + return data_; +} + +std::string GetPhoneNumberVerificationStatusResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/IsvGetAppIdRequest.cc b/cams/src/model/IsvGetAppIdRequest.cc new file mode 100644 index 000000000..ea7d78fb1 --- /dev/null +++ b/cams/src/model/IsvGetAppIdRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::IsvGetAppIdRequest; + +IsvGetAppIdRequest::IsvGetAppIdRequest() + : RpcServiceRequest("cams", "2020-06-06", "IsvGetAppId") { + setMethod(HttpRequest::Method::Post); +} + +IsvGetAppIdRequest::~IsvGetAppIdRequest() {} + +std::string IsvGetAppIdRequest::getProdCode() const { + return prodCode_; +} + +void IsvGetAppIdRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string IsvGetAppIdRequest::getType() const { + return type_; +} + +void IsvGetAppIdRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +std::string IsvGetAppIdRequest::getApiCode() const { + return apiCode_; +} + +void IsvGetAppIdRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + diff --git a/cams/src/model/IsvGetAppIdResult.cc b/cams/src/model/IsvGetAppIdResult.cc new file mode 100644 index 000000000..244a3536a --- /dev/null +++ b/cams/src/model/IsvGetAppIdResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +IsvGetAppIdResult::IsvGetAppIdResult() : + ServiceResult() +{} + +IsvGetAppIdResult::IsvGetAppIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IsvGetAppIdResult::~IsvGetAppIdResult() +{} + +void IsvGetAppIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + +} + +std::string IsvGetAppIdResult::getMessage()const +{ + return message_; +} + +std::string IsvGetAppIdResult::getAppId()const +{ + return appId_; +} + +std::string IsvGetAppIdResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ListChatappTemplateRequest.cc b/cams/src/model/ListChatappTemplateRequest.cc new file mode 100644 index 000000000..90c777d0c --- /dev/null +++ b/cams/src/model/ListChatappTemplateRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ListChatappTemplateRequest; + +ListChatappTemplateRequest::ListChatappTemplateRequest() + : RpcServiceRequest("cams", "2020-06-06", "ListChatappTemplate") { + setMethod(HttpRequest::Method::Post); +} + +ListChatappTemplateRequest::~ListChatappTemplateRequest() {} + +std::string ListChatappTemplateRequest::getLanguage() const { + return language_; +} + +void ListChatappTemplateRequest::setLanguage(const std::string &language) { + language_ = language; + setParameter(std::string("Language"), language); +} + +std::string ListChatappTemplateRequest::getCustWabaId() const { + return custWabaId_; +} + +void ListChatappTemplateRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setParameter(std::string("CustWabaId"), custWabaId); +} + +std::string ListChatappTemplateRequest::getApiCode() const { + return apiCode_; +} + +void ListChatappTemplateRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ListChatappTemplateRequest::getTemplateType() const { + return templateType_; +} + +void ListChatappTemplateRequest::setTemplateType(const std::string &templateType) { + templateType_ = templateType; + setParameter(std::string("TemplateType"), templateType); +} + +std::string ListChatappTemplateRequest::getIsvCode() const { + return isvCode_; +} + +void ListChatappTemplateRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setParameter(std::string("IsvCode"), isvCode); +} + +std::string ListChatappTemplateRequest::getAuditStatus() const { + return auditStatus_; +} + +void ListChatappTemplateRequest::setAuditStatus(const std::string &auditStatus) { + auditStatus_ = auditStatus; + setParameter(std::string("AuditStatus"), auditStatus); +} + +std::string ListChatappTemplateRequest::getProdCode() const { + return prodCode_; +} + +void ListChatappTemplateRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ListChatappTemplateRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ListChatappTemplateRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string ListChatappTemplateRequest::getName() const { + return name_; +} + +void ListChatappTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +ListChatappTemplateRequest::Page ListChatappTemplateRequest::getPage() const { + return page_; +} + +void ListChatappTemplateRequest::setPage(const ListChatappTemplateRequest::Page &page) { + page_ = page; + setParameter(std::string("Page") + ".Index", std::to_string(page.index)); + setParameter(std::string("Page") + ".Size", std::to_string(page.size)); +} + diff --git a/cams/src/model/ListChatappTemplateResult.cc b/cams/src/model/ListChatappTemplateResult.cc new file mode 100644 index 000000000..93ea9fc18 --- /dev/null +++ b/cams/src/model/ListChatappTemplateResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ListChatappTemplateResult::ListChatappTemplateResult() : + ServiceResult() +{} + +ListChatappTemplateResult::ListChatappTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListChatappTemplateResult::~ListChatappTemplateResult() +{} + +void ListChatappTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListTemplateNode = value["ListTemplate"]["template"]; + for (auto valueListTemplatetemplate : allListTemplateNode) + { + _Template listTemplateObject; + if(!valueListTemplatetemplate["TemplateName"].isNull()) + listTemplateObject.templateName = valueListTemplatetemplate["TemplateName"].asString(); + if(!valueListTemplatetemplate["TemplateCode"].isNull()) + listTemplateObject.templateCode = valueListTemplatetemplate["TemplateCode"].asString(); + if(!valueListTemplatetemplate["AuditStatus"].isNull()) + listTemplateObject.auditStatus = valueListTemplatetemplate["AuditStatus"].asString(); + if(!valueListTemplatetemplate["Language"].isNull()) + listTemplateObject.language = valueListTemplatetemplate["Language"].asString(); + if(!valueListTemplatetemplate["Category"].isNull()) + listTemplateObject.category = valueListTemplatetemplate["Category"].asString(); + if(!valueListTemplatetemplate["TemplateType"].isNull()) + listTemplateObject.templateType = valueListTemplatetemplate["TemplateType"].asString(); + listTemplate_.push_back(listTemplateObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +std::string ListChatappTemplateResult::getMessage()const +{ + return message_; +} + +std::vector ListChatappTemplateResult::getListTemplate()const +{ + return listTemplate_; +} + +int ListChatappTemplateResult::getTotal()const +{ + return total_; +} + +std::string ListChatappTemplateResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ModifyChatappTemplateRequest.cc b/cams/src/model/ModifyChatappTemplateRequest.cc new file mode 100644 index 000000000..f4732e919 --- /dev/null +++ b/cams/src/model/ModifyChatappTemplateRequest.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ModifyChatappTemplateRequest; + +ModifyChatappTemplateRequest::ModifyChatappTemplateRequest() + : RpcServiceRequest("cams", "2020-06-06", "ModifyChatappTemplate") { + setMethod(HttpRequest::Method::Post); +} + +ModifyChatappTemplateRequest::~ModifyChatappTemplateRequest() {} + +std::vector ModifyChatappTemplateRequest::getComponents() const { + return components_; +} + +void ModifyChatappTemplateRequest::setComponents(const std::vector &components) { + components_ = components; + for(int dep1 = 0; dep1 != components.size(); dep1++) { + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Type", components[dep1].type); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Text", components[dep1].text); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Format", components[dep1].format); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Url", components[dep1].url); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Caption", components[dep1].caption); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".FileName", components[dep1].fileName); + for(int dep2 = 0; dep2 != components[dep1].buttons.size(); dep2++) { + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".Type", components[dep1].buttons[dep2].type); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".Text", components[dep1].buttons[dep2].text); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".PhoneNumber", components[dep1].buttons[dep2].phoneNumber); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".Url", components[dep1].buttons[dep2].url); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Buttons." + std::to_string(dep2 + 1) + ".UrlType", components[dep1].buttons[dep2].urlType); + } + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ThumbUrl", components[dep1].thumbUrl); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Duration", std::to_string(components[dep1].duration)); + setBodyParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".FileType", components[dep1].fileType); + } +} + +std::string ModifyChatappTemplateRequest::getLanguage() const { + return language_; +} + +void ModifyChatappTemplateRequest::setLanguage(const std::string &language) { + language_ = language; + setBodyParameter(std::string("Language"), language); +} + +std::string ModifyChatappTemplateRequest::getCustWabaId() const { + return custWabaId_; +} + +void ModifyChatappTemplateRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setBodyParameter(std::string("CustWabaId"), custWabaId); +} + +std::map ModifyChatappTemplateRequest::getExample() const { + return example_; +} + +void ModifyChatappTemplateRequest::setExample(const std::map &example) { + example_ = example; + for(auto const &iter1 : example) { + setBodyParameter(std::string("Example") + "." + iter1.first, iter1.second); + } +} + +std::string ModifyChatappTemplateRequest::getApiCode() const { + return apiCode_; +} + +void ModifyChatappTemplateRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ModifyChatappTemplateRequest::getTemplateType() const { + return templateType_; +} + +void ModifyChatappTemplateRequest::setTemplateType(const std::string &templateType) { + templateType_ = templateType; + setBodyParameter(std::string("TemplateType"), templateType); +} + +std::string ModifyChatappTemplateRequest::getIsvCode() const { + return isvCode_; +} + +void ModifyChatappTemplateRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setBodyParameter(std::string("IsvCode"), isvCode); +} + +std::string ModifyChatappTemplateRequest::getProdCode() const { + return prodCode_; +} + +void ModifyChatappTemplateRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ModifyChatappTemplateRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ModifyChatappTemplateRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string ModifyChatappTemplateRequest::getCategory() const { + return category_; +} + +void ModifyChatappTemplateRequest::setCategory(const std::string &category) { + category_ = category; + setBodyParameter(std::string("Category"), category); +} + +std::string ModifyChatappTemplateRequest::getTemplateCode() const { + return templateCode_; +} + +void ModifyChatappTemplateRequest::setTemplateCode(const std::string &templateCode) { + templateCode_ = templateCode; + setBodyParameter(std::string("TemplateCode"), templateCode); +} + diff --git a/cams/src/model/ModifyChatappTemplateResult.cc b/cams/src/model/ModifyChatappTemplateResult.cc new file mode 100644 index 000000000..1ff39573c --- /dev/null +++ b/cams/src/model/ModifyChatappTemplateResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ModifyChatappTemplateResult::ModifyChatappTemplateResult() : + ServiceResult() +{} + +ModifyChatappTemplateResult::ModifyChatappTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyChatappTemplateResult::~ModifyChatappTemplateResult() +{} + +void ModifyChatappTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TemplateCode"].isNull()) + data_.templateCode = dataNode["TemplateCode"].asString(); + if(!dataNode["TemplateName"].isNull()) + data_.templateName = dataNode["TemplateName"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyChatappTemplateResult::getMessage()const +{ + return message_; +} + +ModifyChatappTemplateResult::Data ModifyChatappTemplateResult::getData()const +{ + return data_; +} + +std::string ModifyChatappTemplateResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/ModifyPhoneBusinessProfileRequest.cc b/cams/src/model/ModifyPhoneBusinessProfileRequest.cc new file mode 100644 index 000000000..1fe8b4b28 --- /dev/null +++ b/cams/src/model/ModifyPhoneBusinessProfileRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::ModifyPhoneBusinessProfileRequest; + +ModifyPhoneBusinessProfileRequest::ModifyPhoneBusinessProfileRequest() + : RpcServiceRequest("cams", "2020-06-06", "ModifyPhoneBusinessProfile") { + setMethod(HttpRequest::Method::Post); +} + +ModifyPhoneBusinessProfileRequest::~ModifyPhoneBusinessProfileRequest() {} + +std::string ModifyPhoneBusinessProfileRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void ModifyPhoneBusinessProfileRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string ModifyPhoneBusinessProfileRequest::getDescription() const { + return description_; +} + +void ModifyPhoneBusinessProfileRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyPhoneBusinessProfileRequest::getVertical() const { + return vertical_; +} + +void ModifyPhoneBusinessProfileRequest::setVertical(const std::string &vertical) { + vertical_ = vertical; + setParameter(std::string("Vertical"), vertical); +} + +std::string ModifyPhoneBusinessProfileRequest::getApiCode() const { + return apiCode_; +} + +void ModifyPhoneBusinessProfileRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string ModifyPhoneBusinessProfileRequest::getEmail() const { + return email_; +} + +void ModifyPhoneBusinessProfileRequest::setEmail(const std::string &email) { + email_ = email; + setParameter(std::string("Email"), email); +} + +std::string ModifyPhoneBusinessProfileRequest::getAddress() const { + return address_; +} + +void ModifyPhoneBusinessProfileRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string ModifyPhoneBusinessProfileRequest::getProdCode() const { + return prodCode_; +} + +void ModifyPhoneBusinessProfileRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string ModifyPhoneBusinessProfileRequest::getProfilePictureUrl() const { + return profilePictureUrl_; +} + +void ModifyPhoneBusinessProfileRequest::setProfilePictureUrl(const std::string &profilePictureUrl) { + profilePictureUrl_ = profilePictureUrl; + setParameter(std::string("ProfilePictureUrl"), profilePictureUrl); +} + +std::string ModifyPhoneBusinessProfileRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void ModifyPhoneBusinessProfileRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::vector ModifyPhoneBusinessProfileRequest::getWebsites() const { + return websites_; +} + +void ModifyPhoneBusinessProfileRequest::setWebsites(const std::vector &websites) { + websites_ = websites; + for(int dep1 = 0; dep1 != websites.size(); dep1++) { + setParameter(std::string("Websites") + "." + std::to_string(dep1 + 1), websites[dep1]); + } +} + diff --git a/cams/src/model/ModifyPhoneBusinessProfileResult.cc b/cams/src/model/ModifyPhoneBusinessProfileResult.cc new file mode 100644 index 000000000..e306d12a8 --- /dev/null +++ b/cams/src/model/ModifyPhoneBusinessProfileResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +ModifyPhoneBusinessProfileResult::ModifyPhoneBusinessProfileResult() : + ServiceResult() +{} + +ModifyPhoneBusinessProfileResult::ModifyPhoneBusinessProfileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPhoneBusinessProfileResult::~ModifyPhoneBusinessProfileResult() +{} + +void ModifyPhoneBusinessProfileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyPhoneBusinessProfileResult::getMessage()const +{ + return message_; +} + +std::string ModifyPhoneBusinessProfileResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/QueryChatappBindWabaRequest.cc b/cams/src/model/QueryChatappBindWabaRequest.cc new file mode 100644 index 000000000..f5fb69dbc --- /dev/null +++ b/cams/src/model/QueryChatappBindWabaRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::QueryChatappBindWabaRequest; + +QueryChatappBindWabaRequest::QueryChatappBindWabaRequest() + : RpcServiceRequest("cams", "2020-06-06", "QueryChatappBindWaba") { + setMethod(HttpRequest::Method::Post); +} + +QueryChatappBindWabaRequest::~QueryChatappBindWabaRequest() {} + +std::string QueryChatappBindWabaRequest::getApiCode() const { + return apiCode_; +} + +void QueryChatappBindWabaRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string QueryChatappBindWabaRequest::getIsvCode() const { + return isvCode_; +} + +void QueryChatappBindWabaRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setParameter(std::string("IsvCode"), isvCode); +} + +std::string QueryChatappBindWabaRequest::getProdCode() const { + return prodCode_; +} + +void QueryChatappBindWabaRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string QueryChatappBindWabaRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void QueryChatappBindWabaRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/QueryChatappBindWabaResult.cc b/cams/src/model/QueryChatappBindWabaResult.cc new file mode 100644 index 000000000..745172a59 --- /dev/null +++ b/cams/src/model/QueryChatappBindWabaResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +QueryChatappBindWabaResult::QueryChatappBindWabaResult() : + ServiceResult() +{} + +QueryChatappBindWabaResult::QueryChatappBindWabaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryChatappBindWabaResult::~QueryChatappBindWabaResult() +{} + +void QueryChatappBindWabaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Currency"].isNull()) + data_.currency = dataNode["Currency"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = dataNode["Id"].asString(); + if(!dataNode["MessageTemplateNamespace"].isNull()) + data_.messageTemplateNamespace = dataNode["MessageTemplateNamespace"].asString(); + if(!dataNode["AccountReviewStatus"].isNull()) + data_.accountReviewStatus = dataNode["AccountReviewStatus"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryChatappBindWabaResult::getMessage()const +{ + return message_; +} + +QueryChatappBindWabaResult::Data QueryChatappBindWabaResult::getData()const +{ + return data_; +} + +std::string QueryChatappBindWabaResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/QueryChatappPhoneNumbersRequest.cc b/cams/src/model/QueryChatappPhoneNumbersRequest.cc new file mode 100644 index 000000000..ba1d6a8c4 --- /dev/null +++ b/cams/src/model/QueryChatappPhoneNumbersRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::QueryChatappPhoneNumbersRequest; + +QueryChatappPhoneNumbersRequest::QueryChatappPhoneNumbersRequest() + : RpcServiceRequest("cams", "2020-06-06", "QueryChatappPhoneNumbers") { + setMethod(HttpRequest::Method::Post); +} + +QueryChatappPhoneNumbersRequest::~QueryChatappPhoneNumbersRequest() {} + +std::string QueryChatappPhoneNumbersRequest::getApiCode() const { + return apiCode_; +} + +void QueryChatappPhoneNumbersRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string QueryChatappPhoneNumbersRequest::getIsvCode() const { + return isvCode_; +} + +void QueryChatappPhoneNumbersRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setParameter(std::string("IsvCode"), isvCode); +} + +std::string QueryChatappPhoneNumbersRequest::getProdCode() const { + return prodCode_; +} + +void QueryChatappPhoneNumbersRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string QueryChatappPhoneNumbersRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void QueryChatappPhoneNumbersRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/QueryChatappPhoneNumbersResult.cc b/cams/src/model/QueryChatappPhoneNumbersResult.cc new file mode 100644 index 000000000..58746f5ae --- /dev/null +++ b/cams/src/model/QueryChatappPhoneNumbersResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +QueryChatappPhoneNumbersResult::QueryChatappPhoneNumbersResult() : + ServiceResult() +{} + +QueryChatappPhoneNumbersResult::QueryChatappPhoneNumbersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryChatappPhoneNumbersResult::~QueryChatappPhoneNumbersResult() +{} + +void QueryChatappPhoneNumbersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPhoneNumbersNode = value["PhoneNumbers"]["phoneNumbersItem"]; + for (auto valuePhoneNumbersphoneNumbersItem : allPhoneNumbersNode) + { + PhoneNumbersItem phoneNumbersObject; + if(!valuePhoneNumbersphoneNumbersItem["UpQueue"].isNull()) + phoneNumbersObject.upQueue = valuePhoneNumbersphoneNumbersItem["UpQueue"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["PhoneNumber"].isNull()) + phoneNumbersObject.phoneNumber = valuePhoneNumbersphoneNumbersItem["PhoneNumber"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["StatusQueue"].isNull()) + phoneNumbersObject.statusQueue = valuePhoneNumbersphoneNumbersItem["StatusQueue"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["VerifiedName"].isNull()) + phoneNumbersObject.verifiedName = valuePhoneNumbersphoneNumbersItem["VerifiedName"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["StatusCallbackUrl"].isNull()) + phoneNumbersObject.statusCallbackUrl = valuePhoneNumbersphoneNumbersItem["StatusCallbackUrl"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["UpCallbackUrl"].isNull()) + phoneNumbersObject.upCallbackUrl = valuePhoneNumbersphoneNumbersItem["UpCallbackUrl"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["QualityRating"].isNull()) + phoneNumbersObject.qualityRating = valuePhoneNumbersphoneNumbersItem["QualityRating"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["Status"].isNull()) + phoneNumbersObject.status = valuePhoneNumbersphoneNumbersItem["Status"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["CodeVerificationStatus"].isNull()) + phoneNumbersObject.codeVerificationStatus = valuePhoneNumbersphoneNumbersItem["CodeVerificationStatus"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["NameStatus"].isNull()) + phoneNumbersObject.nameStatus = valuePhoneNumbersphoneNumbersItem["NameStatus"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["MessagingLimitTier"].isNull()) + phoneNumbersObject.messagingLimitTier = valuePhoneNumbersphoneNumbersItem["MessagingLimitTier"].asString(); + if(!valuePhoneNumbersphoneNumbersItem["NewNameStatus"].isNull()) + phoneNumbersObject.newNameStatus = valuePhoneNumbersphoneNumbersItem["NewNameStatus"].asString(); + phoneNumbers_.push_back(phoneNumbersObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector QueryChatappPhoneNumbersResult::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +std::string QueryChatappPhoneNumbersResult::getMessage()const +{ + return message_; +} + +std::string QueryChatappPhoneNumbersResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/QueryPhoneBusinessProfileRequest.cc b/cams/src/model/QueryPhoneBusinessProfileRequest.cc new file mode 100644 index 000000000..1dcbaade6 --- /dev/null +++ b/cams/src/model/QueryPhoneBusinessProfileRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::QueryPhoneBusinessProfileRequest; + +QueryPhoneBusinessProfileRequest::QueryPhoneBusinessProfileRequest() + : RpcServiceRequest("cams", "2020-06-06", "QueryPhoneBusinessProfile") { + setMethod(HttpRequest::Method::Post); +} + +QueryPhoneBusinessProfileRequest::~QueryPhoneBusinessProfileRequest() {} + +std::string QueryPhoneBusinessProfileRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void QueryPhoneBusinessProfileRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string QueryPhoneBusinessProfileRequest::getApiCode() const { + return apiCode_; +} + +void QueryPhoneBusinessProfileRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string QueryPhoneBusinessProfileRequest::getProdCode() const { + return prodCode_; +} + +void QueryPhoneBusinessProfileRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string QueryPhoneBusinessProfileRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void QueryPhoneBusinessProfileRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/QueryPhoneBusinessProfileResult.cc b/cams/src/model/QueryPhoneBusinessProfileResult.cc new file mode 100644 index 000000000..42f4cee85 --- /dev/null +++ b/cams/src/model/QueryPhoneBusinessProfileResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +QueryPhoneBusinessProfileResult::QueryPhoneBusinessProfileResult() : + ServiceResult() +{} + +QueryPhoneBusinessProfileResult::QueryPhoneBusinessProfileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPhoneBusinessProfileResult::~QueryPhoneBusinessProfileResult() +{} + +void QueryPhoneBusinessProfileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Address"].isNull()) + data_.address = dataNode["Address"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Vertical"].isNull()) + data_.vertical = dataNode["Vertical"].asString(); + if(!dataNode["Email"].isNull()) + data_.email = dataNode["Email"].asString(); + if(!dataNode["ProfilePictureUrl"].isNull()) + data_.profilePictureUrl = dataNode["ProfilePictureUrl"].asString(); + auto allWebsites = dataNode["Websites"]["网站"]; + for (auto value : allWebsites) + data_.websites.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryPhoneBusinessProfileResult::getMessage()const +{ + return message_; +} + +QueryPhoneBusinessProfileResult::Data QueryPhoneBusinessProfileResult::getData()const +{ + return data_; +} + +std::string QueryPhoneBusinessProfileResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/QueryWabaBusinessInfoRequest.cc b/cams/src/model/QueryWabaBusinessInfoRequest.cc new file mode 100644 index 000000000..44a2dbdbc --- /dev/null +++ b/cams/src/model/QueryWabaBusinessInfoRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::QueryWabaBusinessInfoRequest; + +QueryWabaBusinessInfoRequest::QueryWabaBusinessInfoRequest() + : RpcServiceRequest("cams", "2020-06-06", "QueryWabaBusinessInfo") { + setMethod(HttpRequest::Method::Post); +} + +QueryWabaBusinessInfoRequest::~QueryWabaBusinessInfoRequest() {} + +std::string QueryWabaBusinessInfoRequest::getApiCode() const { + return apiCode_; +} + +void QueryWabaBusinessInfoRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string QueryWabaBusinessInfoRequest::getProdCode() const { + return prodCode_; +} + +void QueryWabaBusinessInfoRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string QueryWabaBusinessInfoRequest::getWabaId() const { + return wabaId_; +} + +void QueryWabaBusinessInfoRequest::setWabaId(const std::string &wabaId) { + wabaId_ = wabaId; + setParameter(std::string("WabaId"), wabaId); +} + +std::string QueryWabaBusinessInfoRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void QueryWabaBusinessInfoRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/QueryWabaBusinessInfoResult.cc b/cams/src/model/QueryWabaBusinessInfoResult.cc new file mode 100644 index 000000000..e7a3c7b9c --- /dev/null +++ b/cams/src/model/QueryWabaBusinessInfoResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +QueryWabaBusinessInfoResult::QueryWabaBusinessInfoResult() : + ServiceResult() +{} + +QueryWabaBusinessInfoResult::QueryWabaBusinessInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryWabaBusinessInfoResult::~QueryWabaBusinessInfoResult() +{} + +void QueryWabaBusinessInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["BusinessId"].isNull()) + data_.businessId = dataNode["BusinessId"].asString(); + if(!dataNode["BusinessName"].isNull()) + data_.businessName = dataNode["BusinessName"].asString(); + if(!dataNode["VerificationStatus"].isNull()) + data_.verificationStatus = dataNode["VerificationStatus"].asString(); + if(!dataNode["Vertical"].isNull()) + data_.vertical = dataNode["Vertical"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryWabaBusinessInfoResult::getMessage()const +{ + return message_; +} + +QueryWabaBusinessInfoResult::Data QueryWabaBusinessInfoResult::getData()const +{ + return data_; +} + +std::string QueryWabaBusinessInfoResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/SendChatappMassMessageRequest.cc b/cams/src/model/SendChatappMassMessageRequest.cc new file mode 100644 index 000000000..53ecd4d17 --- /dev/null +++ b/cams/src/model/SendChatappMassMessageRequest.cc @@ -0,0 +1,188 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::SendChatappMassMessageRequest; + +SendChatappMassMessageRequest::SendChatappMassMessageRequest() + : RpcServiceRequest("cams", "2020-06-06", "SendChatappMassMessage") { + setMethod(HttpRequest::Method::Post); +} + +SendChatappMassMessageRequest::~SendChatappMassMessageRequest() {} + +std::string SendChatappMassMessageRequest::getLanguage() const { + return language_; +} + +void SendChatappMassMessageRequest::setLanguage(const std::string &language) { + language_ = language; + setBodyParameter(std::string("Language"), language); +} + +std::string SendChatappMassMessageRequest::getCustWabaId() const { + return custWabaId_; +} + +void SendChatappMassMessageRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setBodyParameter(std::string("CustWabaId"), custWabaId); +} + +std::string SendChatappMassMessageRequest::getFallBackContent() const { + return fallBackContent_; +} + +void SendChatappMassMessageRequest::setFallBackContent(const std::string &fallBackContent) { + fallBackContent_ = fallBackContent; + setBodyParameter(std::string("FallBackContent"), fallBackContent); +} + +std::vector SendChatappMassMessageRequest::getSenderList() const { + return senderList_; +} + +void SendChatappMassMessageRequest::setSenderList(const std::vector &senderList) { + senderList_ = senderList; + for(int dep1 = 0; dep1 != senderList.size(); dep1++) { + setBodyParameter(std::string("SenderList") + "." + std::to_string(dep1 + 1) + ".To", senderList[dep1].to); + for(auto const &iter2 : senderList[dep1].templateParams) { + setBodyParameter(std::string("SenderList") + "." + std::to_string(dep1 + 1) + ".TemplateParams." + iter2.first, iter2.second); + } + for(int dep2 = 0; dep2 != senderList[dep1].payload.size(); dep2++) { + setBodyParameter(std::string("SenderList") + "." + std::to_string(dep1 + 1) + ".Payload." + std::to_string(dep2 + 1), senderList[dep1].payload[dep2]); + } + } +} + +std::string SendChatappMassMessageRequest::getApiCode() const { + return apiCode_; +} + +void SendChatappMassMessageRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string SendChatappMassMessageRequest::getChannelType() const { + return channelType_; +} + +void SendChatappMassMessageRequest::setChannelType(const std::string &channelType) { + channelType_ = channelType; + setBodyParameter(std::string("ChannelType"), channelType); +} + +std::string SendChatappMassMessageRequest::getFrom() const { + return from_; +} + +void SendChatappMassMessageRequest::setFrom(const std::string &from) { + from_ = from; + setBodyParameter(std::string("From"), from); +} + +std::string SendChatappMassMessageRequest::getTag() const { + return tag_; +} + +void SendChatappMassMessageRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + +std::string SendChatappMassMessageRequest::getTaskId() const { + return taskId_; +} + +void SendChatappMassMessageRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setBodyParameter(std::string("TaskId"), taskId); +} + +std::string SendChatappMassMessageRequest::getIsvCode() const { + return isvCode_; +} + +void SendChatappMassMessageRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setBodyParameter(std::string("IsvCode"), isvCode); +} + +std::string SendChatappMassMessageRequest::getProdCode() const { + return prodCode_; +} + +void SendChatappMassMessageRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string SendChatappMassMessageRequest::getLabel() const { + return label_; +} + +void SendChatappMassMessageRequest::setLabel(const std::string &label) { + label_ = label; + setBodyParameter(std::string("Label"), label); +} + +std::string SendChatappMassMessageRequest::getFallBackId() const { + return fallBackId_; +} + +void SendChatappMassMessageRequest::setFallBackId(const std::string &fallBackId) { + fallBackId_ = fallBackId; + setBodyParameter(std::string("FallBackId"), fallBackId); +} + +long SendChatappMassMessageRequest::getTtl() const { + return ttl_; +} + +void SendChatappMassMessageRequest::setTtl(long ttl) { + ttl_ = ttl; + setBodyParameter(std::string("Ttl"), std::to_string(ttl)); +} + +int SendChatappMassMessageRequest::getFallBackDuration() const { + return fallBackDuration_; +} + +void SendChatappMassMessageRequest::setFallBackDuration(int fallBackDuration) { + fallBackDuration_ = fallBackDuration; + setBodyParameter(std::string("FallBackDuration"), std::to_string(fallBackDuration)); +} + +std::string SendChatappMassMessageRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void SendChatappMassMessageRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string SendChatappMassMessageRequest::getTemplateCode() const { + return templateCode_; +} + +void SendChatappMassMessageRequest::setTemplateCode(const std::string &templateCode) { + templateCode_ = templateCode; + setBodyParameter(std::string("TemplateCode"), templateCode); +} + diff --git a/cams/src/model/SendChatappMassMessageResult.cc b/cams/src/model/SendChatappMassMessageResult.cc new file mode 100644 index 000000000..47d86aece --- /dev/null +++ b/cams/src/model/SendChatappMassMessageResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +SendChatappMassMessageResult::SendChatappMassMessageResult() : + ServiceResult() +{} + +SendChatappMassMessageResult::SendChatappMassMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendChatappMassMessageResult::~SendChatappMassMessageResult() +{} + +void SendChatappMassMessageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GroupMessageId"].isNull()) + groupMessageId_ = value["GroupMessageId"].asString(); + +} + +std::string SendChatappMassMessageResult::getMessage()const +{ + return message_; +} + +std::string SendChatappMassMessageResult::getGroupMessageId()const +{ + return groupMessageId_; +} + +std::string SendChatappMassMessageResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/SendChatappMessageRequest.cc b/cams/src/model/SendChatappMessageRequest.cc new file mode 100644 index 000000000..8be4e0d04 --- /dev/null +++ b/cams/src/model/SendChatappMessageRequest.cc @@ -0,0 +1,247 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::SendChatappMessageRequest; + +SendChatappMessageRequest::SendChatappMessageRequest() + : RpcServiceRequest("cams", "2020-06-06", "SendChatappMessage") { + setMethod(HttpRequest::Method::Post); +} + +SendChatappMessageRequest::~SendChatappMessageRequest() {} + +std::string SendChatappMessageRequest::getMessageType() const { + return messageType_; +} + +void SendChatappMessageRequest::setMessageType(const std::string &messageType) { + messageType_ = messageType; + setBodyParameter(std::string("MessageType"), messageType); +} + +std::string SendChatappMessageRequest::getLanguage() const { + return language_; +} + +void SendChatappMessageRequest::setLanguage(const std::string &language) { + language_ = language; + setBodyParameter(std::string("Language"), language); +} + +std::string SendChatappMessageRequest::getCustWabaId() const { + return custWabaId_; +} + +void SendChatappMessageRequest::setCustWabaId(const std::string &custWabaId) { + custWabaId_ = custWabaId; + setBodyParameter(std::string("CustWabaId"), custWabaId); +} + +std::string SendChatappMessageRequest::getType() const { + return type_; +} + +void SendChatappMessageRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +std::string SendChatappMessageRequest::getFallBackContent() const { + return fallBackContent_; +} + +void SendChatappMessageRequest::setFallBackContent(const std::string &fallBackContent) { + fallBackContent_ = fallBackContent; + setBodyParameter(std::string("FallBackContent"), fallBackContent); +} + +std::string SendChatappMessageRequest::getContent() const { + return content_; +} + +void SendChatappMessageRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +std::map SendChatappMessageRequest::getTemplateParams() const { + return templateParams_; +} + +void SendChatappMessageRequest::setTemplateParams(const std::map &templateParams) { + templateParams_ = templateParams; + for(auto const &iter1 : templateParams) { + setBodyParameter(std::string("TemplateParams") + "." + iter1.first, iter1.second); + } +} + +std::vector SendChatappMessageRequest::getPayload() const { + return payload_; +} + +void SendChatappMessageRequest::setPayload(const std::vector &payload) { + payload_ = payload; + for(int dep1 = 0; dep1 != payload.size(); dep1++) { + setParameter(std::string("Payload") + "." + std::to_string(dep1 + 1), payload[dep1]); + } +} + +std::string SendChatappMessageRequest::getApiCode() const { + return apiCode_; +} + +void SendChatappMessageRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string SendChatappMessageRequest::getChannelType() const { + return channelType_; +} + +void SendChatappMessageRequest::setChannelType(const std::string &channelType) { + channelType_ = channelType; + setBodyParameter(std::string("ChannelType"), channelType); +} + +std::string SendChatappMessageRequest::getFrom() const { + return from_; +} + +void SendChatappMessageRequest::setFrom(const std::string &from) { + from_ = from; + setBodyParameter(std::string("From"), from); +} + +std::string SendChatappMessageRequest::getTag() const { + return tag_; +} + +void SendChatappMessageRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + +std::string SendChatappMessageRequest::getTrackingData() const { + return trackingData_; +} + +void SendChatappMessageRequest::setTrackingData(const std::string &trackingData) { + trackingData_ = trackingData; + setBodyParameter(std::string("TrackingData"), trackingData); +} + +std::string SendChatappMessageRequest::getTaskId() const { + return taskId_; +} + +void SendChatappMessageRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setBodyParameter(std::string("TaskId"), taskId); +} + +std::string SendChatappMessageRequest::getIsvCode() const { + return isvCode_; +} + +void SendChatappMessageRequest::setIsvCode(const std::string &isvCode) { + isvCode_ = isvCode; + setBodyParameter(std::string("IsvCode"), isvCode); +} + +std::string SendChatappMessageRequest::getContextMessageId() const { + return contextMessageId_; +} + +void SendChatappMessageRequest::setContextMessageId(const std::string &contextMessageId) { + contextMessageId_ = contextMessageId; + setBodyParameter(std::string("ContextMessageId"), contextMessageId); +} + +std::string SendChatappMessageRequest::getProdCode() const { + return prodCode_; +} + +void SendChatappMessageRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string SendChatappMessageRequest::getLabel() const { + return label_; +} + +void SendChatappMessageRequest::setLabel(const std::string &label) { + label_ = label; + setBodyParameter(std::string("Label"), label); +} + +std::string SendChatappMessageRequest::getFallBackId() const { + return fallBackId_; +} + +void SendChatappMessageRequest::setFallBackId(const std::string &fallBackId) { + fallBackId_ = fallBackId; + setBodyParameter(std::string("FallBackId"), fallBackId); +} + +int SendChatappMessageRequest::getTtl() const { + return ttl_; +} + +void SendChatappMessageRequest::setTtl(int ttl) { + ttl_ = ttl; + setBodyParameter(std::string("Ttl"), std::to_string(ttl)); +} + +int SendChatappMessageRequest::getFallBackDuration() const { + return fallBackDuration_; +} + +void SendChatappMessageRequest::setFallBackDuration(int fallBackDuration) { + fallBackDuration_ = fallBackDuration; + setBodyParameter(std::string("FallBackDuration"), std::to_string(fallBackDuration)); +} + +std::string SendChatappMessageRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void SendChatappMessageRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setBodyParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string SendChatappMessageRequest::getTo() const { + return to_; +} + +void SendChatappMessageRequest::setTo(const std::string &to) { + to_ = to; + setBodyParameter(std::string("To"), to); +} + +std::string SendChatappMessageRequest::getTemplateCode() const { + return templateCode_; +} + +void SendChatappMessageRequest::setTemplateCode(const std::string &templateCode) { + templateCode_ = templateCode; + setBodyParameter(std::string("TemplateCode"), templateCode); +} + diff --git a/cams/src/model/SendChatappMessageResult.cc b/cams/src/model/SendChatappMessageResult.cc new file mode 100644 index 000000000..b9d63dfff --- /dev/null +++ b/cams/src/model/SendChatappMessageResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +SendChatappMessageResult::SendChatappMessageResult() : + ServiceResult() +{} + +SendChatappMessageResult::SendChatappMessageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendChatappMessageResult::~SendChatappMessageResult() +{} + +void SendChatappMessageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["MessageId"].isNull()) + messageId_ = value["MessageId"].asString(); + +} + +std::string SendChatappMessageResult::getMessage()const +{ + return message_; +} + +std::string SendChatappMessageResult::getCode()const +{ + return code_; +} + +std::string SendChatappMessageResult::getMessageId()const +{ + return messageId_; +} + diff --git a/cams/src/model/SendMessageRequest.cc b/cams/src/model/SendMessageRequest.cc deleted file mode 100644 index 8bc5ecf63..000000000 --- a/cams/src/model/SendMessageRequest.cc +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cams::Model::SendMessageRequest; - -SendMessageRequest::SendMessageRequest() : - RpcServiceRequest("cams", "2020-06-06", "SendMessage") -{ - setMethod(HttpRequest::Method::Post); -} - -SendMessageRequest::~SendMessageRequest() -{} - -long SendMessageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void SendMessageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string SendMessageRequest::getMessageType()const -{ - return messageType_; -} - -void SendMessageRequest::setMessageType(const std::string& messageType) -{ - messageType_ = messageType; - setBodyParameter("MessageType", messageType); -} - -std::string SendMessageRequest::getTemplateBodyParams()const -{ - return templateBodyParams_; -} - -void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams) -{ - templateBodyParams_ = templateBodyParams; - setBodyParameter("TemplateBodyParams", templateBodyParams); -} - -std::string SendMessageRequest::getLink()const -{ - return link_; -} - -void SendMessageRequest::setLink(const std::string& link) -{ - link_ = link; - setBodyParameter("Link", link); -} - -std::string SendMessageRequest::getCaption()const -{ - return caption_; -} - -void SendMessageRequest::setCaption(const std::string& caption) -{ - caption_ = caption; - setBodyParameter("Caption", caption); -} - -std::string SendMessageRequest::getType()const -{ - return type_; -} - -void SendMessageRequest::setType(const std::string& type) -{ - type_ = type; - setBodyParameter("Type", type); -} - -std::string SendMessageRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void SendMessageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string SendMessageRequest::getChannelType()const -{ - return channelType_; -} - -void SendMessageRequest::setChannelType(const std::string& channelType) -{ - channelType_ = channelType; - setBodyParameter("ChannelType", channelType); -} - -std::string SendMessageRequest::getFrom()const -{ - return from_; -} - -void SendMessageRequest::setFrom(const std::string& from) -{ - from_ = from; - setBodyParameter("From", from); -} - -std::string SendMessageRequest::getText()const -{ - return text_; -} - -void SendMessageRequest::setText(const std::string& text) -{ - text_ = text; - setBodyParameter("Text", text); -} - -std::string SendMessageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void SendMessageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -long SendMessageRequest::getOwnerId()const -{ - return ownerId_; -} - -void SendMessageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string SendMessageRequest::getTo()const -{ - return to_; -} - -void SendMessageRequest::setTo(const std::string& to) -{ - to_ = to; - setBodyParameter("To", to); -} - -std::string SendMessageRequest::getTemplateCode()const -{ - return templateCode_; -} - -void SendMessageRequest::setTemplateCode(const std::string& templateCode) -{ - templateCode_ = templateCode; - setBodyParameter("TemplateCode", templateCode); -} - diff --git a/cams/src/model/SendMessageResult.cc b/cams/src/model/SendMessageResult.cc deleted file mode 100644 index c4efbeb3b..000000000 --- a/cams/src/model/SendMessageResult.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cams; -using namespace AlibabaCloud::Cams::Model; - -SendMessageResult::SendMessageResult() : - ServiceResult() -{} - -SendMessageResult::SendMessageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SendMessageResult::~SendMessageResult() -{} - -void SendMessageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto moduleNode = value["Module"]; - if(!moduleNode["FromId"].isNull()) - module_.fromId = moduleNode["FromId"].asString(); - if(!moduleNode["ToId"].isNull()) - module_.toId = moduleNode["ToId"].asString(); - if(!moduleNode["MessageId"].isNull()) - module_.messageId = moduleNode["MessageId"].asString(); - if(!value["ResultCode"].isNull()) - resultCode_ = value["ResultCode"].asString(); - if(!value["ResultMessage"].isNull()) - resultMessage_ = value["ResultMessage"].asString(); - -} - -SendMessageResult::Module SendMessageResult::getModule()const -{ - return module_; -} - -std::string SendMessageResult::getResultMessage()const -{ - return resultMessage_; -} - -std::string SendMessageResult::getResultCode()const -{ - return resultCode_; -} - diff --git a/cams/src/model/SubmitIsvCustomerTermsRequest.cc b/cams/src/model/SubmitIsvCustomerTermsRequest.cc new file mode 100644 index 000000000..da1ab542e --- /dev/null +++ b/cams/src/model/SubmitIsvCustomerTermsRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::SubmitIsvCustomerTermsRequest; + +SubmitIsvCustomerTermsRequest::SubmitIsvCustomerTermsRequest() + : RpcServiceRequest("cams", "2020-06-06", "SubmitIsvCustomerTerms") { + setMethod(HttpRequest::Method::Post); +} + +SubmitIsvCustomerTermsRequest::~SubmitIsvCustomerTermsRequest() {} + +std::string SubmitIsvCustomerTermsRequest::getOfficeAddress() const { + return officeAddress_; +} + +void SubmitIsvCustomerTermsRequest::setOfficeAddress(const std::string &officeAddress) { + officeAddress_ = officeAddress; + setParameter(std::string("OfficeAddress"), officeAddress); +} + +std::string SubmitIsvCustomerTermsRequest::getIsvTerms() const { + return isvTerms_; +} + +void SubmitIsvCustomerTermsRequest::setIsvTerms(const std::string &isvTerms) { + isvTerms_ = isvTerms; + setParameter(std::string("IsvTerms"), isvTerms); +} + +std::string SubmitIsvCustomerTermsRequest::getApiCode() const { + return apiCode_; +} + +void SubmitIsvCustomerTermsRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string SubmitIsvCustomerTermsRequest::getProdCode() const { + return prodCode_; +} + +void SubmitIsvCustomerTermsRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string SubmitIsvCustomerTermsRequest::getContactMail() const { + return contactMail_; +} + +void SubmitIsvCustomerTermsRequest::setContactMail(const std::string &contactMail) { + contactMail_ = contactMail; + setParameter(std::string("ContactMail"), contactMail); +} + +std::string SubmitIsvCustomerTermsRequest::getCountryId() const { + return countryId_; +} + +void SubmitIsvCustomerTermsRequest::setCountryId(const std::string &countryId) { + countryId_ = countryId; + setParameter(std::string("CountryId"), countryId); +} + +std::string SubmitIsvCustomerTermsRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void SubmitIsvCustomerTermsRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + +std::string SubmitIsvCustomerTermsRequest::getBusinessDesc() const { + return businessDesc_; +} + +void SubmitIsvCustomerTermsRequest::setBusinessDesc(const std::string &businessDesc) { + businessDesc_ = businessDesc; + setParameter(std::string("BusinessDesc"), businessDesc); +} + +std::string SubmitIsvCustomerTermsRequest::getCustName() const { + return custName_; +} + +void SubmitIsvCustomerTermsRequest::setCustName(const std::string &custName) { + custName_ = custName; + setParameter(std::string("CustName"), custName); +} + diff --git a/cams/src/model/SubmitIsvCustomerTermsResult.cc b/cams/src/model/SubmitIsvCustomerTermsResult.cc new file mode 100644 index 000000000..b87621c8c --- /dev/null +++ b/cams/src/model/SubmitIsvCustomerTermsResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +SubmitIsvCustomerTermsResult::SubmitIsvCustomerTermsResult() : + ServiceResult() +{} + +SubmitIsvCustomerTermsResult::SubmitIsvCustomerTermsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitIsvCustomerTermsResult::~SubmitIsvCustomerTermsResult() +{} + +void SubmitIsvCustomerTermsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SubmitIsvCustomerTermsResult::getMessage()const +{ + return message_; +} + +std::string SubmitIsvCustomerTermsResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/UpdateAccountWebhookRequest.cc b/cams/src/model/UpdateAccountWebhookRequest.cc new file mode 100644 index 000000000..87fcc9ed4 --- /dev/null +++ b/cams/src/model/UpdateAccountWebhookRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::UpdateAccountWebhookRequest; + +UpdateAccountWebhookRequest::UpdateAccountWebhookRequest() + : RpcServiceRequest("cams", "2020-06-06", "UpdateAccountWebhook") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAccountWebhookRequest::~UpdateAccountWebhookRequest() {} + +std::string UpdateAccountWebhookRequest::getApiCode() const { + return apiCode_; +} + +void UpdateAccountWebhookRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string UpdateAccountWebhookRequest::getProdCode() const { + return prodCode_; +} + +void UpdateAccountWebhookRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string UpdateAccountWebhookRequest::getQueueFlag() const { + return queueFlag_; +} + +void UpdateAccountWebhookRequest::setQueueFlag(const std::string &queueFlag) { + queueFlag_ = queueFlag; + setParameter(std::string("QueueFlag"), queueFlag); +} + +std::string UpdateAccountWebhookRequest::getHttpFlag() const { + return httpFlag_; +} + +void UpdateAccountWebhookRequest::setHttpFlag(const std::string &httpFlag) { + httpFlag_ = httpFlag; + setParameter(std::string("HttpFlag"), httpFlag); +} + +std::string UpdateAccountWebhookRequest::getStatusCallbackUrl() const { + return statusCallbackUrl_; +} + +void UpdateAccountWebhookRequest::setStatusCallbackUrl(const std::string &statusCallbackUrl) { + statusCallbackUrl_ = statusCallbackUrl; + setParameter(std::string("StatusCallbackUrl"), statusCallbackUrl); +} + +std::string UpdateAccountWebhookRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void UpdateAccountWebhookRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/UpdateAccountWebhookResult.cc b/cams/src/model/UpdateAccountWebhookResult.cc new file mode 100644 index 000000000..1ff2f2f85 --- /dev/null +++ b/cams/src/model/UpdateAccountWebhookResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +UpdateAccountWebhookResult::UpdateAccountWebhookResult() : + ServiceResult() +{} + +UpdateAccountWebhookResult::UpdateAccountWebhookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAccountWebhookResult::~UpdateAccountWebhookResult() +{} + +void UpdateAccountWebhookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateAccountWebhookResult::getMessage()const +{ + return message_; +} + +std::string UpdateAccountWebhookResult::getCode()const +{ + return code_; +} + diff --git a/cams/src/model/UpdatePhoneWebhookRequest.cc b/cams/src/model/UpdatePhoneWebhookRequest.cc new file mode 100644 index 000000000..305e2cb32 --- /dev/null +++ b/cams/src/model/UpdatePhoneWebhookRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cams::Model::UpdatePhoneWebhookRequest; + +UpdatePhoneWebhookRequest::UpdatePhoneWebhookRequest() + : RpcServiceRequest("cams", "2020-06-06", "UpdatePhoneWebhook") { + setMethod(HttpRequest::Method::Post); +} + +UpdatePhoneWebhookRequest::~UpdatePhoneWebhookRequest() {} + +std::string UpdatePhoneWebhookRequest::getUpCallbackUrl() const { + return upCallbackUrl_; +} + +void UpdatePhoneWebhookRequest::setUpCallbackUrl(const std::string &upCallbackUrl) { + upCallbackUrl_ = upCallbackUrl; + setParameter(std::string("UpCallbackUrl"), upCallbackUrl); +} + +std::string UpdatePhoneWebhookRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void UpdatePhoneWebhookRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string UpdatePhoneWebhookRequest::getApiCode() const { + return apiCode_; +} + +void UpdatePhoneWebhookRequest::setApiCode(const std::string &apiCode) { + apiCode_ = apiCode; + setParameter(std::string("ApiCode"), apiCode); +} + +std::string UpdatePhoneWebhookRequest::getProdCode() const { + return prodCode_; +} + +void UpdatePhoneWebhookRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); +} + +std::string UpdatePhoneWebhookRequest::getQueueFlag() const { + return queueFlag_; +} + +void UpdatePhoneWebhookRequest::setQueueFlag(const std::string &queueFlag) { + queueFlag_ = queueFlag; + setParameter(std::string("QueueFlag"), queueFlag); +} + +std::string UpdatePhoneWebhookRequest::getHttpFlag() const { + return httpFlag_; +} + +void UpdatePhoneWebhookRequest::setHttpFlag(const std::string &httpFlag) { + httpFlag_ = httpFlag; + setParameter(std::string("HttpFlag"), httpFlag); +} + +std::string UpdatePhoneWebhookRequest::getStatusCallbackUrl() const { + return statusCallbackUrl_; +} + +void UpdatePhoneWebhookRequest::setStatusCallbackUrl(const std::string &statusCallbackUrl) { + statusCallbackUrl_ = statusCallbackUrl; + setParameter(std::string("StatusCallbackUrl"), statusCallbackUrl); +} + +std::string UpdatePhoneWebhookRequest::getCustSpaceId() const { + return custSpaceId_; +} + +void UpdatePhoneWebhookRequest::setCustSpaceId(const std::string &custSpaceId) { + custSpaceId_ = custSpaceId; + setParameter(std::string("CustSpaceId"), custSpaceId); +} + diff --git a/cams/src/model/UpdatePhoneWebhookResult.cc b/cams/src/model/UpdatePhoneWebhookResult.cc new file mode 100644 index 000000000..c314c50fa --- /dev/null +++ b/cams/src/model/UpdatePhoneWebhookResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cams; +using namespace AlibabaCloud::Cams::Model; + +UpdatePhoneWebhookResult::UpdatePhoneWebhookResult() : + ServiceResult() +{} + +UpdatePhoneWebhookResult::UpdatePhoneWebhookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePhoneWebhookResult::~UpdatePhoneWebhookResult() +{} + +void UpdatePhoneWebhookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdatePhoneWebhookResult::getMessage()const +{ + return message_; +} + +std::string UpdatePhoneWebhookResult::getCode()const +{ + return code_; +} +