Iot_20180120 old version sdk.
This commit is contained in:
@@ -375,6 +375,78 @@ IotClient::BatchClearEdgeInstanceDeviceConfigOutcomeCallable IotClient::batchCle
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::BatchCreateSoundCodeLabelOutcome IotClient::batchCreateSoundCodeLabel(const BatchCreateSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchCreateSoundCodeLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchCreateSoundCodeLabelOutcome(BatchCreateSoundCodeLabelResult(outcome.result()));
|
||||
else
|
||||
return BatchCreateSoundCodeLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::batchCreateSoundCodeLabelAsync(const BatchCreateSoundCodeLabelRequest& request, const BatchCreateSoundCodeLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchCreateSoundCodeLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::BatchCreateSoundCodeLabelOutcomeCallable IotClient::batchCreateSoundCodeLabelCallable(const BatchCreateSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchCreateSoundCodeLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchCreateSoundCodeLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::BatchCreateSoundCodeLabelWithLabelsOutcome IotClient::batchCreateSoundCodeLabelWithLabels(const BatchCreateSoundCodeLabelWithLabelsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchCreateSoundCodeLabelWithLabelsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchCreateSoundCodeLabelWithLabelsOutcome(BatchCreateSoundCodeLabelWithLabelsResult(outcome.result()));
|
||||
else
|
||||
return BatchCreateSoundCodeLabelWithLabelsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::batchCreateSoundCodeLabelWithLabelsAsync(const BatchCreateSoundCodeLabelWithLabelsRequest& request, const BatchCreateSoundCodeLabelWithLabelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchCreateSoundCodeLabelWithLabels(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::BatchCreateSoundCodeLabelWithLabelsOutcomeCallable IotClient::batchCreateSoundCodeLabelWithLabelsCallable(const BatchCreateSoundCodeLabelWithLabelsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchCreateSoundCodeLabelWithLabelsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchCreateSoundCodeLabelWithLabels(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::BatchDeleteDeviceGroupRelationsOutcome IotClient::batchDeleteDeviceGroupRelations(const BatchDeleteDeviceGroupRelationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2679,6 +2751,42 @@ IotClient::CreateSceneRuleOutcomeCallable IotClient::createSceneRuleCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateSchedulePeriodOutcome IotClient::createSchedulePeriod(const CreateSchedulePeriodRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSchedulePeriodOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSchedulePeriodOutcome(CreateSchedulePeriodResult(outcome.result()));
|
||||
else
|
||||
return CreateSchedulePeriodOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::createSchedulePeriodAsync(const CreateSchedulePeriodRequest& request, const CreateSchedulePeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSchedulePeriod(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::CreateSchedulePeriodOutcomeCallable IotClient::createSchedulePeriodCallable(const CreateSchedulePeriodRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSchedulePeriodOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSchedulePeriod(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateSoundCodeOutcome IotClient::createSoundCode(const CreateSoundCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,6 +2823,78 @@ IotClient::CreateSoundCodeOutcomeCallable IotClient::createSoundCodeCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateSoundCodeLabelOutcome IotClient::createSoundCodeLabel(const CreateSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSoundCodeLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSoundCodeLabelOutcome(CreateSoundCodeLabelResult(outcome.result()));
|
||||
else
|
||||
return CreateSoundCodeLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::createSoundCodeLabelAsync(const CreateSoundCodeLabelRequest& request, const CreateSoundCodeLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSoundCodeLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::CreateSoundCodeLabelOutcomeCallable IotClient::createSoundCodeLabelCallable(const CreateSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSoundCodeLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSoundCodeLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateSoundCodeScheduleOutcome IotClient::createSoundCodeSchedule(const CreateSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSoundCodeScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSoundCodeScheduleOutcome(CreateSoundCodeScheduleResult(outcome.result()));
|
||||
else
|
||||
return CreateSoundCodeScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::createSoundCodeScheduleAsync(const CreateSoundCodeScheduleRequest& request, const CreateSoundCodeScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSoundCodeSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::CreateSoundCodeScheduleOutcomeCallable IotClient::createSoundCodeScheduleCallable(const CreateSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSoundCodeScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSoundCodeSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::CreateSpeechOutcome IotClient::createSpeech(const CreateSpeechRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3795,6 +3975,42 @@ IotClient::DeleteSceneRuleOutcomeCallable IotClient::deleteSceneRuleCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteSchedulePeriodOutcome IotClient::deleteSchedulePeriod(const DeleteSchedulePeriodRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSchedulePeriodOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSchedulePeriodOutcome(DeleteSchedulePeriodResult(outcome.result()));
|
||||
else
|
||||
return DeleteSchedulePeriodOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::deleteSchedulePeriodAsync(const DeleteSchedulePeriodRequest& request, const DeleteSchedulePeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSchedulePeriod(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::DeleteSchedulePeriodOutcomeCallable IotClient::deleteSchedulePeriodCallable(const DeleteSchedulePeriodRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSchedulePeriodOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSchedulePeriod(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteSoundCodeOutcome IotClient::deleteSoundCode(const DeleteSoundCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3831,6 +4047,78 @@ IotClient::DeleteSoundCodeOutcomeCallable IotClient::deleteSoundCodeCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteSoundCodeLabelOutcome IotClient::deleteSoundCodeLabel(const DeleteSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSoundCodeLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSoundCodeLabelOutcome(DeleteSoundCodeLabelResult(outcome.result()));
|
||||
else
|
||||
return DeleteSoundCodeLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::deleteSoundCodeLabelAsync(const DeleteSoundCodeLabelRequest& request, const DeleteSoundCodeLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSoundCodeLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::DeleteSoundCodeLabelOutcomeCallable IotClient::deleteSoundCodeLabelCallable(const DeleteSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSoundCodeLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSoundCodeLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteSoundCodeScheduleOutcome IotClient::deleteSoundCodeSchedule(const DeleteSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSoundCodeScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSoundCodeScheduleOutcome(DeleteSoundCodeScheduleResult(outcome.result()));
|
||||
else
|
||||
return DeleteSoundCodeScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::deleteSoundCodeScheduleAsync(const DeleteSoundCodeScheduleRequest& request, const DeleteSoundCodeScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSoundCodeSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::DeleteSoundCodeScheduleOutcomeCallable IotClient::deleteSoundCodeScheduleCallable(const DeleteSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSoundCodeScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSoundCodeSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::DeleteSpeechOutcome IotClient::deleteSpeech(const DeleteSpeechRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4947,6 +5235,42 @@ IotClient::GetSoundCodeAudioOutcomeCallable IotClient::getSoundCodeAudioCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GetSoundCodeScheduleOutcome IotClient::getSoundCodeSchedule(const GetSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSoundCodeScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSoundCodeScheduleOutcome(GetSoundCodeScheduleResult(outcome.result()));
|
||||
else
|
||||
return GetSoundCodeScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::getSoundCodeScheduleAsync(const GetSoundCodeScheduleRequest& request, const GetSoundCodeScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSoundCodeSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::GetSoundCodeScheduleOutcomeCallable IotClient::getSoundCodeScheduleCallable(const GetSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSoundCodeScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSoundCodeSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::GetSpeechDeviceDetailOutcome IotClient::getSpeechDeviceDetail(const GetSpeechDeviceDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6243,6 +6567,42 @@ IotClient::OpenIotServiceOutcomeCallable IotClient::openIotServiceCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::PackageSoundCodeLabelBatchAudioOutcome IotClient::packageSoundCodeLabelBatchAudio(const PackageSoundCodeLabelBatchAudioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PackageSoundCodeLabelBatchAudioOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PackageSoundCodeLabelBatchAudioOutcome(PackageSoundCodeLabelBatchAudioResult(outcome.result()));
|
||||
else
|
||||
return PackageSoundCodeLabelBatchAudioOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::packageSoundCodeLabelBatchAudioAsync(const PackageSoundCodeLabelBatchAudioRequest& request, const PackageSoundCodeLabelBatchAudioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, packageSoundCodeLabelBatchAudio(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::PackageSoundCodeLabelBatchAudioOutcomeCallable IotClient::packageSoundCodeLabelBatchAudioCallable(const PackageSoundCodeLabelBatchAudioRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PackageSoundCodeLabelBatchAudioOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->packageSoundCodeLabelBatchAudio(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::PrintByTemplateOutcome IotClient::printByTemplate(const PrintByTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8691,6 +9051,42 @@ IotClient::QuerySceneRuleOutcomeCallable IotClient::querySceneRuleCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySchedulePeriodListOutcome IotClient::querySchedulePeriodList(const QuerySchedulePeriodListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySchedulePeriodListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySchedulePeriodListOutcome(QuerySchedulePeriodListResult(outcome.result()));
|
||||
else
|
||||
return QuerySchedulePeriodListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::querySchedulePeriodListAsync(const QuerySchedulePeriodListRequest& request, const QuerySchedulePeriodListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySchedulePeriodList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QuerySchedulePeriodListOutcomeCallable IotClient::querySchedulePeriodListCallable(const QuerySchedulePeriodListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySchedulePeriodListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySchedulePeriodList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySolutionDeviceGroupPageOutcome IotClient::querySolutionDeviceGroupPage(const QuerySolutionDeviceGroupPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8727,6 +9123,114 @@ IotClient::QuerySolutionDeviceGroupPageOutcomeCallable IotClient::querySolutionD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeLabelBatchFailedResultOutcome IotClient::querySoundCodeLabelBatchFailedResult(const QuerySoundCodeLabelBatchFailedResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySoundCodeLabelBatchFailedResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySoundCodeLabelBatchFailedResultOutcome(QuerySoundCodeLabelBatchFailedResultResult(outcome.result()));
|
||||
else
|
||||
return QuerySoundCodeLabelBatchFailedResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::querySoundCodeLabelBatchFailedResultAsync(const QuerySoundCodeLabelBatchFailedResultRequest& request, const QuerySoundCodeLabelBatchFailedResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySoundCodeLabelBatchFailedResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeLabelBatchFailedResultOutcomeCallable IotClient::querySoundCodeLabelBatchFailedResultCallable(const QuerySoundCodeLabelBatchFailedResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySoundCodeLabelBatchFailedResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySoundCodeLabelBatchFailedResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeLabelBatchListOutcome IotClient::querySoundCodeLabelBatchList(const QuerySoundCodeLabelBatchListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySoundCodeLabelBatchListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySoundCodeLabelBatchListOutcome(QuerySoundCodeLabelBatchListResult(outcome.result()));
|
||||
else
|
||||
return QuerySoundCodeLabelBatchListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::querySoundCodeLabelBatchListAsync(const QuerySoundCodeLabelBatchListRequest& request, const QuerySoundCodeLabelBatchListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySoundCodeLabelBatchList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeLabelBatchListOutcomeCallable IotClient::querySoundCodeLabelBatchListCallable(const QuerySoundCodeLabelBatchListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySoundCodeLabelBatchListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySoundCodeLabelBatchList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeLabelListOutcome IotClient::querySoundCodeLabelList(const QuerySoundCodeLabelListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySoundCodeLabelListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySoundCodeLabelListOutcome(QuerySoundCodeLabelListResult(outcome.result()));
|
||||
else
|
||||
return QuerySoundCodeLabelListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::querySoundCodeLabelListAsync(const QuerySoundCodeLabelListRequest& request, const QuerySoundCodeLabelListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySoundCodeLabelList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeLabelListOutcomeCallable IotClient::querySoundCodeLabelListCallable(const QuerySoundCodeLabelListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySoundCodeLabelListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySoundCodeLabelList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeListOutcome IotClient::querySoundCodeList(const QuerySoundCodeListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8763,6 +9267,42 @@ IotClient::QuerySoundCodeListOutcomeCallable IotClient::querySoundCodeListCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeScheduleListOutcome IotClient::querySoundCodeScheduleList(const QuerySoundCodeScheduleListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySoundCodeScheduleListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySoundCodeScheduleListOutcome(QuerySoundCodeScheduleListResult(outcome.result()));
|
||||
else
|
||||
return QuerySoundCodeScheduleListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::querySoundCodeScheduleListAsync(const QuerySoundCodeScheduleListRequest& request, const QuerySoundCodeScheduleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySoundCodeScheduleList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::QuerySoundCodeScheduleListOutcomeCallable IotClient::querySoundCodeScheduleListCallable(const QuerySoundCodeScheduleListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySoundCodeScheduleListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySoundCodeScheduleList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::QuerySpeechOutcome IotClient::querySpeech(const QuerySpeechRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9951,6 +10491,42 @@ IotClient::ResetThingOutcomeCallable IotClient::resetThingCallable(const ResetTh
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::RetrySoundCodeLabelBatchOutcome IotClient::retrySoundCodeLabelBatch(const RetrySoundCodeLabelBatchRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RetrySoundCodeLabelBatchOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RetrySoundCodeLabelBatchOutcome(RetrySoundCodeLabelBatchResult(outcome.result()));
|
||||
else
|
||||
return RetrySoundCodeLabelBatchOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::retrySoundCodeLabelBatchAsync(const RetrySoundCodeLabelBatchRequest& request, const RetrySoundCodeLabelBatchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, retrySoundCodeLabelBatch(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::RetrySoundCodeLabelBatchOutcomeCallable IotClient::retrySoundCodeLabelBatchCallable(const RetrySoundCodeLabelBatchRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RetrySoundCodeLabelBatchOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->retrySoundCodeLabelBatch(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::ReupgradeOTATaskOutcome IotClient::reupgradeOTATask(const ReupgradeOTATaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -11355,6 +11931,114 @@ IotClient::UpdateSceneRuleOutcomeCallable IotClient::updateSceneRuleCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::UpdateSchedulePeriodOutcome IotClient::updateSchedulePeriod(const UpdateSchedulePeriodRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSchedulePeriodOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSchedulePeriodOutcome(UpdateSchedulePeriodResult(outcome.result()));
|
||||
else
|
||||
return UpdateSchedulePeriodOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::updateSchedulePeriodAsync(const UpdateSchedulePeriodRequest& request, const UpdateSchedulePeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSchedulePeriod(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::UpdateSchedulePeriodOutcomeCallable IotClient::updateSchedulePeriodCallable(const UpdateSchedulePeriodRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSchedulePeriodOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSchedulePeriod(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::UpdateSoundCodeLabelOutcome IotClient::updateSoundCodeLabel(const UpdateSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSoundCodeLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSoundCodeLabelOutcome(UpdateSoundCodeLabelResult(outcome.result()));
|
||||
else
|
||||
return UpdateSoundCodeLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::updateSoundCodeLabelAsync(const UpdateSoundCodeLabelRequest& request, const UpdateSoundCodeLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSoundCodeLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::UpdateSoundCodeLabelOutcomeCallable IotClient::updateSoundCodeLabelCallable(const UpdateSoundCodeLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSoundCodeLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSoundCodeLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::UpdateSoundCodeScheduleOutcome IotClient::updateSoundCodeSchedule(const UpdateSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSoundCodeScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSoundCodeScheduleOutcome(UpdateSoundCodeScheduleResult(outcome.result()));
|
||||
else
|
||||
return UpdateSoundCodeScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void IotClient::updateSoundCodeScheduleAsync(const UpdateSoundCodeScheduleRequest& request, const UpdateSoundCodeScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSoundCodeSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
IotClient::UpdateSoundCodeScheduleOutcomeCallable IotClient::updateSoundCodeScheduleCallable(const UpdateSoundCodeScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSoundCodeScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSoundCodeSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
IotClient::UpdateSpeechOutcome IotClient::updateSpeech(const UpdateSpeechRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
iot/src/model/BatchCreateSoundCodeLabelRequest.cc
Normal file
95
iot/src/model/BatchCreateSoundCodeLabelRequest.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/BatchCreateSoundCodeLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchCreateSoundCodeLabelRequest;
|
||||
|
||||
BatchCreateSoundCodeLabelRequest::BatchCreateSoundCodeLabelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchCreateSoundCodeLabel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchCreateSoundCodeLabelRequest::~BatchCreateSoundCodeLabelRequest()
|
||||
{}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
int BatchCreateSoundCodeLabelRequest::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelRequest::setTotal(int total)
|
||||
{
|
||||
total_ = total;
|
||||
setBodyParameter("Total", std::to_string(total));
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/BatchCreateSoundCodeLabelResult.cc
Normal file
72
iot/src/model/BatchCreateSoundCodeLabelResult.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/BatchCreateSoundCodeLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchCreateSoundCodeLabelResult::BatchCreateSoundCodeLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchCreateSoundCodeLabelResult::BatchCreateSoundCodeLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchCreateSoundCodeLabelResult::~BatchCreateSoundCodeLabelResult()
|
||||
{}
|
||||
|
||||
void BatchCreateSoundCodeLabelResult::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 BatchCreateSoundCodeLabelResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchCreateSoundCodeLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
97
iot/src/model/BatchCreateSoundCodeLabelWithLabelsRequest.cc
Normal file
97
iot/src/model/BatchCreateSoundCodeLabelWithLabelsRequest.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/BatchCreateSoundCodeLabelWithLabelsRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::BatchCreateSoundCodeLabelWithLabelsRequest;
|
||||
|
||||
BatchCreateSoundCodeLabelWithLabelsRequest::BatchCreateSoundCodeLabelWithLabelsRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "BatchCreateSoundCodeLabelWithLabels")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchCreateSoundCodeLabelWithLabelsRequest::~BatchCreateSoundCodeLabelWithLabelsRequest()
|
||||
{}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchCreateSoundCodeLabelWithLabelsRequest::getLabels()const
|
||||
{
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsRequest::setLabels(const std::vector<std::string>& labels)
|
||||
{
|
||||
labels_ = labels;
|
||||
for(int dep1 = 0; dep1!= labels.size(); dep1++) {
|
||||
setBodyParameter("Labels."+ std::to_string(dep1), labels.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/BatchCreateSoundCodeLabelWithLabelsResult.cc
Normal file
72
iot/src/model/BatchCreateSoundCodeLabelWithLabelsResult.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/BatchCreateSoundCodeLabelWithLabelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
BatchCreateSoundCodeLabelWithLabelsResult::BatchCreateSoundCodeLabelWithLabelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchCreateSoundCodeLabelWithLabelsResult::BatchCreateSoundCodeLabelWithLabelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchCreateSoundCodeLabelWithLabelsResult::~BatchCreateSoundCodeLabelWithLabelsResult()
|
||||
{}
|
||||
|
||||
void BatchCreateSoundCodeLabelWithLabelsResult::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 BatchCreateSoundCodeLabelWithLabelsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchCreateSoundCodeLabelWithLabelsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchCreateSoundCodeLabelWithLabelsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
iot/src/model/CreateSchedulePeriodRequest.cc
Normal file
117
iot/src/model/CreateSchedulePeriodRequest.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/CreateSchedulePeriodRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateSchedulePeriodRequest;
|
||||
|
||||
CreateSchedulePeriodRequest::CreateSchedulePeriodRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateSchedulePeriod")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSchedulePeriodRequest::~CreateSchedulePeriodRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getSoundCodeContent()const
|
||||
{
|
||||
return soundCodeContent_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setSoundCodeContent(const std::string& soundCodeContent)
|
||||
{
|
||||
soundCodeContent_ = soundCodeContent;
|
||||
setBodyParameter("SoundCodeContent", soundCodeContent);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateSchedulePeriodRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/CreateSchedulePeriodResult.cc
Normal file
72
iot/src/model/CreateSchedulePeriodResult.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/CreateSchedulePeriodResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateSchedulePeriodResult::CreateSchedulePeriodResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSchedulePeriodResult::CreateSchedulePeriodResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSchedulePeriodResult::~CreateSchedulePeriodResult()
|
||||
{}
|
||||
|
||||
void CreateSchedulePeriodResult::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 CreateSchedulePeriodResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateSchedulePeriodResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSchedulePeriodResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
iot/src/model/CreateSoundCodeLabelRequest.cc
Normal file
84
iot/src/model/CreateSoundCodeLabelRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/CreateSoundCodeLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateSoundCodeLabelRequest;
|
||||
|
||||
CreateSoundCodeLabelRequest::CreateSoundCodeLabelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateSoundCodeLabel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSoundCodeLabelRequest::~CreateSoundCodeLabelRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSoundCodeLabelRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeLabelRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeLabelRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeLabelRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeLabelRequest::getLabel()const
|
||||
{
|
||||
return label_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeLabelRequest::setLabel(const std::string& label)
|
||||
{
|
||||
label_ = label;
|
||||
setBodyParameter("Label", label);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeLabelRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeLabelRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeLabelRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeLabelRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/CreateSoundCodeLabelResult.cc
Normal file
72
iot/src/model/CreateSoundCodeLabelResult.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/CreateSoundCodeLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateSoundCodeLabelResult::CreateSoundCodeLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSoundCodeLabelResult::CreateSoundCodeLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSoundCodeLabelResult::~CreateSoundCodeLabelResult()
|
||||
{}
|
||||
|
||||
void CreateSoundCodeLabelResult::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 CreateSoundCodeLabelResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeLabelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSoundCodeLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
iot/src/model/CreateSoundCodeScheduleRequest.cc
Normal file
106
iot/src/model/CreateSoundCodeScheduleRequest.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/CreateSoundCodeScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::CreateSoundCodeScheduleRequest;
|
||||
|
||||
CreateSoundCodeScheduleRequest::CreateSoundCodeScheduleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "CreateSoundCodeSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSoundCodeScheduleRequest::~CreateSoundCodeScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setBodyParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setBodyParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void CreateSoundCodeScheduleRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/CreateSoundCodeScheduleResult.cc
Normal file
72
iot/src/model/CreateSoundCodeScheduleResult.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/CreateSoundCodeScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
CreateSoundCodeScheduleResult::CreateSoundCodeScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSoundCodeScheduleResult::CreateSoundCodeScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSoundCodeScheduleResult::~CreateSoundCodeScheduleResult()
|
||||
{}
|
||||
|
||||
void CreateSoundCodeScheduleResult::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 CreateSoundCodeScheduleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateSoundCodeScheduleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSoundCodeScheduleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/DeleteSchedulePeriodRequest.cc
Normal file
73
iot/src/model/DeleteSchedulePeriodRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/DeleteSchedulePeriodRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteSchedulePeriodRequest;
|
||||
|
||||
DeleteSchedulePeriodRequest::DeleteSchedulePeriodRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteSchedulePeriod")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSchedulePeriodRequest::~DeleteSchedulePeriodRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSchedulePeriodRequest::getPeriodCode()const
|
||||
{
|
||||
return periodCode_;
|
||||
}
|
||||
|
||||
void DeleteSchedulePeriodRequest::setPeriodCode(const std::string& periodCode)
|
||||
{
|
||||
periodCode_ = periodCode;
|
||||
setBodyParameter("PeriodCode", periodCode);
|
||||
}
|
||||
|
||||
std::string DeleteSchedulePeriodRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteSchedulePeriodRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSchedulePeriodRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteSchedulePeriodRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteSchedulePeriodRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteSchedulePeriodRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteSchedulePeriodResult.cc
Normal file
65
iot/src/model/DeleteSchedulePeriodResult.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/DeleteSchedulePeriodResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteSchedulePeriodResult::DeleteSchedulePeriodResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSchedulePeriodResult::DeleteSchedulePeriodResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSchedulePeriodResult::~DeleteSchedulePeriodResult()
|
||||
{}
|
||||
|
||||
void DeleteSchedulePeriodResult::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 DeleteSchedulePeriodResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteSchedulePeriodResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSchedulePeriodResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/DeleteSoundCodeLabelRequest.cc
Normal file
73
iot/src/model/DeleteSoundCodeLabelRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/DeleteSoundCodeLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteSoundCodeLabelRequest;
|
||||
|
||||
DeleteSoundCodeLabelRequest::DeleteSoundCodeLabelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteSoundCodeLabel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSoundCodeLabelRequest::~DeleteSoundCodeLabelRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSoundCodeLabelRequest::getSoundCode()const
|
||||
{
|
||||
return soundCode_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeLabelRequest::setSoundCode(const std::string& soundCode)
|
||||
{
|
||||
soundCode_ = soundCode;
|
||||
setBodyParameter("SoundCode", soundCode);
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeLabelRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeLabelRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeLabelRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeLabelRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeLabelRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeLabelRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteSoundCodeLabelResult.cc
Normal file
65
iot/src/model/DeleteSoundCodeLabelResult.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/DeleteSoundCodeLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteSoundCodeLabelResult::DeleteSoundCodeLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSoundCodeLabelResult::DeleteSoundCodeLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSoundCodeLabelResult::~DeleteSoundCodeLabelResult()
|
||||
{}
|
||||
|
||||
void DeleteSoundCodeLabelResult::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 DeleteSoundCodeLabelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSoundCodeLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/DeleteSoundCodeScheduleRequest.cc
Normal file
73
iot/src/model/DeleteSoundCodeScheduleRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/DeleteSoundCodeScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::DeleteSoundCodeScheduleRequest;
|
||||
|
||||
DeleteSoundCodeScheduleRequest::DeleteSoundCodeScheduleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "DeleteSoundCodeSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSoundCodeScheduleRequest::~DeleteSoundCodeScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSoundCodeScheduleRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeScheduleRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeScheduleRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeScheduleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeScheduleRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeScheduleRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeScheduleRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void DeleteSoundCodeScheduleRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/DeleteSoundCodeScheduleResult.cc
Normal file
65
iot/src/model/DeleteSoundCodeScheduleResult.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/DeleteSoundCodeScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
DeleteSoundCodeScheduleResult::DeleteSoundCodeScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSoundCodeScheduleResult::DeleteSoundCodeScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSoundCodeScheduleResult::~DeleteSoundCodeScheduleResult()
|
||||
{}
|
||||
|
||||
void DeleteSoundCodeScheduleResult::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 DeleteSoundCodeScheduleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteSoundCodeScheduleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSoundCodeScheduleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/GetSoundCodeScheduleRequest.cc
Normal file
73
iot/src/model/GetSoundCodeScheduleRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/GetSoundCodeScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::GetSoundCodeScheduleRequest;
|
||||
|
||||
GetSoundCodeScheduleRequest::GetSoundCodeScheduleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "GetSoundCodeSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSoundCodeScheduleRequest::~GetSoundCodeScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string GetSoundCodeScheduleRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void GetSoundCodeScheduleRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string GetSoundCodeScheduleRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void GetSoundCodeScheduleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string GetSoundCodeScheduleRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void GetSoundCodeScheduleRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string GetSoundCodeScheduleRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void GetSoundCodeScheduleRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
89
iot/src/model/GetSoundCodeScheduleResult.cc
Normal file
89
iot/src/model/GetSoundCodeScheduleResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/GetSoundCodeScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
GetSoundCodeScheduleResult::GetSoundCodeScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSoundCodeScheduleResult::GetSoundCodeScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSoundCodeScheduleResult::~GetSoundCodeScheduleResult()
|
||||
{}
|
||||
|
||||
void GetSoundCodeScheduleResult::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["ScheduleCode"].isNull())
|
||||
data_.scheduleCode = dataNode["ScheduleCode"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["StartTime"].isNull())
|
||||
data_.startTime = dataNode["StartTime"].asString();
|
||||
if(!dataNode["EndTime"].isNull())
|
||||
data_.endTime = dataNode["EndTime"].asString();
|
||||
if(!dataNode["StartDate"].isNull())
|
||||
data_.startDate = dataNode["StartDate"].asString();
|
||||
if(!dataNode["EndDate"].isNull())
|
||||
data_.endDate = dataNode["EndDate"].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();
|
||||
|
||||
}
|
||||
|
||||
GetSoundCodeScheduleResult::Data GetSoundCodeScheduleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetSoundCodeScheduleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetSoundCodeScheduleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetSoundCodeScheduleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/PackageSoundCodeLabelBatchAudioRequest.cc
Normal file
73
iot/src/model/PackageSoundCodeLabelBatchAudioRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/PackageSoundCodeLabelBatchAudioRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::PackageSoundCodeLabelBatchAudioRequest;
|
||||
|
||||
PackageSoundCodeLabelBatchAudioRequest::PackageSoundCodeLabelBatchAudioRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "PackageSoundCodeLabelBatchAudio")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PackageSoundCodeLabelBatchAudioRequest::~PackageSoundCodeLabelBatchAudioRequest()
|
||||
{}
|
||||
|
||||
std::string PackageSoundCodeLabelBatchAudioRequest::getBatchCode()const
|
||||
{
|
||||
return batchCode_;
|
||||
}
|
||||
|
||||
void PackageSoundCodeLabelBatchAudioRequest::setBatchCode(const std::string& batchCode)
|
||||
{
|
||||
batchCode_ = batchCode;
|
||||
setBodyParameter("BatchCode", batchCode);
|
||||
}
|
||||
|
||||
std::string PackageSoundCodeLabelBatchAudioRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void PackageSoundCodeLabelBatchAudioRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string PackageSoundCodeLabelBatchAudioRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void PackageSoundCodeLabelBatchAudioRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string PackageSoundCodeLabelBatchAudioRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void PackageSoundCodeLabelBatchAudioRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
72
iot/src/model/PackageSoundCodeLabelBatchAudioResult.cc
Normal file
72
iot/src/model/PackageSoundCodeLabelBatchAudioResult.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/PackageSoundCodeLabelBatchAudioResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
PackageSoundCodeLabelBatchAudioResult::PackageSoundCodeLabelBatchAudioResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PackageSoundCodeLabelBatchAudioResult::PackageSoundCodeLabelBatchAudioResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PackageSoundCodeLabelBatchAudioResult::~PackageSoundCodeLabelBatchAudioResult()
|
||||
{}
|
||||
|
||||
void PackageSoundCodeLabelBatchAudioResult::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 PackageSoundCodeLabelBatchAudioResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PackageSoundCodeLabelBatchAudioResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string PackageSoundCodeLabelBatchAudioResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PackageSoundCodeLabelBatchAudioResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
iot/src/model/QuerySchedulePeriodListRequest.cc
Normal file
95
iot/src/model/QuerySchedulePeriodListRequest.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/QuerySchedulePeriodListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QuerySchedulePeriodListRequest;
|
||||
|
||||
QuerySchedulePeriodListRequest::QuerySchedulePeriodListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QuerySchedulePeriodList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySchedulePeriodListRequest::~QuerySchedulePeriodListRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySchedulePeriodListRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void QuerySchedulePeriodListRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
int QuerySchedulePeriodListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QuerySchedulePeriodListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string QuerySchedulePeriodListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QuerySchedulePeriodListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QuerySchedulePeriodListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySchedulePeriodListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySchedulePeriodListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QuerySchedulePeriodListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QuerySchedulePeriodListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QuerySchedulePeriodListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
93
iot/src/model/QuerySchedulePeriodListResult.cc
Normal file
93
iot/src/model/QuerySchedulePeriodListResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/QuerySchedulePeriodListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QuerySchedulePeriodListResult::QuerySchedulePeriodListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySchedulePeriodListResult::QuerySchedulePeriodListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySchedulePeriodListResult::~QuerySchedulePeriodListResult()
|
||||
{}
|
||||
|
||||
void QuerySchedulePeriodListResult::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["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allListNode = dataNode["List"]["Items"];
|
||||
for (auto dataNodeListItems : allListNode)
|
||||
{
|
||||
Data::Items itemsObject;
|
||||
if(!dataNodeListItems["PeriodCode"].isNull())
|
||||
itemsObject.periodCode = dataNodeListItems["PeriodCode"].asString();
|
||||
if(!dataNodeListItems["SoundCodeContent"].isNull())
|
||||
itemsObject.soundCodeContent = dataNodeListItems["SoundCodeContent"].asString();
|
||||
if(!dataNodeListItems["Description"].isNull())
|
||||
itemsObject.description = dataNodeListItems["Description"].asString();
|
||||
if(!dataNodeListItems["StartTime"].isNull())
|
||||
itemsObject.startTime = dataNodeListItems["StartTime"].asString();
|
||||
if(!dataNodeListItems["EndTime"].isNull())
|
||||
itemsObject.endTime = dataNodeListItems["EndTime"].asString();
|
||||
data_.list.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();
|
||||
|
||||
}
|
||||
|
||||
QuerySchedulePeriodListResult::Data QuerySchedulePeriodListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySchedulePeriodListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QuerySchedulePeriodListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySchedulePeriodListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/QuerySoundCodeLabelBatchFailedResultRequest.cc
Normal file
73
iot/src/model/QuerySoundCodeLabelBatchFailedResultRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/QuerySoundCodeLabelBatchFailedResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QuerySoundCodeLabelBatchFailedResultRequest;
|
||||
|
||||
QuerySoundCodeLabelBatchFailedResultRequest::QuerySoundCodeLabelBatchFailedResultRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QuerySoundCodeLabelBatchFailedResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelBatchFailedResultRequest::~QuerySoundCodeLabelBatchFailedResultRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchFailedResultRequest::getBatchCode()const
|
||||
{
|
||||
return batchCode_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchFailedResultRequest::setBatchCode(const std::string& batchCode)
|
||||
{
|
||||
batchCode_ = batchCode;
|
||||
setBodyParameter("BatchCode", batchCode);
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchFailedResultRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchFailedResultRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchFailedResultRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchFailedResultRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchFailedResultRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchFailedResultRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
82
iot/src/model/QuerySoundCodeLabelBatchFailedResultResult.cc
Normal file
82
iot/src/model/QuerySoundCodeLabelBatchFailedResultResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/QuerySoundCodeLabelBatchFailedResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QuerySoundCodeLabelBatchFailedResultResult::QuerySoundCodeLabelBatchFailedResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySoundCodeLabelBatchFailedResultResult::QuerySoundCodeLabelBatchFailedResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelBatchFailedResultResult::~QuerySoundCodeLabelBatchFailedResultResult()
|
||||
{}
|
||||
|
||||
void QuerySoundCodeLabelBatchFailedResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Items"];
|
||||
for (auto valueDataItems : allDataNode)
|
||||
{
|
||||
Items dataObject;
|
||||
if(!valueDataItems["ResultCode"].isNull())
|
||||
dataObject.resultCode = valueDataItems["ResultCode"].asString();
|
||||
if(!valueDataItems["Label"].isNull())
|
||||
dataObject.label = valueDataItems["Label"].asString();
|
||||
if(!valueDataItems["ErrorMessage"].isNull())
|
||||
dataObject.errorMessage = valueDataItems["ErrorMessage"].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<QuerySoundCodeLabelBatchFailedResultResult::Items> QuerySoundCodeLabelBatchFailedResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchFailedResultResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchFailedResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySoundCodeLabelBatchFailedResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
iot/src/model/QuerySoundCodeLabelBatchListRequest.cc
Normal file
95
iot/src/model/QuerySoundCodeLabelBatchListRequest.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/QuerySoundCodeLabelBatchListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QuerySoundCodeLabelBatchListRequest;
|
||||
|
||||
QuerySoundCodeLabelBatchListRequest::QuerySoundCodeLabelBatchListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QuerySoundCodeLabelBatchList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelBatchListRequest::~QuerySoundCodeLabelBatchListRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchListRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchListRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
int QuerySoundCodeLabelBatchListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QuerySoundCodeLabelBatchListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelBatchListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
95
iot/src/model/QuerySoundCodeLabelBatchListResult.cc
Normal file
95
iot/src/model/QuerySoundCodeLabelBatchListResult.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/QuerySoundCodeLabelBatchListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QuerySoundCodeLabelBatchListResult::QuerySoundCodeLabelBatchListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySoundCodeLabelBatchListResult::QuerySoundCodeLabelBatchListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelBatchListResult::~QuerySoundCodeLabelBatchListResult()
|
||||
{}
|
||||
|
||||
void QuerySoundCodeLabelBatchListResult::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["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allListNode = dataNode["List"]["Items"];
|
||||
for (auto dataNodeListItems : allListNode)
|
||||
{
|
||||
Data::Items itemsObject;
|
||||
if(!dataNodeListItems["BatchCode"].isNull())
|
||||
itemsObject.batchCode = dataNodeListItems["BatchCode"].asString();
|
||||
if(!dataNodeListItems["Description"].isNull())
|
||||
itemsObject.description = dataNodeListItems["Description"].asString();
|
||||
if(!dataNodeListItems["Total"].isNull())
|
||||
itemsObject.total = std::stoi(dataNodeListItems["Total"].asString());
|
||||
if(!dataNodeListItems["SuccessNum"].isNull())
|
||||
itemsObject.successNum = std::stoi(dataNodeListItems["SuccessNum"].asString());
|
||||
if(!dataNodeListItems["Status"].isNull())
|
||||
itemsObject.status = dataNodeListItems["Status"].asString();
|
||||
if(!dataNodeListItems["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = std::stol(dataNodeListItems["GmtCreate"].asString());
|
||||
data_.list.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();
|
||||
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelBatchListResult::Data QuerySoundCodeLabelBatchListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelBatchListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySoundCodeLabelBatchListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
iot/src/model/QuerySoundCodeLabelListRequest.cc
Normal file
95
iot/src/model/QuerySoundCodeLabelListRequest.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/QuerySoundCodeLabelListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QuerySoundCodeLabelListRequest;
|
||||
|
||||
QuerySoundCodeLabelListRequest::QuerySoundCodeLabelListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QuerySoundCodeLabelList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelListRequest::~QuerySoundCodeLabelListRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySoundCodeLabelListRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelListRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
int QuerySoundCodeLabelListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QuerySoundCodeLabelListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeLabelListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
87
iot/src/model/QuerySoundCodeLabelListResult.cc
Normal file
87
iot/src/model/QuerySoundCodeLabelListResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/QuerySoundCodeLabelListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QuerySoundCodeLabelListResult::QuerySoundCodeLabelListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySoundCodeLabelListResult::QuerySoundCodeLabelListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelListResult::~QuerySoundCodeLabelListResult()
|
||||
{}
|
||||
|
||||
void QuerySoundCodeLabelListResult::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["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allListNode = dataNode["List"]["Items"];
|
||||
for (auto dataNodeListItems : allListNode)
|
||||
{
|
||||
Data::Items itemsObject;
|
||||
if(!dataNodeListItems["SoundCode"].isNull())
|
||||
itemsObject.soundCode = dataNodeListItems["SoundCode"].asString();
|
||||
if(!dataNodeListItems["Label"].isNull())
|
||||
itemsObject.label = dataNodeListItems["Label"].asString();
|
||||
data_.list.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();
|
||||
|
||||
}
|
||||
|
||||
QuerySoundCodeLabelListResult::Data QuerySoundCodeLabelListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeLabelListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySoundCodeLabelListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
iot/src/model/QuerySoundCodeScheduleListRequest.cc
Normal file
84
iot/src/model/QuerySoundCodeScheduleListRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/QuerySoundCodeScheduleListRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::QuerySoundCodeScheduleListRequest;
|
||||
|
||||
QuerySoundCodeScheduleListRequest::QuerySoundCodeScheduleListRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "QuerySoundCodeScheduleList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySoundCodeScheduleListRequest::~QuerySoundCodeScheduleListRequest()
|
||||
{}
|
||||
|
||||
int QuerySoundCodeScheduleListRequest::getPageId()const
|
||||
{
|
||||
return pageId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeScheduleListRequest::setPageId(int pageId)
|
||||
{
|
||||
pageId_ = pageId;
|
||||
setBodyParameter("PageId", std::to_string(pageId));
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeScheduleListRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeScheduleListRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
int QuerySoundCodeScheduleListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeScheduleListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeScheduleListRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeScheduleListRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeScheduleListRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void QuerySoundCodeScheduleListRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
101
iot/src/model/QuerySoundCodeScheduleListResult.cc
Normal file
101
iot/src/model/QuerySoundCodeScheduleListResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/QuerySoundCodeScheduleListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
QuerySoundCodeScheduleListResult::QuerySoundCodeScheduleListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySoundCodeScheduleListResult::QuerySoundCodeScheduleListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySoundCodeScheduleListResult::~QuerySoundCodeScheduleListResult()
|
||||
{}
|
||||
|
||||
void QuerySoundCodeScheduleListResult::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["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageId"].isNull())
|
||||
data_.pageId = std::stoi(dataNode["PageId"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allListNode = dataNode["List"]["Items"];
|
||||
for (auto dataNodeListItems : allListNode)
|
||||
{
|
||||
Data::Items itemsObject;
|
||||
if(!dataNodeListItems["ScheduleCode"].isNull())
|
||||
itemsObject.scheduleCode = dataNodeListItems["ScheduleCode"].asString();
|
||||
if(!dataNodeListItems["Name"].isNull())
|
||||
itemsObject.name = dataNodeListItems["Name"].asString();
|
||||
if(!dataNodeListItems["Description"].isNull())
|
||||
itemsObject.description = dataNodeListItems["Description"].asString();
|
||||
if(!dataNodeListItems["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = std::stol(dataNodeListItems["GmtCreate"].asString());
|
||||
if(!dataNodeListItems["Status"].isNull())
|
||||
itemsObject.status = dataNodeListItems["Status"].asString();
|
||||
if(!dataNodeListItems["StartTime"].isNull())
|
||||
itemsObject.startTime = dataNodeListItems["StartTime"].asString();
|
||||
if(!dataNodeListItems["EndTime"].isNull())
|
||||
itemsObject.endTime = dataNodeListItems["EndTime"].asString();
|
||||
if(!dataNodeListItems["StartDate"].isNull())
|
||||
itemsObject.startDate = dataNodeListItems["StartDate"].asString();
|
||||
if(!dataNodeListItems["EndDate"].isNull())
|
||||
itemsObject.endDate = dataNodeListItems["EndDate"].asString();
|
||||
data_.list.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();
|
||||
|
||||
}
|
||||
|
||||
QuerySoundCodeScheduleListResult::Data QuerySoundCodeScheduleListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeScheduleListResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string QuerySoundCodeScheduleListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySoundCodeScheduleListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
iot/src/model/RetrySoundCodeLabelBatchRequest.cc
Normal file
73
iot/src/model/RetrySoundCodeLabelBatchRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/RetrySoundCodeLabelBatchRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::RetrySoundCodeLabelBatchRequest;
|
||||
|
||||
RetrySoundCodeLabelBatchRequest::RetrySoundCodeLabelBatchRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "RetrySoundCodeLabelBatch")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RetrySoundCodeLabelBatchRequest::~RetrySoundCodeLabelBatchRequest()
|
||||
{}
|
||||
|
||||
std::string RetrySoundCodeLabelBatchRequest::getBatchCode()const
|
||||
{
|
||||
return batchCode_;
|
||||
}
|
||||
|
||||
void RetrySoundCodeLabelBatchRequest::setBatchCode(const std::string& batchCode)
|
||||
{
|
||||
batchCode_ = batchCode;
|
||||
setBodyParameter("BatchCode", batchCode);
|
||||
}
|
||||
|
||||
std::string RetrySoundCodeLabelBatchRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void RetrySoundCodeLabelBatchRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string RetrySoundCodeLabelBatchRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void RetrySoundCodeLabelBatchRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string RetrySoundCodeLabelBatchRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void RetrySoundCodeLabelBatchRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/RetrySoundCodeLabelBatchResult.cc
Normal file
65
iot/src/model/RetrySoundCodeLabelBatchResult.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/RetrySoundCodeLabelBatchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
RetrySoundCodeLabelBatchResult::RetrySoundCodeLabelBatchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RetrySoundCodeLabelBatchResult::RetrySoundCodeLabelBatchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RetrySoundCodeLabelBatchResult::~RetrySoundCodeLabelBatchResult()
|
||||
{}
|
||||
|
||||
void RetrySoundCodeLabelBatchResult::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 RetrySoundCodeLabelBatchResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string RetrySoundCodeLabelBatchResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RetrySoundCodeLabelBatchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ SaveDevicePropRequest::SaveDevicePropRequest() :
|
||||
SaveDevicePropRequest::~SaveDevicePropRequest()
|
||||
{}
|
||||
|
||||
std::string SaveDevicePropRequest::getRealTenantId()const
|
||||
{
|
||||
return realTenantId_;
|
||||
}
|
||||
|
||||
void SaveDevicePropRequest::setRealTenantId(const std::string& realTenantId)
|
||||
{
|
||||
realTenantId_ = realTenantId;
|
||||
setParameter("RealTenantId", realTenantId);
|
||||
}
|
||||
|
||||
std::string SaveDevicePropRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -38,6 +49,17 @@ void SaveDevicePropRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SaveDevicePropRequest::getRealTripartiteKey()const
|
||||
{
|
||||
return realTripartiteKey_;
|
||||
}
|
||||
|
||||
void SaveDevicePropRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
|
||||
{
|
||||
realTripartiteKey_ = realTripartiteKey;
|
||||
setParameter("RealTripartiteKey", realTripartiteKey);
|
||||
}
|
||||
|
||||
std::string SaveDevicePropRequest::getIotId()const
|
||||
{
|
||||
return iotId_;
|
||||
|
||||
117
iot/src/model/UpdateSchedulePeriodRequest.cc
Normal file
117
iot/src/model/UpdateSchedulePeriodRequest.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/UpdateSchedulePeriodRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::UpdateSchedulePeriodRequest;
|
||||
|
||||
UpdateSchedulePeriodRequest::UpdateSchedulePeriodRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "UpdateSchedulePeriod")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSchedulePeriodRequest::~UpdateSchedulePeriodRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getPeriodCode()const
|
||||
{
|
||||
return periodCode_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setPeriodCode(const std::string& periodCode)
|
||||
{
|
||||
periodCode_ = periodCode;
|
||||
setBodyParameter("PeriodCode", periodCode);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getSoundCodeContent()const
|
||||
{
|
||||
return soundCodeContent_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setSoundCodeContent(const std::string& soundCodeContent)
|
||||
{
|
||||
soundCodeContent_ = soundCodeContent;
|
||||
setBodyParameter("SoundCodeContent", soundCodeContent);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void UpdateSchedulePeriodRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/UpdateSchedulePeriodResult.cc
Normal file
65
iot/src/model/UpdateSchedulePeriodResult.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/UpdateSchedulePeriodResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
UpdateSchedulePeriodResult::UpdateSchedulePeriodResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSchedulePeriodResult::UpdateSchedulePeriodResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSchedulePeriodResult::~UpdateSchedulePeriodResult()
|
||||
{}
|
||||
|
||||
void UpdateSchedulePeriodResult::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 UpdateSchedulePeriodResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateSchedulePeriodResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateSchedulePeriodResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
iot/src/model/UpdateSoundCodeLabelRequest.cc
Normal file
84
iot/src/model/UpdateSoundCodeLabelRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/UpdateSoundCodeLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::UpdateSoundCodeLabelRequest;
|
||||
|
||||
UpdateSoundCodeLabelRequest::UpdateSoundCodeLabelRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "UpdateSoundCodeLabel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSoundCodeLabelRequest::~UpdateSoundCodeLabelRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateSoundCodeLabelRequest::getSoundCode()const
|
||||
{
|
||||
return soundCode_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeLabelRequest::setSoundCode(const std::string& soundCode)
|
||||
{
|
||||
soundCode_ = soundCode;
|
||||
setBodyParameter("SoundCode", soundCode);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeLabelRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeLabelRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeLabelRequest::getLabel()const
|
||||
{
|
||||
return label_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeLabelRequest::setLabel(const std::string& label)
|
||||
{
|
||||
label_ = label;
|
||||
setBodyParameter("Label", label);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeLabelRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeLabelRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeLabelRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeLabelRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
65
iot/src/model/UpdateSoundCodeLabelResult.cc
Normal file
65
iot/src/model/UpdateSoundCodeLabelResult.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/UpdateSoundCodeLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
UpdateSoundCodeLabelResult::UpdateSoundCodeLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSoundCodeLabelResult::UpdateSoundCodeLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSoundCodeLabelResult::~UpdateSoundCodeLabelResult()
|
||||
{}
|
||||
|
||||
void UpdateSoundCodeLabelResult::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 UpdateSoundCodeLabelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateSoundCodeLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
150
iot/src/model/UpdateSoundCodeScheduleRequest.cc
Normal file
150
iot/src/model/UpdateSoundCodeScheduleRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/UpdateSoundCodeScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Iot::Model::UpdateSoundCodeScheduleRequest;
|
||||
|
||||
UpdateSoundCodeScheduleRequest::UpdateSoundCodeScheduleRequest() :
|
||||
RpcServiceRequest("iot", "2018-01-20", "UpdateSoundCodeSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSoundCodeScheduleRequest::~UpdateSoundCodeScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getScheduleCode()const
|
||||
{
|
||||
return scheduleCode_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setScheduleCode(const std::string& scheduleCode)
|
||||
{
|
||||
scheduleCode_ = scheduleCode;
|
||||
setBodyParameter("ScheduleCode", scheduleCode);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setBodyParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getIotInstanceId()const
|
||||
{
|
||||
return iotInstanceId_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||
{
|
||||
iotInstanceId_ = iotInstanceId;
|
||||
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setBodyParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getApiProduct()const
|
||||
{
|
||||
return apiProduct_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setApiProduct(const std::string& apiProduct)
|
||||
{
|
||||
apiProduct_ = apiProduct;
|
||||
setBodyParameter("ApiProduct", apiProduct);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getApiRevision()const
|
||||
{
|
||||
return apiRevision_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setApiRevision(const std::string& apiRevision)
|
||||
{
|
||||
apiRevision_ = apiRevision;
|
||||
setBodyParameter("ApiRevision", apiRevision);
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateSoundCodeScheduleRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
65
iot/src/model/UpdateSoundCodeScheduleResult.cc
Normal file
65
iot/src/model/UpdateSoundCodeScheduleResult.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/UpdateSoundCodeScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Iot;
|
||||
using namespace AlibabaCloud::Iot::Model;
|
||||
|
||||
UpdateSoundCodeScheduleResult::UpdateSoundCodeScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSoundCodeScheduleResult::UpdateSoundCodeScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSoundCodeScheduleResult::~UpdateSoundCodeScheduleResult()
|
||||
{}
|
||||
|
||||
void UpdateSoundCodeScheduleResult::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 UpdateSoundCodeScheduleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateSoundCodeScheduleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateSoundCodeScheduleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user