diff --git a/CHANGELOG b/CHANGELOG index 8622f9f1b..894ba2746 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2018-08-14 Version: 1.22.1 +1, Change parameter name of Dialogue + 2018-08-13 Version: 1.22.0 1, New userinfo fields for registerface input parameter. 2, New userinfo fields for updateface input parameter. diff --git a/VERSION b/VERSION index 80a81c0e7..24b38a959 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.22.0 \ No newline at end of file +1.22.1 \ No newline at end of file diff --git a/ccc/CMakeLists.txt b/ccc/CMakeLists.txt index 570226644..4727a0b93 100644 --- a/ccc/CMakeLists.txt +++ b/ccc/CMakeLists.txt @@ -141,6 +141,8 @@ set(ccc_public_header_model include/alibabacloud/ccc/model/ListRolesResult.h include/alibabacloud/ccc/model/ListConfigRequest.h include/alibabacloud/ccc/model/ListConfigResult.h + include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h + include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h include/alibabacloud/ccc/model/ModifyPhoneNumberRequest.h include/alibabacloud/ccc/model/ModifyPhoneNumberResult.h include/alibabacloud/ccc/model/ListScenariosRequest.h @@ -300,6 +302,8 @@ set(ccc_src src/model/ListRolesResult.cc src/model/ListConfigRequest.cc src/model/ListConfigResult.cc + src/model/LaunchShortMessageAppraiseRequest.cc + src/model/LaunchShortMessageAppraiseResult.cc src/model/ModifyPhoneNumberRequest.cc src/model/ModifyPhoneNumberResult.cc src/model/ListScenariosRequest.cc diff --git a/ccc/include/alibabacloud/ccc/CCCClient.h b/ccc/include/alibabacloud/ccc/CCCClient.h index 50b99514d..008ceb920 100644 --- a/ccc/include/alibabacloud/ccc/CCCClient.h +++ b/ccc/include/alibabacloud/ccc/CCCClient.h @@ -142,6 +142,8 @@ #include "model/ListRolesResult.h" #include "model/ListConfigRequest.h" #include "model/ListConfigResult.h" +#include "model/LaunchShortMessageAppraiseRequest.h" +#include "model/LaunchShortMessageAppraiseResult.h" #include "model/ModifyPhoneNumberRequest.h" #include "model/ModifyPhoneNumberResult.h" #include "model/ListScenariosRequest.h" @@ -367,6 +369,9 @@ namespace AlibabaCloud typedef Outcome ListConfigOutcome; typedef std::future ListConfigOutcomeCallable; typedef std::function&)> ListConfigAsyncHandler; + typedef Outcome LaunchShortMessageAppraiseOutcome; + typedef std::future LaunchShortMessageAppraiseOutcomeCallable; + typedef std::function&)> LaunchShortMessageAppraiseAsyncHandler; typedef Outcome ModifyPhoneNumberOutcome; typedef std::future ModifyPhoneNumberOutcomeCallable; typedef std::function&)> ModifyPhoneNumberAsyncHandler; @@ -606,6 +611,9 @@ namespace AlibabaCloud ListConfigOutcome listConfig(const Model::ListConfigRequest &request)const; void listConfigAsync(const Model::ListConfigRequest& request, const ListConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConfigOutcomeCallable listConfigCallable(const Model::ListConfigRequest& request) const; + LaunchShortMessageAppraiseOutcome launchShortMessageAppraise(const Model::LaunchShortMessageAppraiseRequest &request)const; + void launchShortMessageAppraiseAsync(const Model::LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LaunchShortMessageAppraiseOutcomeCallable launchShortMessageAppraiseCallable(const Model::LaunchShortMessageAppraiseRequest& request) const; ModifyPhoneNumberOutcome modifyPhoneNumber(const Model::ModifyPhoneNumberRequest &request)const; void modifyPhoneNumberAsync(const Model::ModifyPhoneNumberRequest& request, const ModifyPhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyPhoneNumberOutcomeCallable modifyPhoneNumberCallable(const Model::ModifyPhoneNumberRequest& request) const; diff --git a/ccc/include/alibabacloud/ccc/model/DialogueRequest.h b/ccc/include/alibabacloud/ccc/model/DialogueRequest.h index 6ae1f0364..4a513a44a 100644 --- a/ccc/include/alibabacloud/ccc/model/DialogueRequest.h +++ b/ccc/include/alibabacloud/ccc/model/DialogueRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setInstanceId(const std::string& instanceId); std::string getCalledNumber()const; void setCalledNumber(const std::string& calledNumber); + std::string getActionKey()const; + void setActionKey(const std::string& actionKey); std::string getActionParams()const; void setActionParams(const std::string& actionParams); std::string getCallType()const; @@ -59,6 +61,7 @@ namespace AlibabaCloud std::string callingNumber_; std::string instanceId_; std::string calledNumber_; + std::string actionKey_; std::string actionParams_; std::string callType_; std::string scenarioId_; diff --git a/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h new file mode 100644 index 000000000..4cfa4516e --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISEREQUEST_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchShortMessageAppraiseRequest : public RpcServiceRequest + { + + public: + LaunchShortMessageAppraiseRequest(); + ~LaunchShortMessageAppraiseRequest(); + + std::string getAcid()const; + void setAcid(const std::string& acid); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getContactType()const; + void setContactType(int contactType); + std::string getPhoneNumbers()const; + void setPhoneNumbers(const std::string& phoneNumbers); + std::string getSkillGroupId()const; + void setSkillGroupId(const std::string& skillGroupId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string acid_; + std::string instanceId_; + int contactType_; + std::string phoneNumbers_; + std::string skillGroupId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISEREQUEST_H_ \ No newline at end of file diff --git a/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h new file mode 100644 index 000000000..355684d26 --- /dev/null +++ b/ccc/include/alibabacloud/ccc/model/LaunchShortMessageAppraiseResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ +#define ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace CCC + { + namespace Model + { + class ALIBABACLOUD_CCC_EXPORT LaunchShortMessageAppraiseResult : public ServiceResult + { + public: + + + LaunchShortMessageAppraiseResult(); + explicit LaunchShortMessageAppraiseResult(const std::string &payload); + ~LaunchShortMessageAppraiseResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CCC_MODEL_LAUNCHSHORTMESSAGEAPPRAISERESULT_H_ \ No newline at end of file diff --git a/ccc/src/CCCClient.cc b/ccc/src/CCCClient.cc index 131b97116..a383e6b7b 100644 --- a/ccc/src/CCCClient.cc +++ b/ccc/src/CCCClient.cc @@ -2211,6 +2211,42 @@ CCCClient::ListConfigOutcomeCallable CCCClient::listConfigCallable(const ListCon return task->get_future(); } +CCCClient::LaunchShortMessageAppraiseOutcome CCCClient::launchShortMessageAppraise(const LaunchShortMessageAppraiseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LaunchShortMessageAppraiseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LaunchShortMessageAppraiseOutcome(LaunchShortMessageAppraiseResult(outcome.result())); + else + return LaunchShortMessageAppraiseOutcome(outcome.error()); +} + +void CCCClient::launchShortMessageAppraiseAsync(const LaunchShortMessageAppraiseRequest& request, const LaunchShortMessageAppraiseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, launchShortMessageAppraise(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CCCClient::LaunchShortMessageAppraiseOutcomeCallable CCCClient::launchShortMessageAppraiseCallable(const LaunchShortMessageAppraiseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->launchShortMessageAppraise(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ccc/src/model/DialogueRequest.cc b/ccc/src/model/DialogueRequest.cc index 0e03b16cb..d640d03ed 100644 --- a/ccc/src/model/DialogueRequest.cc +++ b/ccc/src/model/DialogueRequest.cc @@ -69,6 +69,17 @@ void DialogueRequest::setCalledNumber(const std::string& calledNumber) setParameter("CalledNumber", calledNumber); } +std::string DialogueRequest::getActionKey()const +{ + return actionKey_; +} + +void DialogueRequest::setActionKey(const std::string& actionKey) +{ + actionKey_ = actionKey; + setParameter("ActionKey", actionKey); +} + std::string DialogueRequest::getActionParams()const { return actionParams_; diff --git a/ccc/src/model/LaunchShortMessageAppraiseRequest.cc b/ccc/src/model/LaunchShortMessageAppraiseRequest.cc new file mode 100644 index 000000000..7065af275 --- /dev/null +++ b/ccc/src/model/LaunchShortMessageAppraiseRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::CCC::Model::LaunchShortMessageAppraiseRequest; + +LaunchShortMessageAppraiseRequest::LaunchShortMessageAppraiseRequest() : + RpcServiceRequest("ccc", "2017-07-05", "LaunchShortMessageAppraise") +{} + +LaunchShortMessageAppraiseRequest::~LaunchShortMessageAppraiseRequest() +{} + +std::string LaunchShortMessageAppraiseRequest::getAcid()const +{ + return acid_; +} + +void LaunchShortMessageAppraiseRequest::setAcid(const std::string& acid) +{ + acid_ = acid; + setParameter("Acid", acid); +} + +std::string LaunchShortMessageAppraiseRequest::getInstanceId()const +{ + return instanceId_; +} + +void LaunchShortMessageAppraiseRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int LaunchShortMessageAppraiseRequest::getContactType()const +{ + return contactType_; +} + +void LaunchShortMessageAppraiseRequest::setContactType(int contactType) +{ + contactType_ = contactType; + setParameter("ContactType", std::to_string(contactType)); +} + +std::string LaunchShortMessageAppraiseRequest::getPhoneNumbers()const +{ + return phoneNumbers_; +} + +void LaunchShortMessageAppraiseRequest::setPhoneNumbers(const std::string& phoneNumbers) +{ + phoneNumbers_ = phoneNumbers; + setParameter("PhoneNumbers", phoneNumbers); +} + +std::string LaunchShortMessageAppraiseRequest::getSkillGroupId()const +{ + return skillGroupId_; +} + +void LaunchShortMessageAppraiseRequest::setSkillGroupId(const std::string& skillGroupId) +{ + skillGroupId_ = skillGroupId; + setParameter("SkillGroupId", skillGroupId); +} + +std::string LaunchShortMessageAppraiseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void LaunchShortMessageAppraiseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/ccc/src/model/LaunchShortMessageAppraiseResult.cc b/ccc/src/model/LaunchShortMessageAppraiseResult.cc new file mode 100644 index 000000000..cbb6f94a4 --- /dev/null +++ b/ccc/src/model/LaunchShortMessageAppraiseResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::CCC; +using namespace AlibabaCloud::CCC::Model; + +LaunchShortMessageAppraiseResult::LaunchShortMessageAppraiseResult() : + ServiceResult() +{} + +LaunchShortMessageAppraiseResult::LaunchShortMessageAppraiseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LaunchShortMessageAppraiseResult::~LaunchShortMessageAppraiseResult() +{} + +void LaunchShortMessageAppraiseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string LaunchShortMessageAppraiseResult::getMessage()const +{ + return message_; +} + +int LaunchShortMessageAppraiseResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string LaunchShortMessageAppraiseResult::getCode()const +{ + return code_; +} + +bool LaunchShortMessageAppraiseResult::getSuccess()const +{ + return success_; +} +