Add Content.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2020-09-16 Version: patch
|
||||||
|
- Add Content.
|
||||||
|
|
||||||
2020-09-15 Version: patch
|
2020-09-15 Version: patch
|
||||||
- Add describe devices to return device status.
|
- Add describe devices to return device status.
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,6 @@ set(industry-brain_public_header_model
|
|||||||
include/alibabacloud/industry-brain/model/AsyncResponsePostResult.h
|
include/alibabacloud/industry-brain/model/AsyncResponsePostResult.h
|
||||||
include/alibabacloud/industry-brain/model/GetAlgorithmHistoryResultRequest.h
|
include/alibabacloud/industry-brain/model/GetAlgorithmHistoryResultRequest.h
|
||||||
include/alibabacloud/industry-brain/model/GetAlgorithmHistoryResultResult.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/GetServiceResultAsyncRequest.h
|
||||||
include/alibabacloud/industry-brain/model/GetServiceResultAsyncResult.h
|
include/alibabacloud/industry-brain/model/GetServiceResultAsyncResult.h
|
||||||
include/alibabacloud/industry-brain/model/InvokeServiceRequest.h
|
include/alibabacloud/industry-brain/model/InvokeServiceRequest.h
|
||||||
@@ -42,10 +38,6 @@ set(industry-brain_src
|
|||||||
src/model/AsyncResponsePostResult.cc
|
src/model/AsyncResponsePostResult.cc
|
||||||
src/model/GetAlgorithmHistoryResultRequest.cc
|
src/model/GetAlgorithmHistoryResultRequest.cc
|
||||||
src/model/GetAlgorithmHistoryResultResult.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/GetServiceResultAsyncRequest.cc
|
||||||
src/model/GetServiceResultAsyncResult.cc
|
src/model/GetServiceResultAsyncResult.cc
|
||||||
src/model/InvokeServiceRequest.cc
|
src/model/InvokeServiceRequest.cc
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
#include "model/AsyncResponsePostResult.h"
|
#include "model/AsyncResponsePostResult.h"
|
||||||
#include "model/GetAlgorithmHistoryResultRequest.h"
|
#include "model/GetAlgorithmHistoryResultRequest.h"
|
||||||
#include "model/GetAlgorithmHistoryResultResult.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/GetServiceResultAsyncRequest.h"
|
||||||
#include "model/GetServiceResultAsyncResult.h"
|
#include "model/GetServiceResultAsyncResult.h"
|
||||||
#include "model/InvokeServiceRequest.h"
|
#include "model/InvokeServiceRequest.h"
|
||||||
@@ -51,12 +47,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetAlgorithmHistoryResultResult> GetAlgorithmHistoryResultOutcome;
|
typedef Outcome<Error, Model::GetAlgorithmHistoryResultResult> GetAlgorithmHistoryResultOutcome;
|
||||||
typedef std::future<GetAlgorithmHistoryResultOutcome> GetAlgorithmHistoryResultOutcomeCallable;
|
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 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 Outcome<Error, Model::GetServiceResultAsyncResult> GetServiceResultAsyncOutcome;
|
||||||
typedef std::future<GetServiceResultAsyncOutcome> GetServiceResultAsyncOutcomeCallable;
|
typedef std::future<GetServiceResultAsyncOutcome> GetServiceResultAsyncOutcomeCallable;
|
||||||
typedef std::function<void(const Industry_brainClient*, const Model::GetServiceResultAsyncRequest&, const GetServiceResultAsyncOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceResultAsyncAsyncHandler;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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;
|
GetServiceResultAsyncOutcomeCallable getServiceResultAsyncCallable(const Model::GetServiceResultAsyncRequest& request) const;
|
||||||
|
|||||||
@@ -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_
|
|
||||||
@@ -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_
|
|
||||||
@@ -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_
|
|
||||||
@@ -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_
|
|
||||||
@@ -37,8 +37,6 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
bool getIsShowInput()const;
|
bool getIsShowInput()const;
|
||||||
void setIsShowInput(bool isShowInput);
|
void setIsShowInput(bool isShowInput);
|
||||||
std::string getContext()const;
|
|
||||||
void setContext(const std::string& context);
|
|
||||||
std::string getServiceId()const;
|
std::string getServiceId()const;
|
||||||
void setServiceId(const std::string& serviceId);
|
void setServiceId(const std::string& serviceId);
|
||||||
std::string getParams()const;
|
std::string getParams()const;
|
||||||
@@ -48,7 +46,6 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool isShowInput_;
|
bool isShowInput_;
|
||||||
std::string context_;
|
|
||||||
std::string serviceId_;
|
std::string serviceId_;
|
||||||
std::string params_;
|
std::string params_;
|
||||||
std::string requestData_;
|
std::string requestData_;
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
|||||||
InvokeServiceResult();
|
InvokeServiceResult();
|
||||||
explicit InvokeServiceResult(const std::string &payload);
|
explicit InvokeServiceResult(const std::string &payload);
|
||||||
~InvokeServiceResult();
|
~InvokeServiceResult();
|
||||||
|
std::string getContext()const;
|
||||||
std::string getMessage()const;
|
std::string getMessage()const;
|
||||||
std::string getData()const;
|
std::string getData()const;
|
||||||
std::string getCode()const;
|
std::string getCode()const;
|
||||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
|||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
std::string context_;
|
||||||
std::string message_;
|
std::string message_;
|
||||||
std::string data_;
|
std::string data_;
|
||||||
std::string code_;
|
std::string code_;
|
||||||
|
|||||||
@@ -123,78 +123,6 @@ Industry_brainClient::GetAlgorithmHistoryResultOutcomeCallable Industry_brainCli
|
|||||||
return task->get_future();
|
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
|
Industry_brainClient::GetServiceResultAsyncOutcome Industry_brainClient::getServiceResultAsync(const GetServiceResultAsyncRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
using AlibabaCloud::Industry_brain::Model::AsyncResponsePostRequest;
|
using AlibabaCloud::Industry_brain::Model::AsyncResponsePostRequest;
|
||||||
|
|
||||||
AsyncResponsePostRequest::AsyncResponsePostRequest() :
|
AsyncResponsePostRequest::AsyncResponsePostRequest() :
|
||||||
RpcServiceRequest("industry-brain", "2019-06-30", "AsyncResponsePost")
|
RpcServiceRequest("industry-brain", "2019-06-29", "AsyncResponsePost")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
using AlibabaCloud::Industry_brain::Model::GetAlgorithmHistoryResultRequest;
|
using AlibabaCloud::Industry_brain::Model::GetAlgorithmHistoryResultRequest;
|
||||||
|
|
||||||
GetAlgorithmHistoryResultRequest::GetAlgorithmHistoryResultRequest() :
|
GetAlgorithmHistoryResultRequest::GetAlgorithmHistoryResultRequest() :
|
||||||
RpcServiceRequest("industry-brain", "2019-06-30", "GetAlgorithmHistoryResult")
|
RpcServiceRequest("industry-brain", "2019-06-29", "GetAlgorithmHistoryResult")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Get);
|
setMethod(HttpRequest::Method::Get);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
using AlibabaCloud::Industry_brain::Model::GetServiceResultAsyncRequest;
|
using AlibabaCloud::Industry_brain::Model::GetServiceResultAsyncRequest;
|
||||||
|
|
||||||
GetServiceResultAsyncRequest::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()
|
GetServiceResultAsyncRequest::~GetServiceResultAsyncRequest()
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
using AlibabaCloud::Industry_brain::Model::InvokeServiceAsyncRequest;
|
using AlibabaCloud::Industry_brain::Model::InvokeServiceAsyncRequest;
|
||||||
|
|
||||||
InvokeServiceAsyncRequest::InvokeServiceAsyncRequest() :
|
InvokeServiceAsyncRequest::InvokeServiceAsyncRequest() :
|
||||||
RpcServiceRequest("industry-brain", "2019-06-30", "InvokeServiceAsync")
|
RpcServiceRequest("industry-brain", "2019-06-29", "InvokeServiceAsync")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
@@ -38,17 +38,6 @@ void InvokeServiceAsyncRequest::setIsShowInput(bool isShowInput)
|
|||||||
setParameter("IsShowInput", isShowInput ? "true" : "false");
|
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
|
std::string InvokeServiceAsyncRequest::getServiceId()const
|
||||||
{
|
{
|
||||||
return serviceId_;
|
return serviceId_;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
using AlibabaCloud::Industry_brain::Model::InvokeServiceRequest;
|
using AlibabaCloud::Industry_brain::Model::InvokeServiceRequest;
|
||||||
|
|
||||||
InvokeServiceRequest::InvokeServiceRequest() :
|
InvokeServiceRequest::InvokeServiceRequest() :
|
||||||
RpcServiceRequest("industry-brain", "2019-06-30", "InvokeService")
|
RpcServiceRequest("industry-brain", "2019-06-29", "InvokeService")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,9 +45,16 @@ void InvokeServiceResult::parse(const std::string &payload)
|
|||||||
code_ = value["Code"].asString();
|
code_ = value["Code"].asString();
|
||||||
if(!value["Message"].isNull())
|
if(!value["Message"].isNull())
|
||||||
message_ = value["Message"].asString();
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Context"].isNull())
|
||||||
|
context_ = value["Context"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string InvokeServiceResult::getContext()const
|
||||||
|
{
|
||||||
|
return context_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string InvokeServiceResult::getMessage()const
|
std::string InvokeServiceResult::getMessage()const
|
||||||
{
|
{
|
||||||
return message_;
|
return message_;
|
||||||
|
|||||||
Reference in New Issue
Block a user