whatsapp 目录修改

This commit is contained in:
sdk-team
2023-04-14 02:21:48 +00:00
parent 297be84e79
commit 1600c745a1
130 changed files with 10014 additions and 663 deletions

View File

@@ -1 +1 @@
1.36.1531
1.36.1532

View File

@@ -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}

View File

@@ -22,10 +22,66 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#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<Error, Model::CheckContactsResult> CheckContactsOutcome;
typedef std::future<CheckContactsOutcome> CheckContactsOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::CheckContactsRequest&, const CheckContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckContactsAsyncHandler;
typedef Outcome<Error, Model::SendMessageResult> SendMessageOutcome;
typedef std::future<SendMessageOutcome> SendMessageOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::SendMessageRequest&, const SendMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageAsyncHandler;
typedef Outcome<Error, Model::BeeBotAssociateResult> BeeBotAssociateOutcome;
typedef std::future<BeeBotAssociateOutcome> BeeBotAssociateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::BeeBotAssociateRequest&, const BeeBotAssociateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BeeBotAssociateAsyncHandler;
typedef Outcome<Error, Model::BeeBotChatResult> BeeBotChatOutcome;
typedef std::future<BeeBotChatOutcome> BeeBotChatOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::BeeBotChatRequest&, const BeeBotChatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BeeBotChatAsyncHandler;
typedef Outcome<Error, Model::ChatappBindWabaResult> ChatappBindWabaOutcome;
typedef std::future<ChatappBindWabaOutcome> ChatappBindWabaOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappBindWabaRequest&, const ChatappBindWabaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappBindWabaAsyncHandler;
typedef Outcome<Error, Model::ChatappEmbedSignUpResult> ChatappEmbedSignUpOutcome;
typedef std::future<ChatappEmbedSignUpOutcome> ChatappEmbedSignUpOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappEmbedSignUpRequest&, const ChatappEmbedSignUpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappEmbedSignUpAsyncHandler;
typedef Outcome<Error, Model::ChatappMigrationRegisterResult> ChatappMigrationRegisterOutcome;
typedef std::future<ChatappMigrationRegisterOutcome> ChatappMigrationRegisterOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappMigrationRegisterRequest&, const ChatappMigrationRegisterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappMigrationRegisterAsyncHandler;
typedef Outcome<Error, Model::ChatappMigrationVerifiedResult> ChatappMigrationVerifiedOutcome;
typedef std::future<ChatappMigrationVerifiedOutcome> ChatappMigrationVerifiedOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappMigrationVerifiedRequest&, const ChatappMigrationVerifiedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappMigrationVerifiedAsyncHandler;
typedef Outcome<Error, Model::ChatappPhoneNumberRegisterResult> ChatappPhoneNumberRegisterOutcome;
typedef std::future<ChatappPhoneNumberRegisterOutcome> ChatappPhoneNumberRegisterOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappPhoneNumberRegisterRequest&, const ChatappPhoneNumberRegisterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappPhoneNumberRegisterAsyncHandler;
typedef Outcome<Error, Model::ChatappSyncPhoneNumberResult> ChatappSyncPhoneNumberOutcome;
typedef std::future<ChatappSyncPhoneNumberOutcome> ChatappSyncPhoneNumberOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappSyncPhoneNumberRequest&, const ChatappSyncPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappSyncPhoneNumberAsyncHandler;
typedef Outcome<Error, Model::ChatappVerifyAndRegisterResult> ChatappVerifyAndRegisterOutcome;
typedef std::future<ChatappVerifyAndRegisterOutcome> ChatappVerifyAndRegisterOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ChatappVerifyAndRegisterRequest&, const ChatappVerifyAndRegisterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatappVerifyAndRegisterAsyncHandler;
typedef Outcome<Error, Model::CreateChatappMigrationInitiateResult> CreateChatappMigrationInitiateOutcome;
typedef std::future<CreateChatappMigrationInitiateOutcome> CreateChatappMigrationInitiateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::CreateChatappMigrationInitiateRequest&, const CreateChatappMigrationInitiateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateChatappMigrationInitiateAsyncHandler;
typedef Outcome<Error, Model::CreateChatappTemplateResult> CreateChatappTemplateOutcome;
typedef std::future<CreateChatappTemplateOutcome> CreateChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::CreateChatappTemplateRequest&, const CreateChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::DeleteChatappTemplateResult> DeleteChatappTemplateOutcome;
typedef std::future<DeleteChatappTemplateOutcome> DeleteChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::DeleteChatappTemplateRequest&, const DeleteChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::GetChatappTemplateDetailResult> GetChatappTemplateDetailOutcome;
typedef std::future<GetChatappTemplateDetailOutcome> GetChatappTemplateDetailOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetChatappTemplateDetailRequest&, const GetChatappTemplateDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappTemplateDetailAsyncHandler;
typedef Outcome<Error, Model::GetChatappUploadAuthorizationResult> GetChatappUploadAuthorizationOutcome;
typedef std::future<GetChatappUploadAuthorizationOutcome> GetChatappUploadAuthorizationOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetChatappUploadAuthorizationRequest&, const GetChatappUploadAuthorizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappUploadAuthorizationAsyncHandler;
typedef Outcome<Error, Model::GetChatappVerifyCodeResult> GetChatappVerifyCodeOutcome;
typedef std::future<GetChatappVerifyCodeOutcome> GetChatappVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetChatappVerifyCodeRequest&, const GetChatappVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetChatappVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::GetMigrationVerifyCodeResult> GetMigrationVerifyCodeOutcome;
typedef std::future<GetMigrationVerifyCodeOutcome> GetMigrationVerifyCodeOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetMigrationVerifyCodeRequest&, const GetMigrationVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMigrationVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::GetPhoneNumberVerificationStatusResult> GetPhoneNumberVerificationStatusOutcome;
typedef std::future<GetPhoneNumberVerificationStatusOutcome> GetPhoneNumberVerificationStatusOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::GetPhoneNumberVerificationStatusRequest&, const GetPhoneNumberVerificationStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhoneNumberVerificationStatusAsyncHandler;
typedef Outcome<Error, Model::IsvGetAppIdResult> IsvGetAppIdOutcome;
typedef std::future<IsvGetAppIdOutcome> IsvGetAppIdOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::IsvGetAppIdRequest&, const IsvGetAppIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> IsvGetAppIdAsyncHandler;
typedef Outcome<Error, Model::ListChatappTemplateResult> ListChatappTemplateOutcome;
typedef std::future<ListChatappTemplateOutcome> ListChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ListChatappTemplateRequest&, const ListChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::ModifyChatappTemplateResult> ModifyChatappTemplateOutcome;
typedef std::future<ModifyChatappTemplateOutcome> ModifyChatappTemplateOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ModifyChatappTemplateRequest&, const ModifyChatappTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyChatappTemplateAsyncHandler;
typedef Outcome<Error, Model::ModifyPhoneBusinessProfileResult> ModifyPhoneBusinessProfileOutcome;
typedef std::future<ModifyPhoneBusinessProfileOutcome> ModifyPhoneBusinessProfileOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::ModifyPhoneBusinessProfileRequest&, const ModifyPhoneBusinessProfileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPhoneBusinessProfileAsyncHandler;
typedef Outcome<Error, Model::QueryChatappBindWabaResult> QueryChatappBindWabaOutcome;
typedef std::future<QueryChatappBindWabaOutcome> QueryChatappBindWabaOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::QueryChatappBindWabaRequest&, const QueryChatappBindWabaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryChatappBindWabaAsyncHandler;
typedef Outcome<Error, Model::QueryChatappPhoneNumbersResult> QueryChatappPhoneNumbersOutcome;
typedef std::future<QueryChatappPhoneNumbersOutcome> QueryChatappPhoneNumbersOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::QueryChatappPhoneNumbersRequest&, const QueryChatappPhoneNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryChatappPhoneNumbersAsyncHandler;
typedef Outcome<Error, Model::QueryPhoneBusinessProfileResult> QueryPhoneBusinessProfileOutcome;
typedef std::future<QueryPhoneBusinessProfileOutcome> QueryPhoneBusinessProfileOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::QueryPhoneBusinessProfileRequest&, const QueryPhoneBusinessProfileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPhoneBusinessProfileAsyncHandler;
typedef Outcome<Error, Model::QueryWabaBusinessInfoResult> QueryWabaBusinessInfoOutcome;
typedef std::future<QueryWabaBusinessInfoOutcome> QueryWabaBusinessInfoOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::QueryWabaBusinessInfoRequest&, const QueryWabaBusinessInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryWabaBusinessInfoAsyncHandler;
typedef Outcome<Error, Model::SendChatappMassMessageResult> SendChatappMassMessageOutcome;
typedef std::future<SendChatappMassMessageOutcome> SendChatappMassMessageOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::SendChatappMassMessageRequest&, const SendChatappMassMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendChatappMassMessageAsyncHandler;
typedef Outcome<Error, Model::SendChatappMessageResult> SendChatappMessageOutcome;
typedef std::future<SendChatappMessageOutcome> SendChatappMessageOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::SendChatappMessageRequest&, const SendChatappMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendChatappMessageAsyncHandler;
typedef Outcome<Error, Model::SubmitIsvCustomerTermsResult> SubmitIsvCustomerTermsOutcome;
typedef std::future<SubmitIsvCustomerTermsOutcome> SubmitIsvCustomerTermsOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::SubmitIsvCustomerTermsRequest&, const SubmitIsvCustomerTermsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitIsvCustomerTermsAsyncHandler;
typedef Outcome<Error, Model::UpdateAccountWebhookResult> UpdateAccountWebhookOutcome;
typedef std::future<UpdateAccountWebhookOutcome> UpdateAccountWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdateAccountWebhookRequest&, const UpdateAccountWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAccountWebhookAsyncHandler;
typedef Outcome<Error, Model::UpdatePhoneWebhookResult> UpdatePhoneWebhookOutcome;
typedef std::future<UpdatePhoneWebhookOutcome> UpdatePhoneWebhookOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::UpdatePhoneWebhookRequest&, const UpdatePhoneWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePhoneWebhookAsyncHandler;
CamsClient(const Credentials &credentials, const ClientConfiguration &configuration);
CamsClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
UpdatePhoneWebhookOutcomeCallable updatePhoneWebhookCallable(const Model::UpdatePhoneWebhookRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<std::string> getPerspective() const;
void setPerspective(const std::vector<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);
std::string getKnowledgeId() const;
void setKnowledgeId(const std::string &knowledgeId);
std::map<std::string, std::string> getVendorParam() const;
void setVendorParam(const std::map<std::string, std::string> &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<std::string> perspective_;
std::string utterance_;
std::string isvCode_;
std::string prodCode_;
std::string knowledgeId_;
std::map<std::string, std::string> vendorParam_;
std::string senderId_;
std::string chatBotInstanceId_;
std::string custSpaceId_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_BEEBOTCHATREQUEST_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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<RelatedKnowledgesItem> 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<SlotsItem> 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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPBINDWABARESULT_H_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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<Waba列表> getWabas()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<Waba列表> wabas_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPEMBEDSIGNUPRESULT_H_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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<ContactStatus> 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<ContactStatus> contacts_;
std::string resultMessage_;
std::string resultCode_;
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_CHECKCONTACTSRESULT_H_
#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPMIGRATIONVERIFIEDRESULT_H_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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<PhoneNumbersItem> getPhoneNumbers()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<PhoneNumbersItem> phoneNumbers_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_CHATAPPSYNCPHONENUMBERRESULT_H_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<ButtonsItem> buttons;
std::string thumbUrl;
int duration;
std::string fileType;
};
CreateChatappTemplateRequest();
~CreateChatappTemplateRequest();
std::vector<Components> getComponents() const;
void setComponents(const std::vector<Components> &components);
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getCustWabaId() const;
void setCustWabaId(const std::string &custWabaId);
std::map<std::string, std::string> getExample() const;
void setExample(const std::map<std::string, std::string> &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> components_;
std::string language_;
std::string custWabaId_;
std::map<std::string, std::string> 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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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<Component::Button> buttons;
};
std::vector<Component> 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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<ButtonsItem> buttons;
std::string thumbUrl;
int duration;
std::string fileType;
};
ModifyChatappTemplateRequest();
~ModifyChatappTemplateRequest();
std::vector<Components> getComponents() const;
void setComponents(const std::vector<Components> &components);
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getCustWabaId() const;
void setCustWabaId(const std::string &custWabaId);
std::map<std::string, std::string> getExample() const;
void setExample(const std::map<std::string, std::string> &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> components_;
std::string language_;
std::string custWabaId_;
std::map<std::string, std::string> 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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<std::string> getWebsites() const;
void setWebsites(const std::vector<std::string> &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<std::string> websites_;
};
} // namespace Model
} // namespace Cams
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CAMS_MODEL_MODIFYPHONEBUSINESSPROFILEREQUEST_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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<PhoneNumbersItem> getPhoneNumbers()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<PhoneNumbersItem> phoneNumbers_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_QUERYCHATAPPPHONENUMBERSRESULT_H_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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<std::string> 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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Cams {
namespace Model {
class ALIBABACLOUD_CAMS_EXPORT SendChatappMassMessageRequest : public RpcServiceRequest {
public:
struct SenderList {
std::string to;
std::map<std::string, std::string> templateParams;
std::string string;
std::vector<std::string> 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<SenderList> getSenderList() const;
void setSenderList(const std::vector<SenderList> &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> 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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<std::string, std::string> getTemplateParams() const;
void setTemplateParams(const std::map<std::string, std::string> &templateParams);
std::vector<std::string> getPayload() const;
void setPayload(const std::vector<std::string> &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<std::string, std::string> templateParams_;
std::vector<std::string> 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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

View File

@@ -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 <alibabacloud/cams/CamsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
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_

File diff suppressed because it is too large Load Diff

View File

@@ -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 <alibabacloud/cams/model/BeeBotAssociateRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/BeeBotAssociateResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/BeeBotChatRequest.h>
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::std::string> BeeBotChatRequest::getPerspective() const {
return perspective_;
}
void BeeBotChatRequest::setPerspective(const std::vector<BeeBotChatRequest::std::string> &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<std::string, std::string> BeeBotChatRequest::getVendorParam() const {
return vendorParam_;
}
void BeeBotChatRequest::setVendorParam(const std::map<std::string, std::string> &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);
}

View File

@@ -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 <alibabacloud/cams/model/BeeBotChatResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappBindWabaRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappBindWabaResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappEmbedSignUpRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappEmbedSignUpResult.h>
#include <json/json.h>
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::Waba列表> ChatappEmbedSignUpResult::getWabas()const
{
return wabas_;
}
std::string ChatappEmbedSignUpResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappMigrationRegisterRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappMigrationRegisterResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappMigrationVerifiedRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappMigrationVerifiedResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappPhoneNumberRegisterRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappPhoneNumberRegisterResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappSyncPhoneNumberRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappSyncPhoneNumberResult.h>
#include <json/json.h>
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::PhoneNumbersItem> ChatappSyncPhoneNumberResult::getPhoneNumbers()const
{
return phoneNumbers_;
}
std::string ChatappSyncPhoneNumberResult::getMessage()const
{
return message_;
}
std::string ChatappSyncPhoneNumberResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/cams/model/ChatappVerifyAndRegisterRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/ChatappVerifyAndRegisterResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/CheckContactsRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/CheckContactsResult.h>
#include <json/json.h>
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::ContactStatus> CheckContactsResult::getContacts()const
{
return contacts_;
}
std::string CheckContactsResult::getResultMessage()const
{
return resultMessage_;
}
std::string CheckContactsResult::getResultCode()const
{
return resultCode_;
}

View File

@@ -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 <alibabacloud/cams/model/CreateChatappMigrationInitiateRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/CreateChatappMigrationInitiateResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/CreateChatappTemplateRequest.h>
using AlibabaCloud::Cams::Model::CreateChatappTemplateRequest;
CreateChatappTemplateRequest::CreateChatappTemplateRequest()
: RpcServiceRequest("cams", "2020-06-06", "CreateChatappTemplate") {
setMethod(HttpRequest::Method::Post);
}
CreateChatappTemplateRequest::~CreateChatappTemplateRequest() {}
std::vector<CreateChatappTemplateRequest::Components> CreateChatappTemplateRequest::getComponents() const {
return components_;
}
void CreateChatappTemplateRequest::setComponents(const std::vector<CreateChatappTemplateRequest::Components> &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<std::string, std::string> CreateChatappTemplateRequest::getExample() const {
return example_;
}
void CreateChatappTemplateRequest::setExample(const std::map<std::string, std::string> &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);
}

View File

@@ -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 <alibabacloud/cams/model/CreateChatappTemplateResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/DeleteChatappTemplateRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/DeleteChatappTemplateResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/GetChatappTemplateDetailRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/GetChatappTemplateDetailResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/GetChatappUploadAuthorizationRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/GetChatappUploadAuthorizationResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/GetChatappVerifyCodeRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/GetChatappVerifyCodeResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/cams/model/GetMigrationVerifyCodeRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cams/model/GetMigrationVerifyCodeResult.h>
#include <json/json.h>
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_;
}

Some files were not shown because too many files have changed in this diff Show More