sdk-team 6 роки тому
батько
коміт
f82391b140
20 змінених файлів з 18 додано та 560 видалено
  1. 3 0
      CHANGELOG
  2. 0 8
      industry-brain/CMakeLists.txt
  3. 0 16
      industry-brain/include/alibabacloud/industry-brain/Industry_brainClient.h
  4. 0 51
      industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h
  5. 0 55
      industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h
  6. 0 51
      industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h
  7. 0 55
      industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h
  8. 0 3
      industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceAsyncRequest.h
  9. 2 0
      industry-brain/include/alibabacloud/industry-brain/model/InvokeServiceResult.h
  10. 0 72
      industry-brain/src/Industry-brainClient.cc
  11. 1 1
      industry-brain/src/model/AsyncResponsePostRequest.cc
  12. 1 1
      industry-brain/src/model/GetAlgorithmHistoryResultRequest.cc
  13. 0 51
      industry-brain/src/model/GetPointReckoningValueRequest.cc
  14. 0 65
      industry-brain/src/model/GetPointReckoningValueResult.cc
  15. 0 51
      industry-brain/src/model/GetPointSampleValueRequest.cc
  16. 0 65
      industry-brain/src/model/GetPointSampleValueResult.cc
  17. 2 2
      industry-brain/src/model/GetServiceResultAsyncRequest.cc
  18. 1 12
      industry-brain/src/model/InvokeServiceAsyncRequest.cc
  19. 1 1
      industry-brain/src/model/InvokeServiceRequest.cc
  20. 7 0
      industry-brain/src/model/InvokeServiceResult.cc

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-09-16 Version: patch
+- Add Content.
+
 2020-09-15 Version: patch
 - Add describe devices to return device status.
 

+ 0 - 8
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

+ 0 - 16
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<Error, Model::GetAlgorithmHistoryResultResult> GetAlgorithmHistoryResultOutcome;
 			typedef std::future<GetAlgorithmHistoryResultOutcome> GetAlgorithmHistoryResultOutcomeCallable;
 			typedef std::function<void(const Industry_brainClient*, const Model::GetAlgorithmHistoryResultRequest&, const GetAlgorithmHistoryResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAlgorithmHistoryResultAsyncHandler;
-			typedef Outcome<Error, Model::GetPointReckoningValueResult> GetPointReckoningValueOutcome;
-			typedef std::future<GetPointReckoningValueOutcome> GetPointReckoningValueOutcomeCallable;
-			typedef std::function<void(const Industry_brainClient*, const Model::GetPointReckoningValueRequest&, const GetPointReckoningValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPointReckoningValueAsyncHandler;
-			typedef Outcome<Error, Model::GetPointSampleValueResult> GetPointSampleValueOutcome;
-			typedef std::future<GetPointSampleValueOutcome> GetPointSampleValueOutcomeCallable;
-			typedef std::function<void(const Industry_brainClient*, const Model::GetPointSampleValueRequest&, const GetPointSampleValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPointSampleValueAsyncHandler;
 			typedef Outcome<Error, Model::GetServiceResultAsyncResult> GetServiceResultAsyncOutcome;
 			typedef std::future<GetServiceResultAsyncOutcome> GetServiceResultAsyncOutcomeCallable;
 			typedef std::function<void(const Industry_brainClient*, const Model::GetServiceResultAsyncRequest&, const GetServiceResultAsyncOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
 			GetServiceResultAsyncOutcomeCallable getServiceResultAsyncCallable(const Model::GetServiceResultAsyncRequest& request) const;

+ 0 - 51
industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h

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

+ 0 - 55
industry-brain/include/alibabacloud/industry-brain/model/GetPointReckoningValueResult.h

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

+ 0 - 51
industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueRequest.h

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

+ 0 - 55
industry-brain/include/alibabacloud/industry-brain/model/GetPointSampleValueResult.h

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

+ 0 - 3
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_;

+ 2 - 0
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_;

+ 0 - 72
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<const AsyncCallerContext>& 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<std::packaged_task<GetPointReckoningValueOutcome()>>(
-			[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<const AsyncCallerContext>& 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<std::packaged_task<GetPointSampleValueOutcome()>>(
-			[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();

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 0 - 51
industry-brain/src/model/GetPointReckoningValueRequest.cc

@@ -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 <alibabacloud/industry-brain/model/GetPointReckoningValueRequest.h>
-
-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);
-}
-

+ 0 - 65
industry-brain/src/model/GetPointReckoningValueResult.cc

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

+ 0 - 51
industry-brain/src/model/GetPointSampleValueRequest.cc

@@ -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 <alibabacloud/industry-brain/model/GetPointSampleValueRequest.h>
-
-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);
-}
-

+ 0 - 65
industry-brain/src/model/GetPointSampleValueResult.cc

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

+ 2 - 2
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()

+ 1 - 12
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_;

+ 1 - 1
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);
 }

+ 7 - 0
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_;