Add Gis open service add data api.
This commit is contained in:
@@ -2607,42 +2607,6 @@ IotClient::CreateRuleActionOutcomeCallable IotClient::createRuleActionCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateRulengDistributeJobOutcome IotClient::createRulengDistributeJob(const CreateRulengDistributeJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRulengDistributeJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRulengDistributeJobOutcome(CreateRulengDistributeJobResult(outcome.result()));
|
||||
else
|
||||
return CreateRulengDistributeJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::createRulengDistributeJobAsync(const CreateRulengDistributeJobRequest& request, const CreateRulengDistributeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRulengDistributeJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::CreateRulengDistributeJobOutcomeCallable IotClient::createRulengDistributeJobCallable(const CreateRulengDistributeJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRulengDistributeJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRulengDistributeJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateSceneRuleOutcome IotClient::createSceneRule(const CreateSceneRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5271,6 +5235,78 @@ IotClient::GetThingTopoOutcomeCallable IotClient::getThingTopoCallable(const Get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GisQueryDeviceLocationOutcome IotClient::gisQueryDeviceLocation(const GisQueryDeviceLocationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GisQueryDeviceLocationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GisQueryDeviceLocationOutcome(GisQueryDeviceLocationResult(outcome.result()));
|
||||
else
|
||||
return GisQueryDeviceLocationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::gisQueryDeviceLocationAsync(const GisQueryDeviceLocationRequest& request, const GisQueryDeviceLocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, gisQueryDeviceLocation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::GisQueryDeviceLocationOutcomeCallable IotClient::gisQueryDeviceLocationCallable(const GisQueryDeviceLocationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GisQueryDeviceLocationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->gisQueryDeviceLocation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GisSearchDeviceTraceOutcome IotClient::gisSearchDeviceTrace(const GisSearchDeviceTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GisSearchDeviceTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GisSearchDeviceTraceOutcome(GisSearchDeviceTraceResult(outcome.result()));
|
||||
else
|
||||
return GisSearchDeviceTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::gisSearchDeviceTraceAsync(const GisSearchDeviceTraceRequest& request, const GisSearchDeviceTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, gisSearchDeviceTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::GisSearchDeviceTraceOutcomeCallable IotClient::gisSearchDeviceTraceCallable(const GisSearchDeviceTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GisSearchDeviceTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->gisSearchDeviceTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::ImportThingModelTslOutcome IotClient::importThingModelTsl(const ImportThingModelTslRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6027,42 +6063,6 @@ IotClient::ListTaskOutcomeCallable IotClient::listTaskCallable(const ListTaskReq
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::ListTaskByPageOutcome IotClient::listTaskByPage(const ListTaskByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTaskByPageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTaskByPageOutcome(ListTaskByPageResult(outcome.result()));
|
||||
else
|
||||
return ListTaskByPageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::listTaskByPageAsync(const ListTaskByPageRequest& request, const ListTaskByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTaskByPage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::ListTaskByPageOutcomeCallable IotClient::listTaskByPageCallable(const ListTaskByPageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTaskByPageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTaskByPage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::ListThingModelVersionOutcome IotClient::listThingModelVersion(const ListThingModelVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -10275,42 +10275,6 @@ IotClient::SpeechBySynthesisOutcomeCallable IotClient::speechBySynthesisCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::StartAIBoxForceSyncOutcome IotClient::startAIBoxForceSync(const StartAIBoxForceSyncRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartAIBoxForceSyncOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartAIBoxForceSyncOutcome(StartAIBoxForceSyncResult(outcome.result()));
|
||||
else
|
||||
return StartAIBoxForceSyncOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::startAIBoxForceSyncAsync(const StartAIBoxForceSyncRequest& request, const StartAIBoxForceSyncAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startAIBoxForceSync(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::StartAIBoxForceSyncOutcomeCallable IotClient::startAIBoxForceSyncCallable(const StartAIBoxForceSyncRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartAIBoxForceSyncOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startAIBoxForceSync(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::StartRuleOutcome IotClient::startRule(const StartRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,84 +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/iot/model/CreateRulengDistributeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateRulengDistributeJobRequest;
|
||||
|
||||
CreateRulengDistributeJobRequest::CreateRulengDistributeJobRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateRulengDistributeJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRulengDistributeJobRequest::~CreateRulengDistributeJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getSourceInstanceId()const
|
||||
{
|
||||
return sourceInstanceId_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setSourceInstanceId(const std::string& sourceInstanceId)
|
||||
{
|
||||
sourceInstanceId_ = sourceInstanceId;
|
||||
setParameter("SourceInstanceId", sourceInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getTargetInstanceId()const
|
||||
{
|
||||
return targetInstanceId_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setTargetInstanceId(const std::string& targetInstanceId)
|
||||
{
|
||||
targetInstanceId_ = targetInstanceId;
|
||||
setParameter("TargetInstanceId", targetInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateRulengDistributeJobRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -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/iot/model/CreateRulengDistributeJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateRulengDistributeJobResult::CreateRulengDistributeJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRulengDistributeJobResult::CreateRulengDistributeJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRulengDistributeJobResult::~CreateRulengDistributeJobResult()
|
||||
{}
|
||||
|
||||
void CreateRulengDistributeJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateRulengDistributeJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateRulengDistributeJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
78
iot/src/model/GisQueryDeviceLocationRequest.cc
Normal file
78
iot/src/model/GisQueryDeviceLocationRequest.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/GisQueryDeviceLocationRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GisQueryDeviceLocationRequest;
|
||||
|
||||
GisQueryDeviceLocationRequest::GisQueryDeviceLocationRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GisQueryDeviceLocation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GisQueryDeviceLocationRequest::~GisQueryDeviceLocationRequest()
|
||||
{}
|
||||
|
||||
std::string GisQueryDeviceLocationRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GisQueryDeviceLocationRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<GisQueryDeviceLocationRequest::ThingList> GisQueryDeviceLocationRequest::getThingList()const
|
||||
{
|
||||
return thingList_;
|
||||
}
|
||||
|
||||
void GisQueryDeviceLocationRequest::setThingList(const std::vector<ThingList>& thingList)
|
||||
{
|
||||
thingList_ = thingList;
|
||||
for(int dep1 = 0; dep1!= thingList.size(); dep1++) {
|
||||
auto thingListObj = thingList.at(dep1);
|
||||
std::string thingListObjStr = "ThingList." + std::to_string(dep1 + 1);
|
||||
setParameter(thingListObjStr + ".ProductKey", thingListObj.productKey);
|
||||
setParameter(thingListObjStr + ".DeviceName", thingListObj.deviceName);
|
||||
}
|
||||
}
|
||||
|
||||
std::string GisQueryDeviceLocationRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GisQueryDeviceLocationRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GisQueryDeviceLocationRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GisQueryDeviceLocationRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
96
iot/src/model/GisQueryDeviceLocationResult.cc
Normal file
96
iot/src/model/GisQueryDeviceLocationResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/iot/model/GisQueryDeviceLocationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GisQueryDeviceLocationResult::GisQueryDeviceLocationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GisQueryDeviceLocationResult::GisQueryDeviceLocationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GisQueryDeviceLocationResult::~GisQueryDeviceLocationResult()
|
||||
{}
|
||||
|
||||
void GisQueryDeviceLocationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["ProductKey"].isNull())
|
||||
dataObject.productKey = valueDatadataItem["ProductKey"].asString();
|
||||
if(!valueDatadataItem["DeviceName"].isNull())
|
||||
dataObject.deviceName = valueDatadataItem["DeviceName"].asString();
|
||||
if(!valueDatadataItem["Ip"].isNull())
|
||||
dataObject.ip = valueDatadataItem["Ip"].asString();
|
||||
if(!valueDatadataItem["Country"].isNull())
|
||||
dataObject.country = valueDatadataItem["Country"].asString();
|
||||
if(!valueDatadataItem["Province"].isNull())
|
||||
dataObject.province = valueDatadataItem["Province"].asString();
|
||||
if(!valueDatadataItem["City"].isNull())
|
||||
dataObject.city = valueDatadataItem["City"].asString();
|
||||
if(!valueDatadataItem["Longitude"].isNull())
|
||||
dataObject.longitude = std::stof(valueDatadataItem["Longitude"].asString());
|
||||
if(!valueDatadataItem["Latitude"].isNull())
|
||||
dataObject.latitude = std::stof(valueDatadataItem["Latitude"].asString());
|
||||
if(!valueDatadataItem["CoordinateSystem"].isNull())
|
||||
dataObject.coordinateSystem = std::stoi(valueDatadataItem["CoordinateSystem"].asString());
|
||||
if(!valueDatadataItem["Adcode"].isNull())
|
||||
dataObject.adcode = std::stol(valueDatadataItem["Adcode"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GisQueryDeviceLocationResult::DataItem> GisQueryDeviceLocationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GisQueryDeviceLocationResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GisQueryDeviceLocationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GisQueryDeviceLocationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
iot/src/model/GisSearchDeviceTraceRequest.cc
Normal file
117
iot/src/model/GisSearchDeviceTraceRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/iot/model/GisSearchDeviceTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GisSearchDeviceTraceRequest;
|
||||
|
||||
GisSearchDeviceTraceRequest::GisSearchDeviceTraceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GisSearchDeviceTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GisSearchDeviceTraceRequest::~GisSearchDeviceTraceRequest()
|
||||
{}
|
||||
|
||||
int GisSearchDeviceTraceRequest::getMapMatch()const
|
||||
{
|
||||
return mapMatch_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setMapMatch(int mapMatch)
|
||||
{
|
||||
mapMatch_ = mapMatch;
|
||||
setParameter("MapMatch", std::to_string(mapMatch));
|
||||
}
|
||||
|
||||
long GisSearchDeviceTraceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
long GisSearchDeviceTraceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void GisSearchDeviceTraceRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
85
iot/src/model/GisSearchDeviceTraceResult.cc
Normal file
85
iot/src/model/GisSearchDeviceTraceResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/iot/model/GisSearchDeviceTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GisSearchDeviceTraceResult::GisSearchDeviceTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GisSearchDeviceTraceResult::GisSearchDeviceTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GisSearchDeviceTraceResult::~GisSearchDeviceTraceResult()
|
||||
{}
|
||||
|
||||
void GisSearchDeviceTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ProductKey"].isNull())
|
||||
data_.productKey = dataNode["ProductKey"].asString();
|
||||
if(!dataNode["DeviceName"].isNull())
|
||||
data_.deviceName = dataNode["DeviceName"].asString();
|
||||
auto allPointsNode = dataNode["Points"]["PointsItem"];
|
||||
for (auto dataNodePointsPointsItem : allPointsNode)
|
||||
{
|
||||
Data::PointsItem pointsItemObject;
|
||||
if(!dataNodePointsPointsItem["Location"].isNull())
|
||||
pointsItemObject.location = dataNodePointsPointsItem["Location"].asString();
|
||||
if(!dataNodePointsPointsItem["LocateTime"].isNull())
|
||||
pointsItemObject.locateTime = std::stol(dataNodePointsPointsItem["LocateTime"].asString());
|
||||
data_.points.push_back(pointsItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
GisSearchDeviceTraceResult::Data GisSearchDeviceTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GisSearchDeviceTraceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GisSearchDeviceTraceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,139 +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/iot/model/ListTaskByPageRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::ListTaskByPageRequest;
|
||||
|
||||
ListTaskByPageRequest::ListTaskByPageRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "ListTaskByPage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTaskByPageRequest::~ListTaskByPageRequest()
|
||||
{}
|
||||
|
||||
std::string ListTaskByPageRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setPageNo(const std::string& pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setParameter("PageNo", pageNo);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getDevice()const
|
||||
{
|
||||
return device_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setDevice(const std::string& device)
|
||||
{
|
||||
device_ = device;
|
||||
setParameter("Device", device);
|
||||
}
|
||||
|
||||
std::string ListTaskByPageRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListTaskByPageRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
@@ -1,128 +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/iot/model/ListTaskByPageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
ListTaskByPageResult::ListTaskByPageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTaskByPageResult::ListTaskByPageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTaskByPageResult::~ListTaskByPageResult()
|
||||
{}
|
||||
|
||||
void ListTaskByPageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["JobId"].isNull())
|
||||
dataObject.jobId = valueDatadataItem["JobId"].asString();
|
||||
if(!valueDatadataItem["JobName"].isNull())
|
||||
dataObject.jobName = valueDatadataItem["JobName"].asString();
|
||||
if(!valueDatadataItem["TaskId"].isNull())
|
||||
dataObject.taskId = valueDatadataItem["TaskId"].asString();
|
||||
if(!valueDatadataItem["ProductKey"].isNull())
|
||||
dataObject.productKey = valueDatadataItem["ProductKey"].asString();
|
||||
if(!valueDatadataItem["DeviceName"].isNull())
|
||||
dataObject.deviceName = valueDatadataItem["DeviceName"].asString();
|
||||
if(!valueDatadataItem["IotId"].isNull())
|
||||
dataObject.iotId = valueDatadataItem["IotId"].asString();
|
||||
if(!valueDatadataItem["Progress"].isNull())
|
||||
dataObject.progress = std::stoi(valueDatadataItem["Progress"].asString());
|
||||
if(!valueDatadataItem["UtcQueueTime"].isNull())
|
||||
dataObject.utcQueueTime = valueDatadataItem["UtcQueueTime"].asString();
|
||||
if(!valueDatadataItem["UtcModified"].isNull())
|
||||
dataObject.utcModified = valueDatadataItem["UtcModified"].asString();
|
||||
if(!valueDatadataItem["StatusDetail"].isNull())
|
||||
dataObject.statusDetail = valueDatadataItem["StatusDetail"].asString();
|
||||
if(!valueDatadataItem["Status"].isNull())
|
||||
dataObject.status = valueDatadataItem["Status"].asString();
|
||||
if(!valueDatadataItem["ProductName"].isNull())
|
||||
dataObject.productName = valueDatadataItem["ProductName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageCount"].isNull())
|
||||
pageCount_ = std::stoi(value["PageCount"].asString());
|
||||
if(!value["Page"].isNull())
|
||||
page_ = std::stoi(value["Page"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListTaskByPageResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListTaskByPageResult::getPageCount()const
|
||||
{
|
||||
return pageCount_;
|
||||
}
|
||||
|
||||
int ListTaskByPageResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<ListTaskByPageResult::DataItem> ListTaskByPageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListTaskByPageResult::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
std::string ListTaskByPageResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ListTaskByPageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListTaskByPageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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/iot/model/StartAIBoxForceSyncRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::StartAIBoxForceSyncRequest;
|
||||
|
||||
StartAIBoxForceSyncRequest::StartAIBoxForceSyncRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "StartAIBoxForceSync")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartAIBoxForceSyncRequest::~StartAIBoxForceSyncRequest()
|
||||
{}
|
||||
|
||||
std::string StartAIBoxForceSyncRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void StartAIBoxForceSyncRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string StartAIBoxForceSyncRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void StartAIBoxForceSyncRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string StartAIBoxForceSyncRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void StartAIBoxForceSyncRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
@@ -1,72 +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/iot/model/StartAIBoxForceSyncResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
StartAIBoxForceSyncResult::StartAIBoxForceSyncResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartAIBoxForceSyncResult::StartAIBoxForceSyncResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartAIBoxForceSyncResult::~StartAIBoxForceSyncResult()
|
||||
{}
|
||||
|
||||
void StartAIBoxForceSyncResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool StartAIBoxForceSyncResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StartAIBoxForceSyncResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string StartAIBoxForceSyncResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool StartAIBoxForceSyncResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user