Iot_20180120 old version sdk.
This commit is contained in:
@@ -87,6 +87,42 @@ IotClient::AddDataForApiSourceOutcomeCallable IotClient::addDataForApiSourceCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::AddShareTaskDeviceOutcome IotClient::addShareTaskDevice(const AddShareTaskDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddShareTaskDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddShareTaskDeviceOutcome(AddShareTaskDeviceResult(outcome.result()));
|
||||
else
|
||||
return AddShareTaskDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::addShareTaskDeviceAsync(const AddShareTaskDeviceRequest& request, const AddShareTaskDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addShareTaskDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::AddShareTaskDeviceOutcomeCallable IotClient::addShareTaskDeviceCallable(const AddShareTaskDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddShareTaskDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addShareTaskDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::AttachDestinationOutcome IotClient::attachDestination(const AttachDestinationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4551,6 +4587,42 @@ IotClient::DeleteSchedulePeriodOutcomeCallable IotClient::deleteSchedulePeriodCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteShareTaskDeviceOutcome IotClient::deleteShareTaskDevice(const DeleteShareTaskDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteShareTaskDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteShareTaskDeviceOutcome(DeleteShareTaskDeviceResult(outcome.result()));
|
||||
else
|
||||
return DeleteShareTaskDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::deleteShareTaskDeviceAsync(const DeleteShareTaskDeviceRequest& request, const DeleteShareTaskDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteShareTaskDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::DeleteShareTaskDeviceOutcomeCallable IotClient::deleteShareTaskDeviceCallable(const DeleteShareTaskDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteShareTaskDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteShareTaskDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteSoundCodeOutcome IotClient::deleteSoundCode(const DeleteSoundCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5955,6 +6027,42 @@ IotClient::GetSceneRuleOutcomeCallable IotClient::getSceneRuleCallable(const Get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GetShareTaskByDeviceOpenOutcome IotClient::getShareTaskByDeviceOpen(const GetShareTaskByDeviceOpenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetShareTaskByDeviceOpenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetShareTaskByDeviceOpenOutcome(GetShareTaskByDeviceOpenResult(outcome.result()));
|
||||
else
|
||||
return GetShareTaskByDeviceOpenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::getShareTaskByDeviceOpenAsync(const GetShareTaskByDeviceOpenRequest& request, const GetShareTaskByDeviceOpenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getShareTaskByDeviceOpen(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::GetShareTaskByDeviceOpenOutcomeCallable IotClient::getShareTaskByDeviceOpenCallable(const GetShareTaskByDeviceOpenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetShareTaskByDeviceOpenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getShareTaskByDeviceOpen(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GetSoundCodeAudioOutcome IotClient::getSoundCodeAudio(const GetSoundCodeAudioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6063,6 +6171,42 @@ IotClient::GetSpeechDeviceDetailOutcomeCallable IotClient::getSpeechDeviceDetail
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GetSpeechLicenseDeviceStatisticsOutcome IotClient::getSpeechLicenseDeviceStatistics(const GetSpeechLicenseDeviceStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSpeechLicenseDeviceStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSpeechLicenseDeviceStatisticsOutcome(GetSpeechLicenseDeviceStatisticsResult(outcome.result()));
|
||||
else
|
||||
return GetSpeechLicenseDeviceStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::getSpeechLicenseDeviceStatisticsAsync(const GetSpeechLicenseDeviceStatisticsRequest& request, const GetSpeechLicenseDeviceStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSpeechLicenseDeviceStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::GetSpeechLicenseDeviceStatisticsOutcomeCallable IotClient::getSpeechLicenseDeviceStatisticsCallable(const GetSpeechLicenseDeviceStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSpeechLicenseDeviceStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSpeechLicenseDeviceStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GetSpeechVoiceOutcome IotClient::getSpeechVoice(const GetSpeechVoiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7539,6 +7683,42 @@ IotClient::PackageSoundCodeLabelBatchAudioOutcomeCallable IotClient::packageSoun
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::PageQuerySharedSpeechOpenOutcome IotClient::pageQuerySharedSpeechOpen(const PageQuerySharedSpeechOpenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PageQuerySharedSpeechOpenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PageQuerySharedSpeechOpenOutcome(PageQuerySharedSpeechOpenResult(outcome.result()));
|
||||
else
|
||||
return PageQuerySharedSpeechOpenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::pageQuerySharedSpeechOpenAsync(const PageQuerySharedSpeechOpenRequest& request, const PageQuerySharedSpeechOpenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, pageQuerySharedSpeechOpen(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::PageQuerySharedSpeechOpenOutcomeCallable IotClient::pageQuerySharedSpeechOpenCallable(const PageQuerySharedSpeechOpenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PageQuerySharedSpeechOpenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->pageQuerySharedSpeechOpen(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::PrintByTemplateOutcome IotClient::printByTemplate(const PrintByTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -10095,6 +10275,42 @@ IotClient::QueryProductTopicOutcomeCallable IotClient::queryProductTopicCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QueryProjectShareDeviceListOutcome IotClient::queryProjectShareDeviceList(const QueryProjectShareDeviceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryProjectShareDeviceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryProjectShareDeviceListOutcome(QueryProjectShareDeviceListResult(outcome.result()));
|
||||
else
|
||||
return QueryProjectShareDeviceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::queryProjectShareDeviceListAsync(const QueryProjectShareDeviceListRequest& request, const QueryProjectShareDeviceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryProjectShareDeviceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QueryProjectShareDeviceListOutcomeCallable IotClient::queryProjectShareDeviceListCallable(const QueryProjectShareDeviceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryProjectShareDeviceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryProjectShareDeviceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySceneRuleOutcome IotClient::querySceneRule(const QuerySceneRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -10167,6 +10383,42 @@ IotClient::QuerySchedulePeriodListOutcomeCallable IotClient::querySchedulePeriod
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QueryShareTaskDeviceListOutcome IotClient::queryShareTaskDeviceList(const QueryShareTaskDeviceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryShareTaskDeviceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryShareTaskDeviceListOutcome(QueryShareTaskDeviceListResult(outcome.result()));
|
||||
else
|
||||
return QueryShareTaskDeviceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::queryShareTaskDeviceListAsync(const QueryShareTaskDeviceListRequest& request, const QueryShareTaskDeviceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryShareTaskDeviceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QueryShareTaskDeviceListOutcomeCallable IotClient::queryShareTaskDeviceListCallable(const QueryShareTaskDeviceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryShareTaskDeviceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryShareTaskDeviceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySolutionDeviceGroupPageOutcome IotClient::querySolutionDeviceGroupPage(const QuerySolutionDeviceGroupPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -10455,6 +10707,42 @@ IotClient::QuerySpeechDeviceOutcomeCallable IotClient::querySpeechDeviceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySpeechLicenseDeviceListOutcome IotClient::querySpeechLicenseDeviceList(const QuerySpeechLicenseDeviceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySpeechLicenseDeviceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySpeechLicenseDeviceListOutcome(QuerySpeechLicenseDeviceListResult(outcome.result()));
|
||||
else
|
||||
return QuerySpeechLicenseDeviceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::querySpeechLicenseDeviceListAsync(const QuerySpeechLicenseDeviceListRequest& request, const QuerySpeechLicenseDeviceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySpeechLicenseDeviceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QuerySpeechLicenseDeviceListOutcomeCallable IotClient::querySpeechLicenseDeviceListCallable(const QuerySpeechLicenseDeviceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySpeechLicenseDeviceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySpeechLicenseDeviceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySpeechListOutcome IotClient::querySpeechList(const QuerySpeechListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -11139,6 +11427,42 @@ IotClient::RRpcOutcomeCallable IotClient::rRpcCallable(const RRpcRequest &reques
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::ReBindLicenseDeviceOutcome IotClient::reBindLicenseDevice(const ReBindLicenseDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReBindLicenseDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReBindLicenseDeviceOutcome(ReBindLicenseDeviceResult(outcome.result()));
|
||||
else
|
||||
return ReBindLicenseDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::reBindLicenseDeviceAsync(const ReBindLicenseDeviceRequest& request, const ReBindLicenseDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, reBindLicenseDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::ReBindLicenseDeviceOutcomeCallable IotClient::reBindLicenseDeviceCallable(const ReBindLicenseDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReBindLicenseDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->reBindLicenseDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::RecognizeCarNumOutcome IotClient::recognizeCarNum(const RecognizeCarNumRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -12003,6 +12327,42 @@ IotClient::SetupStudioAppAuthModeOpenOutcomeCallable IotClient::setupStudioAppAu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::ShareSpeechByCombinationOutcome IotClient::shareSpeechByCombination(const ShareSpeechByCombinationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ShareSpeechByCombinationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ShareSpeechByCombinationOutcome(ShareSpeechByCombinationResult(outcome.result()));
|
||||
else
|
||||
return ShareSpeechByCombinationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::shareSpeechByCombinationAsync(const ShareSpeechByCombinationRequest& request, const ShareSpeechByCombinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, shareSpeechByCombination(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::ShareSpeechByCombinationOutcomeCallable IotClient::shareSpeechByCombinationCallable(const ShareSpeechByCombinationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ShareSpeechByCombinationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->shareSpeechByCombination(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::SpeechByCombinationOutcome IotClient::speechByCombination(const SpeechByCombinationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
97
iot/src/model/AddShareTaskDeviceRequest.cc
Normal file
97
iot/src/model/AddShareTaskDeviceRequest.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/AddShareTaskDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::AddShareTaskDeviceRequest;
|
||||
|
||||
AddShareTaskDeviceRequest::AddShareTaskDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "AddShareTaskDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddShareTaskDeviceRequest::~AddShareTaskDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string AddShareTaskDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void AddShareTaskDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddShareTaskDeviceRequest::getIotIdList()const
|
||||
{
|
||||
return iotIdList_;
|
||||
}
|
||||
|
||||
void AddShareTaskDeviceRequest::setIotIdList(const std::vector<std::string>& iotIdList)
|
||||
{
|
||||
iotIdList_ = iotIdList;
|
||||
for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) {
|
||||
setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddShareTaskDeviceRequest::getShareTaskId()const
|
||||
{
|
||||
return shareTaskId_;
|
||||
}
|
||||
|
||||
void AddShareTaskDeviceRequest::setShareTaskId(const std::string& shareTaskId)
|
||||
{
|
||||
shareTaskId_ = shareTaskId;
|
||||
setBodyParameter("ShareTaskId", shareTaskId);
|
||||
}
|
||||
|
||||
std::string AddShareTaskDeviceRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void AddShareTaskDeviceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string AddShareTaskDeviceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void AddShareTaskDeviceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string AddShareTaskDeviceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void AddShareTaskDeviceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
75
iot/src/model/AddShareTaskDeviceResult.cc
Normal file
75
iot/src/model/AddShareTaskDeviceResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/AddShareTaskDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
AddShareTaskDeviceResult::AddShareTaskDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddShareTaskDeviceResult::AddShareTaskDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddShareTaskDeviceResult::~AddShareTaskDeviceResult()
|
||||
{}
|
||||
|
||||
void AddShareTaskDeviceResult::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["Progress"].isNull())
|
||||
data_.progress = std::stoi(dataNode["Progress"].asString());
|
||||
if(!dataNode["ProgressId"].isNull())
|
||||
data_.progressId = dataNode["ProgressId"].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();
|
||||
|
||||
}
|
||||
|
||||
AddShareTaskDeviceResult::Data AddShareTaskDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddShareTaskDeviceResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string AddShareTaskDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddShareTaskDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,19 @@ BindLicenseDeviceRequest::BindLicenseDeviceRequest() :
|
||||
BindLicenseDeviceRequest::~BindLicenseDeviceRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> BindLicenseDeviceRequest::getDeviceNameList()const
|
||||
{
|
||||
return deviceNameList_;
|
||||
}
|
||||
|
||||
void BindLicenseDeviceRequest::setDeviceNameList(const std::vector<std::string>& deviceNameList)
|
||||
{
|
||||
deviceNameList_ = deviceNameList;
|
||||
for(int dep1 = 0; dep1!= deviceNameList.size(); dep1++) {
|
||||
setBodyParameter("DeviceNameList."+ std::to_string(dep1), deviceNameList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BindLicenseDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
@@ -47,7 +60,7 @@ void BindLicenseDeviceRequest::setIotIdList(const std::vector<std::string>& iotI
|
||||
{
|
||||
iotIdList_ = iotIdList;
|
||||
for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) {
|
||||
setParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1));
|
||||
setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
86
iot/src/model/DeleteShareTaskDeviceRequest.cc
Normal file
86
iot/src/model/DeleteShareTaskDeviceRequest.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/DeleteShareTaskDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteShareTaskDeviceRequest;
|
||||
|
||||
DeleteShareTaskDeviceRequest::DeleteShareTaskDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteShareTaskDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteShareTaskDeviceRequest::~DeleteShareTaskDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteShareTaskDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteShareTaskDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteShareTaskDeviceRequest::getIotIdList()const
|
||||
{
|
||||
return iotIdList_;
|
||||
}
|
||||
|
||||
void DeleteShareTaskDeviceRequest::setIotIdList(const std::vector<std::string>& iotIdList)
|
||||
{
|
||||
iotIdList_ = iotIdList;
|
||||
for(int dep1 = 0; dep1!= iotIdList.size(); dep1++) {
|
||||
setBodyParameter("IotIdList."+ std::to_string(dep1), iotIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteShareTaskDeviceRequest::getShareTaskId()const
|
||||
{
|
||||
return shareTaskId_;
|
||||
}
|
||||
|
||||
void DeleteShareTaskDeviceRequest::setShareTaskId(const std::string& shareTaskId)
|
||||
{
|
||||
shareTaskId_ = shareTaskId;
|
||||
setBodyParameter("ShareTaskId", shareTaskId);
|
||||
}
|
||||
|
||||
std::string DeleteShareTaskDeviceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteShareTaskDeviceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteShareTaskDeviceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteShareTaskDeviceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
75
iot/src/model/DeleteShareTaskDeviceResult.cc
Normal file
75
iot/src/model/DeleteShareTaskDeviceResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/DeleteShareTaskDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteShareTaskDeviceResult::DeleteShareTaskDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteShareTaskDeviceResult::DeleteShareTaskDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteShareTaskDeviceResult::~DeleteShareTaskDeviceResult()
|
||||
{}
|
||||
|
||||
void DeleteShareTaskDeviceResult::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["Progress"].isNull())
|
||||
data_.progress = std::stoi(dataNode["Progress"].asString());
|
||||
if(!dataNode["ProgressId"].isNull())
|
||||
data_.progressId = dataNode["ProgressId"].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();
|
||||
|
||||
}
|
||||
|
||||
DeleteShareTaskDeviceResult::Data DeleteShareTaskDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteShareTaskDeviceResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteShareTaskDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteShareTaskDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
iot/src/model/GetShareTaskByDeviceOpenRequest.cc
Normal file
95
iot/src/model/GetShareTaskByDeviceOpenRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/GetShareTaskByDeviceOpenRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GetShareTaskByDeviceOpenRequest;
|
||||
|
||||
GetShareTaskByDeviceOpenRequest::GetShareTaskByDeviceOpenRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetShareTaskByDeviceOpen")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetShareTaskByDeviceOpenRequest::~GetShareTaskByDeviceOpenRequest()
|
||||
{}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void GetShareTaskByDeviceOpenRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setBodyParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GetShareTaskByDeviceOpenRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GetShareTaskByDeviceOpenRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetShareTaskByDeviceOpenRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetShareTaskByDeviceOpenRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void GetShareTaskByDeviceOpenRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
72
iot/src/model/GetShareTaskByDeviceOpenResult.cc
Normal file
72
iot/src/model/GetShareTaskByDeviceOpenResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/GetShareTaskByDeviceOpenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GetShareTaskByDeviceOpenResult::GetShareTaskByDeviceOpenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetShareTaskByDeviceOpenResult::GetShareTaskByDeviceOpenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetShareTaskByDeviceOpenResult::~GetShareTaskByDeviceOpenResult()
|
||||
{}
|
||||
|
||||
void GetShareTaskByDeviceOpenResult::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();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetShareTaskByDeviceOpenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetShareTaskByDeviceOpenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
iot/src/model/GetSpeechLicenseDeviceStatisticsRequest.cc
Normal file
62
iot/src/model/GetSpeechLicenseDeviceStatisticsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/GetSpeechLicenseDeviceStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GetSpeechLicenseDeviceStatisticsRequest;
|
||||
|
||||
GetSpeechLicenseDeviceStatisticsRequest::GetSpeechLicenseDeviceStatisticsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetSpeechLicenseDeviceStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSpeechLicenseDeviceStatisticsRequest::~GetSpeechLicenseDeviceStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string GetSpeechLicenseDeviceStatisticsRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GetSpeechLicenseDeviceStatisticsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetSpeechLicenseDeviceStatisticsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetSpeechLicenseDeviceStatisticsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetSpeechLicenseDeviceStatisticsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetSpeechLicenseDeviceStatisticsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
77
iot/src/model/GetSpeechLicenseDeviceStatisticsResult.cc
Normal file
77
iot/src/model/GetSpeechLicenseDeviceStatisticsResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/GetSpeechLicenseDeviceStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GetSpeechLicenseDeviceStatisticsResult::GetSpeechLicenseDeviceStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSpeechLicenseDeviceStatisticsResult::GetSpeechLicenseDeviceStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSpeechLicenseDeviceStatisticsResult::~GetSpeechLicenseDeviceStatisticsResult()
|
||||
{}
|
||||
|
||||
void GetSpeechLicenseDeviceStatisticsResult::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["AvailableQuota"].isNull())
|
||||
data_.availableQuota = std::stoi(dataNode["AvailableQuota"].asString());
|
||||
if(!dataNode["ExpiredQuota"].isNull())
|
||||
data_.expiredQuota = std::stoi(dataNode["ExpiredQuota"].asString());
|
||||
if(!dataNode["ExpiringQuota"].isNull())
|
||||
data_.expiringQuota = std::stoi(dataNode["ExpiringQuota"].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();
|
||||
|
||||
}
|
||||
|
||||
GetSpeechLicenseDeviceStatisticsResult::Data GetSpeechLicenseDeviceStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetSpeechLicenseDeviceStatisticsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetSpeechLicenseDeviceStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetSpeechLicenseDeviceStatisticsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
139
iot/src/model/PageQuerySharedSpeechOpenRequest.cc
Normal file
139
iot/src/model/PageQuerySharedSpeechOpenRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/PageQuerySharedSpeechOpenRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::PageQuerySharedSpeechOpenRequest;
|
||||
|
||||
PageQuerySharedSpeechOpenRequest::PageQuerySharedSpeechOpenRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "PageQuerySharedSpeechOpen")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PageQuerySharedSpeechOpenRequest::~PageQuerySharedSpeechOpenRequest()
|
||||
{}
|
||||
|
||||
int PageQuerySharedSpeechOpenRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setBodyParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int PageQuerySharedSpeechOpenRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getShareTaskCode()const
|
||||
{
|
||||
return shareTaskCode_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setShareTaskCode(const std::string& shareTaskCode)
|
||||
{
|
||||
shareTaskCode_ = shareTaskCode;
|
||||
setBodyParameter("ShareTaskCode", shareTaskCode);
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
int PageQuerySharedSpeechOpenRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void PageQuerySharedSpeechOpenRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
99
iot/src/model/PageQuerySharedSpeechOpenResult.cc
Normal file
99
iot/src/model/PageQuerySharedSpeechOpenResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/PageQuerySharedSpeechOpenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
PageQuerySharedSpeechOpenResult::PageQuerySharedSpeechOpenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PageQuerySharedSpeechOpenResult::PageQuerySharedSpeechOpenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PageQuerySharedSpeechOpenResult::~PageQuerySharedSpeechOpenResult()
|
||||
{}
|
||||
|
||||
void PageQuerySharedSpeechOpenResult::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["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
auto allResultDataNode = dataNode["ResultData"]["Data"];
|
||||
for (auto dataNodeResultDataData : allResultDataNode)
|
||||
{
|
||||
Data::Data1 data1Object;
|
||||
if(!dataNodeResultDataData["Code"].isNull())
|
||||
data1Object.code = dataNodeResultDataData["Code"].asString();
|
||||
if(!dataNodeResultDataData["BizCode"].isNull())
|
||||
data1Object.bizCode = dataNodeResultDataData["BizCode"].asString();
|
||||
if(!dataNodeResultDataData["Text"].isNull())
|
||||
data1Object.text = dataNodeResultDataData["Text"].asString();
|
||||
if(!dataNodeResultDataData["Voice"].isNull())
|
||||
data1Object.voice = dataNodeResultDataData["Voice"].asString();
|
||||
if(!dataNodeResultDataData["SpeechRate"].isNull())
|
||||
data1Object.speechRate = std::stoi(dataNodeResultDataData["SpeechRate"].asString());
|
||||
if(!dataNodeResultDataData["Volume"].isNull())
|
||||
data1Object.volume = std::stoi(dataNodeResultDataData["Volume"].asString());
|
||||
if(!dataNodeResultDataData["AudioFormat"].isNull())
|
||||
data1Object.audioFormat = dataNodeResultDataData["AudioFormat"].asString();
|
||||
if(!dataNodeResultDataData["Status"].isNull())
|
||||
data1Object.status = std::stoi(dataNodeResultDataData["Status"].asString());
|
||||
data_.resultData.push_back(data1Object);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
PageQuerySharedSpeechOpenResult::Data PageQuerySharedSpeechOpenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string PageQuerySharedSpeechOpenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PageQuerySharedSpeechOpenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
iot/src/model/QueryProjectShareDeviceListRequest.cc
Normal file
106
iot/src/model/QueryProjectShareDeviceListRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/QueryProjectShareDeviceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QueryProjectShareDeviceListRequest;
|
||||
|
||||
QueryProjectShareDeviceListRequest::QueryProjectShareDeviceListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QueryProjectShareDeviceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryProjectShareDeviceListRequest::~QueryProjectShareDeviceListRequest()
|
||||
{}
|
||||
|
||||
int QueryProjectShareDeviceListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QueryProjectShareDeviceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void QueryProjectShareDeviceListRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
91
iot/src/model/QueryProjectShareDeviceListResult.cc
Normal file
91
iot/src/model/QueryProjectShareDeviceListResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/QueryProjectShareDeviceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QueryProjectShareDeviceListResult::QueryProjectShareDeviceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryProjectShareDeviceListResult::QueryProjectShareDeviceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryProjectShareDeviceListResult::~QueryProjectShareDeviceListResult()
|
||||
{}
|
||||
|
||||
void QueryProjectShareDeviceListResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
auto allDeviceListNode = dataNode["DeviceList"]["items"];
|
||||
for (auto dataNodeDeviceListitems : allDeviceListNode)
|
||||
{
|
||||
Data::Items itemsObject;
|
||||
if(!dataNodeDeviceListitems["ProductKey"].isNull())
|
||||
itemsObject.productKey = dataNodeDeviceListitems["ProductKey"].asString();
|
||||
if(!dataNodeDeviceListitems["DeviceName"].isNull())
|
||||
itemsObject.deviceName = dataNodeDeviceListitems["DeviceName"].asString();
|
||||
if(!dataNodeDeviceListitems["Sharable"].isNull())
|
||||
itemsObject.sharable = std::stol(dataNodeDeviceListitems["Sharable"].asString());
|
||||
if(!dataNodeDeviceListitems["IotId"].isNull())
|
||||
itemsObject.iotId = dataNodeDeviceListitems["IotId"].asString();
|
||||
data_.deviceList.push_back(itemsObject);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
QueryProjectShareDeviceListResult::Data QueryProjectShareDeviceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QueryProjectShareDeviceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryProjectShareDeviceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
iot/src/model/QueryShareTaskDeviceListRequest.cc
Normal file
106
iot/src/model/QueryShareTaskDeviceListRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/QueryShareTaskDeviceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QueryShareTaskDeviceListRequest;
|
||||
|
||||
QueryShareTaskDeviceListRequest::QueryShareTaskDeviceListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QueryShareTaskDeviceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryShareTaskDeviceListRequest::~QueryShareTaskDeviceListRequest()
|
||||
{}
|
||||
|
||||
int QueryShareTaskDeviceListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QueryShareTaskDeviceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListRequest::getShareTaskId()const
|
||||
{
|
||||
return shareTaskId_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setShareTaskId(const std::string& shareTaskId)
|
||||
{
|
||||
shareTaskId_ = shareTaskId;
|
||||
setBodyParameter("ShareTaskId", shareTaskId);
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void QueryShareTaskDeviceListRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
91
iot/src/model/QueryShareTaskDeviceListResult.cc
Normal file
91
iot/src/model/QueryShareTaskDeviceListResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/QueryShareTaskDeviceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QueryShareTaskDeviceListResult::QueryShareTaskDeviceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryShareTaskDeviceListResult::QueryShareTaskDeviceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryShareTaskDeviceListResult::~QueryShareTaskDeviceListResult()
|
||||
{}
|
||||
|
||||
void QueryShareTaskDeviceListResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
auto allDeviceListNode = dataNode["DeviceList"]["items"];
|
||||
for (auto dataNodeDeviceListitems : allDeviceListNode)
|
||||
{
|
||||
Data::Items itemsObject;
|
||||
if(!dataNodeDeviceListitems["ProductKey"].isNull())
|
||||
itemsObject.productKey = dataNodeDeviceListitems["ProductKey"].asString();
|
||||
if(!dataNodeDeviceListitems["DeviceName"].isNull())
|
||||
itemsObject.deviceName = dataNodeDeviceListitems["DeviceName"].asString();
|
||||
if(!dataNodeDeviceListitems["GmtAdded"].isNull())
|
||||
itemsObject.gmtAdded = std::stol(dataNodeDeviceListitems["GmtAdded"].asString());
|
||||
if(!dataNodeDeviceListitems["IotId"].isNull())
|
||||
itemsObject.iotId = dataNodeDeviceListitems["IotId"].asString();
|
||||
data_.deviceList.push_back(itemsObject);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
QueryShareTaskDeviceListResult::Data QueryShareTaskDeviceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QueryShareTaskDeviceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryShareTaskDeviceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
130
iot/src/model/QuerySpeechLicenseDeviceListRequest.cc
Normal file
130
iot/src/model/QuerySpeechLicenseDeviceListRequest.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/QuerySpeechLicenseDeviceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QuerySpeechLicenseDeviceListRequest;
|
||||
|
||||
QuerySpeechLicenseDeviceListRequest::QuerySpeechLicenseDeviceListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QuerySpeechLicenseDeviceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySpeechLicenseDeviceListRequest::~QuerySpeechLicenseDeviceListRequest()
|
||||
{}
|
||||
|
||||
int QuerySpeechLicenseDeviceListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::vector<std::string> QuerySpeechLicenseDeviceListRequest::getLicenseStatusList()const
|
||||
{
|
||||
return licenseStatusList_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setLicenseStatusList(const std::vector<std::string>& licenseStatusList)
|
||||
{
|
||||
licenseStatusList_ = licenseStatusList;
|
||||
for(int dep1 = 0; dep1!= licenseStatusList.size(); dep1++) {
|
||||
setBodyParameter("LicenseStatusList."+ std::to_string(dep1), licenseStatusList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QuerySpeechLicenseDeviceListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListRequest::getCheckGroupId()const
|
||||
{
|
||||
return checkGroupId_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setCheckGroupId(const std::string& checkGroupId)
|
||||
{
|
||||
checkGroupId_ = checkGroupId;
|
||||
setBodyParameter("CheckGroupId", checkGroupId);
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void QuerySpeechLicenseDeviceListRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
99
iot/src/model/QuerySpeechLicenseDeviceListResult.cc
Normal file
99
iot/src/model/QuerySpeechLicenseDeviceListResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/QuerySpeechLicenseDeviceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QuerySpeechLicenseDeviceListResult::QuerySpeechLicenseDeviceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySpeechLicenseDeviceListResult::QuerySpeechLicenseDeviceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySpeechLicenseDeviceListResult::~QuerySpeechLicenseDeviceListResult()
|
||||
{}
|
||||
|
||||
void QuerySpeechLicenseDeviceListResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
auto allDeviceListNode = dataNode["DeviceList"]["item"];
|
||||
for (auto dataNodeDeviceListitem : allDeviceListNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeDeviceListitem["ProductName"].isNull())
|
||||
itemObject.productName = dataNodeDeviceListitem["ProductName"].asString();
|
||||
if(!dataNodeDeviceListitem["ProductKey"].isNull())
|
||||
itemObject.productKey = dataNodeDeviceListitem["ProductKey"].asString();
|
||||
if(!dataNodeDeviceListitem["DeviceName"].isNull())
|
||||
itemObject.deviceName = dataNodeDeviceListitem["DeviceName"].asString();
|
||||
if(!dataNodeDeviceListitem["ExpiryTime"].isNull())
|
||||
itemObject.expiryTime = std::stol(dataNodeDeviceListitem["ExpiryTime"].asString());
|
||||
if(!dataNodeDeviceListitem["IotId"].isNull())
|
||||
itemObject.iotId = dataNodeDeviceListitem["IotId"].asString();
|
||||
if(!dataNodeDeviceListitem["LicenseStatus"].isNull())
|
||||
itemObject.licenseStatus = dataNodeDeviceListitem["LicenseStatus"].asString();
|
||||
if(!dataNodeDeviceListitem["DeviceStatus"].isNull())
|
||||
itemObject.deviceStatus = dataNodeDeviceListitem["DeviceStatus"].asString();
|
||||
if(!dataNodeDeviceListitem["InSpecifiedGroup"].isNull())
|
||||
itemObject.inSpecifiedGroup = dataNodeDeviceListitem["InSpecifiedGroup"].asString() == "true";
|
||||
data_.deviceList.push_back(itemObject);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
QuerySpeechLicenseDeviceListResult::Data QuerySpeechLicenseDeviceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QuerySpeechLicenseDeviceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySpeechLicenseDeviceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
97
iot/src/model/ReBindLicenseDeviceRequest.cc
Normal file
97
iot/src/model/ReBindLicenseDeviceRequest.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/ReBindLicenseDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::ReBindLicenseDeviceRequest;
|
||||
|
||||
ReBindLicenseDeviceRequest::ReBindLicenseDeviceRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "ReBindLicenseDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReBindLicenseDeviceRequest::~ReBindLicenseDeviceRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ReBindLicenseDeviceRequest::getDeviceNameList()const
|
||||
{
|
||||
return deviceNameList_;
|
||||
}
|
||||
|
||||
void ReBindLicenseDeviceRequest::setDeviceNameList(const std::vector<std::string>& deviceNameList)
|
||||
{
|
||||
deviceNameList_ = deviceNameList;
|
||||
for(int dep1 = 0; dep1!= deviceNameList.size(); dep1++) {
|
||||
setBodyParameter("DeviceNameList."+ std::to_string(dep1), deviceNameList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void ReBindLicenseDeviceRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void ReBindLicenseDeviceRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void ReBindLicenseDeviceRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void ReBindLicenseDeviceRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceRequest::getLicenseCode()const
|
||||
{
|
||||
return licenseCode_;
|
||||
}
|
||||
|
||||
void ReBindLicenseDeviceRequest::setLicenseCode(const std::string& licenseCode)
|
||||
{
|
||||
licenseCode_ = licenseCode;
|
||||
setParameter("LicenseCode", licenseCode);
|
||||
}
|
||||
|
||||
81
iot/src/model/ReBindLicenseDeviceResult.cc
Normal file
81
iot/src/model/ReBindLicenseDeviceResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/ReBindLicenseDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
ReBindLicenseDeviceResult::ReBindLicenseDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReBindLicenseDeviceResult::ReBindLicenseDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReBindLicenseDeviceResult::~ReBindLicenseDeviceResult()
|
||||
{}
|
||||
|
||||
void ReBindLicenseDeviceResult::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["SuccessSum"].isNull())
|
||||
data_.successSum = std::stol(dataNode["SuccessSum"].asString());
|
||||
if(!dataNode["FailSum"].isNull())
|
||||
data_.failSum = std::stol(dataNode["FailSum"].asString());
|
||||
if(!dataNode["ResultCsvFile"].isNull())
|
||||
data_.resultCsvFile = dataNode["ResultCsvFile"].asString();
|
||||
if(!dataNode["Progress"].isNull())
|
||||
data_.progress = std::stoi(dataNode["Progress"].asString());
|
||||
if(!dataNode["CheckProgressId"].isNull())
|
||||
data_.checkProgressId = dataNode["CheckProgressId"].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();
|
||||
|
||||
}
|
||||
|
||||
ReBindLicenseDeviceResult::Data ReBindLicenseDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ReBindLicenseDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ReBindLicenseDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
130
iot/src/model/ShareSpeechByCombinationRequest.cc
Normal file
130
iot/src/model/ShareSpeechByCombinationRequest.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/ShareSpeechByCombinationRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::ShareSpeechByCombinationRequest;
|
||||
|
||||
ShareSpeechByCombinationRequest::ShareSpeechByCombinationRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "ShareSpeechByCombination")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ShareSpeechByCombinationRequest::~ShareSpeechByCombinationRequest()
|
||||
{}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getSpeechId()const
|
||||
{
|
||||
return speechId_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setSpeechId(const std::string& speechId)
|
||||
{
|
||||
speechId_ = speechId;
|
||||
setBodyParameter("SpeechId", speechId);
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getAudioFormat()const
|
||||
{
|
||||
return audioFormat_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setAudioFormat(const std::string& audioFormat)
|
||||
{
|
||||
audioFormat_ = audioFormat;
|
||||
setBodyParameter("AudioFormat", audioFormat);
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setIotId(const std::string& iotId)
|
||||
{
|
||||
iotId_ = iotId;
|
||||
setBodyParameter("IotId", iotId);
|
||||
}
|
||||
|
||||
std::vector<std::string> ShareSpeechByCombinationRequest::getCombinationList()const
|
||||
{
|
||||
return combinationList_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setCombinationList(const std::vector<std::string>& combinationList)
|
||||
{
|
||||
combinationList_ = combinationList;
|
||||
for(int dep1 = 0; dep1!= combinationList.size(); dep1++) {
|
||||
setBodyParameter("CombinationList."+ std::to_string(dep1), combinationList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setProductKey(const std::string& productKey)
|
||||
{
|
||||
productKey_ = productKey;
|
||||
setBodyParameter("ProductKey", productKey);
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationRequest::getDeviceName()const
|
||||
{
|
||||
return deviceName_;
|
||||
}
|
||||
|
||||
void ShareSpeechByCombinationRequest::setDeviceName(const std::string& deviceName)
|
||||
{
|
||||
deviceName_ = deviceName;
|
||||
setBodyParameter("DeviceName", deviceName);
|
||||
}
|
||||
|
||||
65
iot/src/model/ShareSpeechByCombinationResult.cc
Normal file
65
iot/src/model/ShareSpeechByCombinationResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/ShareSpeechByCombinationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
ShareSpeechByCombinationResult::ShareSpeechByCombinationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ShareSpeechByCombinationResult::ShareSpeechByCombinationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ShareSpeechByCombinationResult::~ShareSpeechByCombinationResult()
|
||||
{}
|
||||
|
||||
void ShareSpeechByCombinationResult::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 ShareSpeechByCombinationResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ShareSpeechByCombinationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ShareSpeechByCombinationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,17 @@ void SpeechByCombinationRequest::setIotInstanceId(const std::string& iotInstance
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
bool SpeechByCombinationRequest::getEnforceFlag()const
|
||||
{
|
||||
return enforceFlag_;
|
||||
}
|
||||
|
||||
void SpeechByCombinationRequest::setEnforceFlag(bool enforceFlag)
|
||||
{
|
||||
enforceFlag_ = enforceFlag;
|
||||
setBodyParameter("EnforceFlag", enforceFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SpeechByCombinationRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
|
||||
@@ -84,6 +84,17 @@ void SyncSpeechByCombinationRequest::setIotInstanceId(const std::string& iotInst
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
bool SyncSpeechByCombinationRequest::getEnforceFlag()const
|
||||
{
|
||||
return enforceFlag_;
|
||||
}
|
||||
|
||||
void SyncSpeechByCombinationRequest::setEnforceFlag(bool enforceFlag)
|
||||
{
|
||||
enforceFlag_ = enforceFlag;
|
||||
setBodyParameter("EnforceFlag", enforceFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SyncSpeechByCombinationRequest::getProductKey()const
|
||||
{
|
||||
return productKey_;
|
||||
|
||||
Reference in New Issue
Block a user