From f82391b140a71a9d5f0182282213ec490bccc331 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 16 Sep 2020 01:31:22 +0000 Subject: [PATCH] Add Content. --- CHANGELOG | 3 + industry-brain/CMakeLists.txt | 8 --- .../industry-brain/Industry_brainClient.h | 16 ----- .../model/GetPointReckoningValueRequest.h | 51 ------------- .../model/GetPointReckoningValueResult.h | 55 -------------- .../model/GetPointSampleValueRequest.h | 51 ------------- .../model/GetPointSampleValueResult.h | 55 -------------- .../model/InvokeServiceAsyncRequest.h | 3 - .../model/InvokeServiceResult.h | 2 + industry-brain/src/Industry-brainClient.cc | 72 ------------------- .../src/model/AsyncResponsePostRequest.cc | 2 +- .../model/GetAlgorithmHistoryResultRequest.cc | 2 +- .../model/GetPointReckoningValueRequest.cc | 51 ------------- .../src/model/GetPointReckoningValueResult.cc | 65 ----------------- .../src/model/GetPointSampleValueRequest.cc | 51 ------------- .../src/model/GetPointSampleValueResult.cc | 65 ----------------- .../src/model/GetServiceResultAsyncRequest.cc | 4 +- .../src/model/InvokeServiceAsyncRequest.cc | 13 +--- .../src/model/InvokeServiceRequest.cc | 2 +- .../src/model/InvokeServiceResult.cc | 7 ++ 20 files changed, 18 insertions(+), 560 deletions(-) delete mode 100644 industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h delete mode 100644 industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h delete mode 100644 industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h delete mode 100644 industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h delete mode 100644 industry-brain/src/model/GetPointReckoningValueRequest.cc delete mode 100644 industry-brain/src/model/GetPointReckoningValueResult.cc delete mode 100644 industry-brain/src/model/GetPointSampleValueRequest.cc delete mode 100644 industry-brain/src/model/GetPointSampleValueResult.cc diff --git a/CHANGELOG b/CHANGELOG index 0cb892998..742e414cb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-09-16 Version: patch +- Add Content. + 2020-09-15 Version: patch - Add describe devices to return device status. diff --git a/industry-brain/CMakeLists.txt b/industry-brain/CMakeLists.txt index f5dfa9097..58a9de21d 100644 --- a/industry-brain/CMakeLists.txt +++ b/industry-brain/CMakeLists.txt @@ -25,10 +25,6 @@ set(industry-brain_public_header_model include/alibabacloud/industry-brain/model/AsyncResponsePostResult.h include/alibabacloud/industry-brain/model/GetAlgorithmHistoryResultRequest.h include/alibabacloud/industry-brain/model/GetAlgorithmHistoryResultResult.h - include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h - include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h - include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h - include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h include/alibabacloud/industry-brain/model/GetServiceResultAsyncRequest.h include/alibabacloud/industry-brain/model/GetServiceResultAsyncResult.h include/alibabacloud/industry-brain/model/InvokeServiceRequest.h @@ -42,10 +38,6 @@ set(industry-brain_src src/model/AsyncResponsePostResult.cc src/model/GetAlgorithmHistoryResultRequest.cc src/model/GetAlgorithmHistoryResultResult.cc - src/model/GetPointReckoningValueRequest.cc - src/model/GetPointReckoningValueResult.cc - src/model/GetPointSampleValueRequest.cc - src/model/GetPointSampleValueResult.cc src/model/GetServiceResultAsyncRequest.cc src/model/GetServiceResultAsyncResult.cc src/model/InvokeServiceRequest.cc diff --git a/industry-brain/include/alibabacloud/industry-brain/Industry_brainClient.h b/industry-brain/include/alibabacloud/industry-brain/Industry_brainClient.h index e68002b85..4f8a3cc0c 100644 --- a/industry-brain/include/alibabacloud/industry-brain/Industry_brainClient.h +++ b/industry-brain/include/alibabacloud/industry-brain/Industry_brainClient.h @@ -26,10 +26,6 @@ #include "model/AsyncResponsePostResult.h" #include "model/GetAlgorithmHistoryResultRequest.h" #include "model/GetAlgorithmHistoryResultResult.h" -#include "model/GetPointReckoningValueRequest.h" -#include "model/GetPointReckoningValueResult.h" -#include "model/GetPointSampleValueRequest.h" -#include "model/GetPointSampleValueResult.h" #include "model/GetServiceResultAsyncRequest.h" #include "model/GetServiceResultAsyncResult.h" #include "model/InvokeServiceRequest.h" @@ -51,12 +47,6 @@ namespace AlibabaCloud typedef Outcome GetAlgorithmHistoryResultOutcome; typedef std::future GetAlgorithmHistoryResultOutcomeCallable; typedef std::function&)> GetAlgorithmHistoryResultAsyncHandler; - typedef Outcome GetPointReckoningValueOutcome; - typedef std::future GetPointReckoningValueOutcomeCallable; - typedef std::function&)> GetPointReckoningValueAsyncHandler; - typedef Outcome GetPointSampleValueOutcome; - typedef std::future GetPointSampleValueOutcomeCallable; - typedef std::function&)> GetPointSampleValueAsyncHandler; typedef Outcome GetServiceResultAsyncOutcome; typedef std::future GetServiceResultAsyncOutcomeCallable; typedef std::function&)> GetServiceResultAsyncAsyncHandler; @@ -77,12 +67,6 @@ namespace AlibabaCloud GetAlgorithmHistoryResultOutcome getAlgorithmHistoryResult(const Model::GetAlgorithmHistoryResultRequest &request)const; void getAlgorithmHistoryResultAsync(const Model::GetAlgorithmHistoryResultRequest& request, const GetAlgorithmHistoryResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAlgorithmHistoryResultOutcomeCallable getAlgorithmHistoryResultCallable(const Model::GetAlgorithmHistoryResultRequest& request) const; - GetPointReckoningValueOutcome getPointReckoningValue(const Model::GetPointReckoningValueRequest &request)const; - void getPointReckoningValueAsync(const Model::GetPointReckoningValueRequest& request, const GetPointReckoningValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPointReckoningValueOutcomeCallable getPointReckoningValueCallable(const Model::GetPointReckoningValueRequest& request) const; - GetPointSampleValueOutcome getPointSampleValue(const Model::GetPointSampleValueRequest &request)const; - void getPointSampleValueAsync(const Model::GetPointSampleValueRequest& request, const GetPointSampleValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPointSampleValueOutcomeCallable getPointSampleValueCallable(const Model::GetPointSampleValueRequest& request) const; GetServiceResultAsyncOutcome getServiceResultAsync(const Model::GetServiceResultAsyncRequest &request)const; void getServiceResultAsyncAsync(const Model::GetServiceResultAsyncRequest& request, const GetServiceResultAsyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetServiceResultAsyncOutcomeCallable getServiceResultAsyncCallable(const Model::GetServiceResultAsyncRequest& request) const; diff --git a/industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h b/industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h deleted file mode 100644 index 0bec0ff50..000000000 --- a/industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h +++ /dev/null @@ -1,51 +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_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUEREQUEST_H_ -#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Industry_brain - { - namespace Model - { - class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointReckoningValueRequest : public RpcServiceRequest - { - - public: - GetPointReckoningValueRequest(); - ~GetPointReckoningValueRequest(); - - std::string getTimeType()const; - void setTimeType(const std::string& timeType); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - - private: - std::string timeType_; - std::string templateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUEREQUEST_H_ \ No newline at end of file diff --git a/industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h b/industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h deleted file mode 100644 index fd420683f..000000000 --- a/industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h +++ /dev/null @@ -1,55 +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_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUERESULT_H_ -#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Industry_brain - { - namespace Model - { - class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointReckoningValueResult : public ServiceResult - { - public: - - - GetPointReckoningValueResult(); - explicit GetPointReckoningValueResult(const std::string &payload); - ~GetPointReckoningValueResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUERESULT_H_ \ No newline at end of file diff --git a/industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h b/industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h deleted file mode 100644 index e5f0ab13d..000000000 --- a/industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h +++ /dev/null @@ -1,51 +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_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUEREQUEST_H_ -#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Industry_brain - { - namespace Model - { - class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointSampleValueRequest : public RpcServiceRequest - { - - public: - GetPointSampleValueRequest(); - ~GetPointSampleValueRequest(); - - std::string getTimeType()const; - void setTimeType(const std::string& timeType); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - - private: - std::string timeType_; - std::string templateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUEREQUEST_H_ \ No newline at end of file diff --git a/industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h b/industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h deleted file mode 100644 index 46c9a0f5c..000000000 --- a/industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h +++ /dev/null @@ -1,55 +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_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUERESULT_H_ -#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Industry_brain - { - namespace Model - { - class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointSampleValueResult : public ServiceResult - { - public: - - - GetPointSampleValueResult(); - explicit GetPointSampleValueResult(const std::string &payload); - ~GetPointSampleValueResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUERESULT_H_ \ No newline at end of file diff --git a/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceAsyncRequest.h b/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceAsyncRequest.h index 6931460c4..80072fbf5 100644 --- a/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceAsyncRequest.h +++ b/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceAsyncRequest.h @@ -37,8 +37,6 @@ namespace AlibabaCloud bool getIsShowInput()const; void setIsShowInput(bool isShowInput); - std::string getContext()const; - void setContext(const std::string& context); std::string getServiceId()const; void setServiceId(const std::string& serviceId); std::string getParams()const; @@ -48,7 +46,6 @@ namespace AlibabaCloud private: bool isShowInput_; - std::string context_; std::string serviceId_; std::string params_; std::string requestData_; diff --git a/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceResult.h b/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceResult.h index 53dcce511..3778bf0cb 100644 --- a/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceResult.h +++ b/industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud InvokeServiceResult(); explicit InvokeServiceResult(const std::string &payload); ~InvokeServiceResult(); + std::string getContext()const; std::string getMessage()const; std::string getData()const; std::string getCode()const; @@ -44,6 +45,7 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::string context_; std::string message_; std::string data_; std::string code_; diff --git a/industry-brain/src/Industry-brainClient.cc b/industry-brain/src/Industry-brainClient.cc index aa6a7389c..868272421 100644 --- a/industry-brain/src/Industry-brainClient.cc +++ b/industry-brain/src/Industry-brainClient.cc @@ -123,78 +123,6 @@ Industry_brainClient::GetAlgorithmHistoryResultOutcomeCallable Industry_brainCli return task->get_future(); } -Industry_brainClient::GetPointReckoningValueOutcome Industry_brainClient::getPointReckoningValue(const GetPointReckoningValueRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPointReckoningValueOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPointReckoningValueOutcome(GetPointReckoningValueResult(outcome.result())); - else - return GetPointReckoningValueOutcome(outcome.error()); -} - -void Industry_brainClient::getPointReckoningValueAsync(const GetPointReckoningValueRequest& request, const GetPointReckoningValueAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPointReckoningValue(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Industry_brainClient::GetPointReckoningValueOutcomeCallable Industry_brainClient::getPointReckoningValueCallable(const GetPointReckoningValueRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPointReckoningValue(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -Industry_brainClient::GetPointSampleValueOutcome Industry_brainClient::getPointSampleValue(const GetPointSampleValueRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetPointSampleValueOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetPointSampleValueOutcome(GetPointSampleValueResult(outcome.result())); - else - return GetPointSampleValueOutcome(outcome.error()); -} - -void Industry_brainClient::getPointSampleValueAsync(const GetPointSampleValueRequest& request, const GetPointSampleValueAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getPointSampleValue(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -Industry_brainClient::GetPointSampleValueOutcomeCallable Industry_brainClient::getPointSampleValueCallable(const GetPointSampleValueRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getPointSampleValue(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - Industry_brainClient::GetServiceResultAsyncOutcome Industry_brainClient::getServiceResultAsync(const GetServiceResultAsyncRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/industry-brain/src/model/AsyncResponsePostRequest.cc b/industry-brain/src/model/AsyncResponsePostRequest.cc index 774055cd9..683032244 100644 --- a/industry-brain/src/model/AsyncResponsePostRequest.cc +++ b/industry-brain/src/model/AsyncResponsePostRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Industry_brain::Model::AsyncResponsePostRequest; AsyncResponsePostRequest::AsyncResponsePostRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "AsyncResponsePost") + RpcServiceRequest("industry-brain", "2019-06-29", "AsyncResponsePost") { setMethod(HttpRequest::Method::Post); } diff --git a/industry-brain/src/model/GetAlgorithmHistoryResultRequest.cc b/industry-brain/src/model/GetAlgorithmHistoryResultRequest.cc index eca0e83bf..1ce5f07d8 100644 --- a/industry-brain/src/model/GetAlgorithmHistoryResultRequest.cc +++ b/industry-brain/src/model/GetAlgorithmHistoryResultRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Industry_brain::Model::GetAlgorithmHistoryResultRequest; GetAlgorithmHistoryResultRequest::GetAlgorithmHistoryResultRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "GetAlgorithmHistoryResult") + RpcServiceRequest("industry-brain", "2019-06-29", "GetAlgorithmHistoryResult") { setMethod(HttpRequest::Method::Get); } diff --git a/industry-brain/src/model/GetPointReckoningValueRequest.cc b/industry-brain/src/model/GetPointReckoningValueRequest.cc deleted file mode 100644 index f7e321cab..000000000 --- a/industry-brain/src/model/GetPointReckoningValueRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Industry_brain::Model::GetPointReckoningValueRequest; - -GetPointReckoningValueRequest::GetPointReckoningValueRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "GetPointReckoningValue") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPointReckoningValueRequest::~GetPointReckoningValueRequest() -{} - -std::string GetPointReckoningValueRequest::getTimeType()const -{ - return timeType_; -} - -void GetPointReckoningValueRequest::setTimeType(const std::string& timeType) -{ - timeType_ = timeType; - setParameter("TimeType", timeType); -} - -std::string GetPointReckoningValueRequest::getTemplateId()const -{ - return templateId_; -} - -void GetPointReckoningValueRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); -} - diff --git a/industry-brain/src/model/GetPointReckoningValueResult.cc b/industry-brain/src/model/GetPointReckoningValueResult.cc deleted file mode 100644 index 11cf8b63c..000000000 --- a/industry-brain/src/model/GetPointReckoningValueResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Industry_brain; -using namespace AlibabaCloud::Industry_brain::Model; - -GetPointReckoningValueResult::GetPointReckoningValueResult() : - ServiceResult() -{} - -GetPointReckoningValueResult::GetPointReckoningValueResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPointReckoningValueResult::~GetPointReckoningValueResult() -{} - -void GetPointReckoningValueResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string GetPointReckoningValueResult::getMessage()const -{ - return message_; -} - -std::string GetPointReckoningValueResult::getData()const -{ - return data_; -} - -std::string GetPointReckoningValueResult::getCode()const -{ - return code_; -} - diff --git a/industry-brain/src/model/GetPointSampleValueRequest.cc b/industry-brain/src/model/GetPointSampleValueRequest.cc deleted file mode 100644 index 1c4e0848a..000000000 --- a/industry-brain/src/model/GetPointSampleValueRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Industry_brain::Model::GetPointSampleValueRequest; - -GetPointSampleValueRequest::GetPointSampleValueRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "GetPointSampleValue") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPointSampleValueRequest::~GetPointSampleValueRequest() -{} - -std::string GetPointSampleValueRequest::getTimeType()const -{ - return timeType_; -} - -void GetPointSampleValueRequest::setTimeType(const std::string& timeType) -{ - timeType_ = timeType; - setParameter("TimeType", timeType); -} - -std::string GetPointSampleValueRequest::getTemplateId()const -{ - return templateId_; -} - -void GetPointSampleValueRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); -} - diff --git a/industry-brain/src/model/GetPointSampleValueResult.cc b/industry-brain/src/model/GetPointSampleValueResult.cc deleted file mode 100644 index 8a82bc3ab..000000000 --- a/industry-brain/src/model/GetPointSampleValueResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Industry_brain; -using namespace AlibabaCloud::Industry_brain::Model; - -GetPointSampleValueResult::GetPointSampleValueResult() : - ServiceResult() -{} - -GetPointSampleValueResult::GetPointSampleValueResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetPointSampleValueResult::~GetPointSampleValueResult() -{} - -void GetPointSampleValueResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string GetPointSampleValueResult::getMessage()const -{ - return message_; -} - -std::string GetPointSampleValueResult::getData()const -{ - return data_; -} - -std::string GetPointSampleValueResult::getCode()const -{ - return code_; -} - diff --git a/industry-brain/src/model/GetServiceResultAsyncRequest.cc b/industry-brain/src/model/GetServiceResultAsyncRequest.cc index 609e2af48..d2df76b67 100644 --- a/industry-brain/src/model/GetServiceResultAsyncRequest.cc +++ b/industry-brain/src/model/GetServiceResultAsyncRequest.cc @@ -19,9 +19,9 @@ using AlibabaCloud::Industry_brain::Model::GetServiceResultAsyncRequest; GetServiceResultAsyncRequest::GetServiceResultAsyncRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "GetServiceResultAsync") + RpcServiceRequest("industry-brain", "2019-06-29", "GetServiceResultAsync") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } GetServiceResultAsyncRequest::~GetServiceResultAsyncRequest() diff --git a/industry-brain/src/model/InvokeServiceAsyncRequest.cc b/industry-brain/src/model/InvokeServiceAsyncRequest.cc index 8ae44b9e4..815d77e98 100644 --- a/industry-brain/src/model/InvokeServiceAsyncRequest.cc +++ b/industry-brain/src/model/InvokeServiceAsyncRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Industry_brain::Model::InvokeServiceAsyncRequest; InvokeServiceAsyncRequest::InvokeServiceAsyncRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "InvokeServiceAsync") + RpcServiceRequest("industry-brain", "2019-06-29", "InvokeServiceAsync") { setMethod(HttpRequest::Method::Post); } @@ -38,17 +38,6 @@ void InvokeServiceAsyncRequest::setIsShowInput(bool isShowInput) setParameter("IsShowInput", isShowInput ? "true" : "false"); } -std::string InvokeServiceAsyncRequest::getContext()const -{ - return context_; -} - -void InvokeServiceAsyncRequest::setContext(const std::string& context) -{ - context_ = context; - setParameter("Context", context); -} - std::string InvokeServiceAsyncRequest::getServiceId()const { return serviceId_; diff --git a/industry-brain/src/model/InvokeServiceRequest.cc b/industry-brain/src/model/InvokeServiceRequest.cc index 6411e6db3..5a4e57943 100644 --- a/industry-brain/src/model/InvokeServiceRequest.cc +++ b/industry-brain/src/model/InvokeServiceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Industry_brain::Model::InvokeServiceRequest; InvokeServiceRequest::InvokeServiceRequest() : - RpcServiceRequest("industry-brain", "2019-06-30", "InvokeService") + RpcServiceRequest("industry-brain", "2019-06-29", "InvokeService") { setMethod(HttpRequest::Method::Post); } diff --git a/industry-brain/src/model/InvokeServiceResult.cc b/industry-brain/src/model/InvokeServiceResult.cc index 3f9ae1aec..8f7817733 100644 --- a/industry-brain/src/model/InvokeServiceResult.cc +++ b/industry-brain/src/model/InvokeServiceResult.cc @@ -45,9 +45,16 @@ void InvokeServiceResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Context"].isNull()) + context_ = value["Context"].asString(); } +std::string InvokeServiceResult::getContext()const +{ + return context_; +} + std::string InvokeServiceResult::getMessage()const { return message_;