Supported backend interface for ICBU.
This commit is contained in:
701
tdsr/src/TdsrClient.cc
Normal file
701
tdsr/src/TdsrClient.cc
Normal file
@@ -0,0 +1,701 @@
|
||||
/*
|
||||
* 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/tdsr/TdsrClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "tdsr";
|
||||
}
|
||||
|
||||
TdsrClient::TdsrClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
TdsrClient::TdsrClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
TdsrClient::TdsrClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
TdsrClient::~TdsrClient()
|
||||
{}
|
||||
|
||||
TdsrClient::CheckPermissionOutcome TdsrClient::checkPermission(const CheckPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckPermissionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckPermissionOutcome(CheckPermissionResult(outcome.result()));
|
||||
else
|
||||
return CheckPermissionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::checkPermissionAsync(const CheckPermissionRequest& request, const CheckPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkPermission(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::CheckPermissionOutcomeCallable TdsrClient::checkPermissionCallable(const CheckPermissionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckPermissionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkPermission(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::CheckResourceOutcome TdsrClient::checkResource(const CheckResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckResourceOutcome(CheckResourceResult(outcome.result()));
|
||||
else
|
||||
return CheckResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::checkResourceAsync(const CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::CheckResourceOutcomeCallable TdsrClient::checkResourceCallable(const CheckResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::CreateProjectOutcome TdsrClient::createProject(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProjectOutcome(CreateProjectResult(outcome.result()));
|
||||
else
|
||||
return CreateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::CreateProjectOutcomeCallable TdsrClient::createProjectCallable(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::CreateSceneOutcome TdsrClient::createScene(const CreateSceneRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSceneOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSceneOutcome(CreateSceneResult(outcome.result()));
|
||||
else
|
||||
return CreateSceneOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::createSceneAsync(const CreateSceneRequest& request, const CreateSceneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createScene(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::CreateSceneOutcomeCallable TdsrClient::createSceneCallable(const CreateSceneRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSceneOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createScene(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::DeleteFileOutcome TdsrClient::deleteFile(const DeleteFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFileOutcome(DeleteFileResult(outcome.result()));
|
||||
else
|
||||
return DeleteFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::deleteFileAsync(const DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::DeleteFileOutcomeCallable TdsrClient::deleteFileCallable(const DeleteFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::DeleteProjectOutcome TdsrClient::deleteProject(const DeleteProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteProjectOutcome(DeleteProjectResult(outcome.result()));
|
||||
else
|
||||
return DeleteProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::DeleteProjectOutcomeCallable TdsrClient::deleteProjectCallable(const DeleteProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::GetHotspotConfigOutcome TdsrClient::getHotspotConfig(const GetHotspotConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetHotspotConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetHotspotConfigOutcome(GetHotspotConfigResult(outcome.result()));
|
||||
else
|
||||
return GetHotspotConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::getHotspotConfigAsync(const GetHotspotConfigRequest& request, const GetHotspotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getHotspotConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::GetHotspotConfigOutcomeCallable TdsrClient::getHotspotConfigCallable(const GetHotspotConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetHotspotConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getHotspotConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::GetHotspotTagOutcome TdsrClient::getHotspotTag(const GetHotspotTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetHotspotTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetHotspotTagOutcome(GetHotspotTagResult(outcome.result()));
|
||||
else
|
||||
return GetHotspotTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::getHotspotTagAsync(const GetHotspotTagRequest& request, const GetHotspotTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getHotspotTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::GetHotspotTagOutcomeCallable TdsrClient::getHotspotTagCallable(const GetHotspotTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetHotspotTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getHotspotTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::GetPolicyOutcome TdsrClient::getPolicy(const GetPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPolicyOutcome(GetPolicyResult(outcome.result()));
|
||||
else
|
||||
return GetPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::getPolicyAsync(const GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::GetPolicyOutcomeCallable TdsrClient::getPolicyCallable(const GetPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::GetSceneDataOutcome TdsrClient::getSceneData(const GetSceneDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSceneDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSceneDataOutcome(GetSceneDataResult(outcome.result()));
|
||||
else
|
||||
return GetSceneDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::getSceneDataAsync(const GetSceneDataRequest& request, const GetSceneDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSceneData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::GetSceneDataOutcomeCallable TdsrClient::getSceneDataCallable(const GetSceneDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSceneDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSceneData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::GetSceneListOutcome TdsrClient::getSceneList(const GetSceneListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSceneListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSceneListOutcome(GetSceneListResult(outcome.result()));
|
||||
else
|
||||
return GetSceneListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::getSceneListAsync(const GetSceneListRequest& request, const GetSceneListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSceneList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::GetSceneListOutcomeCallable TdsrClient::getSceneListCallable(const GetSceneListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSceneListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSceneList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::GetWindowConfigOutcome TdsrClient::getWindowConfig(const GetWindowConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetWindowConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetWindowConfigOutcome(GetWindowConfigResult(outcome.result()));
|
||||
else
|
||||
return GetWindowConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::getWindowConfigAsync(const GetWindowConfigRequest& request, const GetWindowConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getWindowConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::GetWindowConfigOutcomeCallable TdsrClient::getWindowConfigCallable(const GetWindowConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetWindowConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getWindowConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::ListMainScenesOutcome TdsrClient::listMainScenes(const ListMainScenesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMainScenesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMainScenesOutcome(ListMainScenesResult(outcome.result()));
|
||||
else
|
||||
return ListMainScenesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::listMainScenesAsync(const ListMainScenesRequest& request, const ListMainScenesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMainScenes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::ListMainScenesOutcomeCallable TdsrClient::listMainScenesCallable(const ListMainScenesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMainScenesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMainScenes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::ListScenesOutcome TdsrClient::listScenes(const ListScenesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListScenesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListScenesOutcome(ListScenesResult(outcome.result()));
|
||||
else
|
||||
return ListScenesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::listScenesAsync(const ListScenesRequest& request, const ListScenesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listScenes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::ListScenesOutcomeCallable TdsrClient::listScenesCallable(const ListScenesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListScenesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listScenes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::PublishHotspotOutcome TdsrClient::publishHotspot(const PublishHotspotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PublishHotspotOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PublishHotspotOutcome(PublishHotspotResult(outcome.result()));
|
||||
else
|
||||
return PublishHotspotOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::publishHotspotAsync(const PublishHotspotRequest& request, const PublishHotspotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, publishHotspot(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::PublishHotspotOutcomeCallable TdsrClient::publishHotspotCallable(const PublishHotspotRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PublishHotspotOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->publishHotspot(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::SaveFileOutcome TdsrClient::saveFile(const SaveFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveFileOutcome(SaveFileResult(outcome.result()));
|
||||
else
|
||||
return SaveFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::saveFileAsync(const SaveFileRequest& request, const SaveFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::SaveFileOutcomeCallable TdsrClient::saveFileCallable(const SaveFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::SaveHotspotConfigOutcome TdsrClient::saveHotspotConfig(const SaveHotspotConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveHotspotConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveHotspotConfigOutcome(SaveHotspotConfigResult(outcome.result()));
|
||||
else
|
||||
return SaveHotspotConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::saveHotspotConfigAsync(const SaveHotspotConfigRequest& request, const SaveHotspotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveHotspotConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::SaveHotspotConfigOutcomeCallable TdsrClient::saveHotspotConfigCallable(const SaveHotspotConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveHotspotConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveHotspotConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
TdsrClient::SaveHotspotTagOutcome TdsrClient::saveHotspotTag(const SaveHotspotTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveHotspotTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveHotspotTagOutcome(SaveHotspotTagResult(outcome.result()));
|
||||
else
|
||||
return SaveHotspotTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void TdsrClient::saveHotspotTagAsync(const SaveHotspotTagRequest& request, const SaveHotspotTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveHotspotTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
TdsrClient::SaveHotspotTagOutcomeCallable TdsrClient::saveHotspotTagCallable(const SaveHotspotTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveHotspotTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveHotspotTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
40
tdsr/src/model/CheckPermissionRequest.cc
Normal file
40
tdsr/src/model/CheckPermissionRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/CheckPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::CheckPermissionRequest;
|
||||
|
||||
CheckPermissionRequest::CheckPermissionRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "CheckPermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckPermissionRequest::~CheckPermissionRequest()
|
||||
{}
|
||||
|
||||
std::string CheckPermissionRequest::getAliyunId()const
|
||||
{
|
||||
return aliyunId_;
|
||||
}
|
||||
|
||||
void CheckPermissionRequest::setAliyunId(const std::string& aliyunId)
|
||||
{
|
||||
aliyunId_ = aliyunId;
|
||||
setParameter("AliyunId", aliyunId);
|
||||
}
|
||||
|
||||
58
tdsr/src/model/CheckPermissionResult.cc
Normal file
58
tdsr/src/model/CheckPermissionResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/tdsr/model/CheckPermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
CheckPermissionResult::CheckPermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckPermissionResult::CheckPermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckPermissionResult::~CheckPermissionResult()
|
||||
{}
|
||||
|
||||
void CheckPermissionResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckPermissionResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CheckPermissionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
183
tdsr/src/model/CheckResourceRequest.cc
Normal file
183
tdsr/src/model/CheckResourceRequest.cc
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* 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/tdsr/model/CheckResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::CheckResourceRequest;
|
||||
|
||||
CheckResourceRequest::CheckResourceRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "CheckResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckResourceRequest::~CheckResourceRequest()
|
||||
{}
|
||||
|
||||
std::string CheckResourceRequest::getCountry()const
|
||||
{
|
||||
return country_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setCountry(const std::string& country)
|
||||
{
|
||||
country_ = country;
|
||||
setParameter("Country", country);
|
||||
}
|
||||
|
||||
long CheckResourceRequest::getHid()const
|
||||
{
|
||||
return hid_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setHid(long hid)
|
||||
{
|
||||
hid_ = hid;
|
||||
setParameter("Hid", std::to_string(hid));
|
||||
}
|
||||
|
||||
long CheckResourceRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setLevel(long level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", std::to_string(level));
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getInvoker()const
|
||||
{
|
||||
return invoker_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setInvoker(const std::string& invoker)
|
||||
{
|
||||
invoker_ = invoker;
|
||||
setParameter("Invoker", invoker);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
}
|
||||
|
||||
bool CheckResourceRequest::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setSuccess(bool success)
|
||||
{
|
||||
success_ = success;
|
||||
setParameter("Success", success ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CheckResourceRequest::getInterrupt()const
|
||||
{
|
||||
return interrupt_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setInterrupt(bool interrupt)
|
||||
{
|
||||
interrupt_ = interrupt;
|
||||
setParameter("Interrupt", interrupt ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getGmtWakeup()const
|
||||
{
|
||||
return gmtWakeup_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setGmtWakeup(const std::string& gmtWakeup)
|
||||
{
|
||||
gmtWakeup_ = gmtWakeup;
|
||||
setParameter("GmtWakeup", gmtWakeup);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getPk()const
|
||||
{
|
||||
return pk_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setPk(const std::string& pk)
|
||||
{
|
||||
pk_ = pk;
|
||||
setParameter("Pk", pk);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setParameter("Bid", bid);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getPrompt()const
|
||||
{
|
||||
return prompt_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setPrompt(const std::string& prompt)
|
||||
{
|
||||
prompt_ = prompt;
|
||||
setParameter("Prompt", prompt);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getTaskExtraData()const
|
||||
{
|
||||
return taskExtraData_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setTaskExtraData(const std::string& taskExtraData)
|
||||
{
|
||||
taskExtraData_ = taskExtraData;
|
||||
setParameter("TaskExtraData", taskExtraData);
|
||||
}
|
||||
|
||||
std::string CheckResourceRequest::getTaskIdentifier()const
|
||||
{
|
||||
return taskIdentifier_;
|
||||
}
|
||||
|
||||
void CheckResourceRequest::setTaskIdentifier(const std::string& taskIdentifier)
|
||||
{
|
||||
taskIdentifier_ = taskIdentifier;
|
||||
setParameter("TaskIdentifier", taskIdentifier);
|
||||
}
|
||||
|
||||
142
tdsr/src/model/CheckResourceResult.cc
Normal file
142
tdsr/src/model/CheckResourceResult.cc
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* 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/tdsr/model/CheckResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
CheckResourceResult::CheckResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckResourceResult::CheckResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckResourceResult::~CheckResourceResult()
|
||||
{}
|
||||
|
||||
void CheckResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Interrupt"].isNull())
|
||||
interrupt_ = value["Interrupt"].asString() == "true";
|
||||
if(!value["Invoker"].isNull())
|
||||
invoker_ = value["Invoker"].asString();
|
||||
if(!value["Pk"].isNull())
|
||||
pk_ = value["Pk"].asString();
|
||||
if(!value["Bid"].isNull())
|
||||
bid_ = value["Bid"].asString();
|
||||
if(!value["Hid"].isNull())
|
||||
hid_ = std::stol(value["Hid"].asString());
|
||||
if(!value["Country"].isNull())
|
||||
country_ = value["Country"].asString();
|
||||
if(!value["TaskIdentifier"].isNull())
|
||||
taskIdentifier_ = value["TaskIdentifier"].asString();
|
||||
if(!value["TaskExtraData"].isNull())
|
||||
taskExtraData_ = value["TaskExtraData"].asString();
|
||||
if(!value["GmtWakeup"].isNull())
|
||||
gmtWakeup_ = value["GmtWakeup"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
level_ = std::stol(value["Level"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
if(!value["Prompt"].isNull())
|
||||
prompt_ = value["Prompt"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getGmtWakeup()const
|
||||
{
|
||||
return gmtWakeup_;
|
||||
}
|
||||
|
||||
long CheckResourceResult::getHid()const
|
||||
{
|
||||
return hid_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getTaskIdentifier()const
|
||||
{
|
||||
return taskIdentifier_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool CheckResourceResult::getInterrupt()const
|
||||
{
|
||||
return interrupt_;
|
||||
}
|
||||
|
||||
bool CheckResourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getInvoker()const
|
||||
{
|
||||
return invoker_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getTaskExtraData()const
|
||||
{
|
||||
return taskExtraData_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getCountry()const
|
||||
{
|
||||
return country_;
|
||||
}
|
||||
|
||||
long CheckResourceResult::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getPrompt()const
|
||||
{
|
||||
return prompt_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getPk()const
|
||||
{
|
||||
return pk_;
|
||||
}
|
||||
|
||||
std::string CheckResourceResult::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
84
tdsr/src/model/CreateProjectRequest.cc
Normal file
84
tdsr/src/model/CreateProjectRequest.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/tdsr/model/CreateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::CreateProjectRequest;
|
||||
|
||||
CreateProjectRequest::CreateProjectRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "CreateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProjectRequest::~CreateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProjectRequest::getBusinessUserIdList()const
|
||||
{
|
||||
return businessUserIdList_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setBusinessUserIdList(const std::string& businessUserIdList)
|
||||
{
|
||||
businessUserIdList_ = businessUserIdList;
|
||||
setParameter("BusinessUserIdList", businessUserIdList);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getBuilderUserIdList()const
|
||||
{
|
||||
return builderUserIdList_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setBuilderUserIdList(const std::string& builderUserIdList)
|
||||
{
|
||||
builderUserIdList_ = builderUserIdList;
|
||||
setParameter("BuilderUserIdList", builderUserIdList);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getBusinessId()const
|
||||
{
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setBusinessId(const std::string& businessId)
|
||||
{
|
||||
businessId_ = businessId;
|
||||
setParameter("BusinessId", businessId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getGatherUserIdList()const
|
||||
{
|
||||
return gatherUserIdList_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setGatherUserIdList(const std::string& gatherUserIdList)
|
||||
{
|
||||
gatherUserIdList_ = gatherUserIdList;
|
||||
setParameter("GatherUserIdList", gatherUserIdList);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/CreateProjectResult.cc
Normal file
72
tdsr/src/model/CreateProjectResult.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/tdsr/model/CreateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
CreateProjectResult::CreateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectResult::CreateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectResult::~CreateProjectResult()
|
||||
{}
|
||||
|
||||
void CreateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
long CreateProjectResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CreateProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/CreateSceneRequest.cc
Normal file
51
tdsr/src/model/CreateSceneRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/CreateSceneRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::CreateSceneRequest;
|
||||
|
||||
CreateSceneRequest::CreateSceneRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "CreateScene")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSceneRequest::~CreateSceneRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSceneRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateSceneRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateSceneRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateSceneRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/CreateSceneResult.cc
Normal file
72
tdsr/src/model/CreateSceneResult.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/tdsr/model/CreateSceneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
CreateSceneResult::CreateSceneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSceneResult::CreateSceneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSceneResult::~CreateSceneResult()
|
||||
{}
|
||||
|
||||
void CreateSceneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SceneId"].isNull())
|
||||
sceneId_ = std::stol(value["SceneId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["PreviewToken"].isNull())
|
||||
previewToken_ = value["PreviewToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
long CreateSceneResult::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
std::string CreateSceneResult::getPreviewToken()const
|
||||
{
|
||||
return previewToken_;
|
||||
}
|
||||
|
||||
std::string CreateSceneResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CreateSceneResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/DeleteFileRequest.cc
Normal file
51
tdsr/src/model/DeleteFileRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/DeleteFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::DeleteFileRequest;
|
||||
|
||||
DeleteFileRequest::DeleteFileRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "DeleteFile")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFileRequest::~DeleteFileRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFileRequest::getSubSceneUuid()const
|
||||
{
|
||||
return subSceneUuid_;
|
||||
}
|
||||
|
||||
void DeleteFileRequest::setSubSceneUuid(const std::string& subSceneUuid)
|
||||
{
|
||||
subSceneUuid_ = subSceneUuid;
|
||||
setParameter("SubSceneUuid", subSceneUuid);
|
||||
}
|
||||
|
||||
std::string DeleteFileRequest::getParamFile()const
|
||||
{
|
||||
return paramFile_;
|
||||
}
|
||||
|
||||
void DeleteFileRequest::setParamFile(const std::string& paramFile)
|
||||
{
|
||||
paramFile_ = paramFile;
|
||||
setParameter("ParamFile", paramFile);
|
||||
}
|
||||
|
||||
58
tdsr/src/model/DeleteFileResult.cc
Normal file
58
tdsr/src/model/DeleteFileResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/tdsr/model/DeleteFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
DeleteFileResult::DeleteFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFileResult::DeleteFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFileResult::~DeleteFileResult()
|
||||
{}
|
||||
|
||||
void DeleteFileResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteFileResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DeleteFileResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
tdsr/src/model/DeleteProjectRequest.cc
Normal file
40
tdsr/src/model/DeleteProjectRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/DeleteProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::DeleteProjectRequest;
|
||||
|
||||
DeleteProjectRequest::DeleteProjectRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "DeleteProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteProjectRequest::~DeleteProjectRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
58
tdsr/src/model/DeleteProjectResult.cc
Normal file
58
tdsr/src/model/DeleteProjectResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/tdsr/model/DeleteProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProjectResult::~DeleteProjectResult()
|
||||
{}
|
||||
|
||||
void DeleteProjectResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteProjectResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DeleteProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
tdsr/src/model/GetHotspotConfigRequest.cc
Normal file
40
tdsr/src/model/GetHotspotConfigRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/GetHotspotConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::GetHotspotConfigRequest;
|
||||
|
||||
GetHotspotConfigRequest::GetHotspotConfigRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "GetHotspotConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHotspotConfigRequest::~GetHotspotConfigRequest()
|
||||
{}
|
||||
|
||||
std::string GetHotspotConfigRequest::getPreviewToken()const
|
||||
{
|
||||
return previewToken_;
|
||||
}
|
||||
|
||||
void GetHotspotConfigRequest::setPreviewToken(const std::string& previewToken)
|
||||
{
|
||||
previewToken_ = previewToken;
|
||||
setParameter("PreviewToken", previewToken);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/GetHotspotConfigResult.cc
Normal file
72
tdsr/src/model/GetHotspotConfigResult.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/tdsr/model/GetHotspotConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
GetHotspotConfigResult::GetHotspotConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHotspotConfigResult::GetHotspotConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHotspotConfigResult::~GetHotspotConfigResult()
|
||||
{}
|
||||
|
||||
void GetHotspotConfigResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetHotspotConfigResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string GetHotspotConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetHotspotConfigResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool GetHotspotConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
tdsr/src/model/GetHotspotTagRequest.cc
Normal file
62
tdsr/src/model/GetHotspotTagRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/tdsr/model/GetHotspotTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::GetHotspotTagRequest;
|
||||
|
||||
GetHotspotTagRequest::GetHotspotTagRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "GetHotspotTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHotspotTagRequest::~GetHotspotTagRequest()
|
||||
{}
|
||||
|
||||
std::string GetHotspotTagRequest::getSubSceneUuid()const
|
||||
{
|
||||
return subSceneUuid_;
|
||||
}
|
||||
|
||||
void GetHotspotTagRequest::setSubSceneUuid(const std::string& subSceneUuid)
|
||||
{
|
||||
subSceneUuid_ = subSceneUuid;
|
||||
setParameter("SubSceneUuid", subSceneUuid);
|
||||
}
|
||||
|
||||
std::string GetHotspotTagRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetHotspotTagRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string GetHotspotTagRequest::getPreviewToken()const
|
||||
{
|
||||
return previewToken_;
|
||||
}
|
||||
|
||||
void GetHotspotTagRequest::setPreviewToken(const std::string& previewToken)
|
||||
{
|
||||
previewToken_ = previewToken;
|
||||
setParameter("PreviewToken", previewToken);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/GetHotspotTagResult.cc
Normal file
72
tdsr/src/model/GetHotspotTagResult.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/tdsr/model/GetHotspotTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
GetHotspotTagResult::GetHotspotTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHotspotTagResult::GetHotspotTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHotspotTagResult::~GetHotspotTagResult()
|
||||
{}
|
||||
|
||||
void GetHotspotTagResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetHotspotTagResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string GetHotspotTagResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetHotspotTagResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool GetHotspotTagResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/GetPolicyRequest.cc
Normal file
51
tdsr/src/model/GetPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/GetPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::GetPolicyRequest;
|
||||
|
||||
GetPolicyRequest::GetPolicyRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "GetPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPolicyRequest::~GetPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string GetPolicyRequest::getSubSceneUuid()const
|
||||
{
|
||||
return subSceneUuid_;
|
||||
}
|
||||
|
||||
void GetPolicyRequest::setSubSceneUuid(const std::string& subSceneUuid)
|
||||
{
|
||||
subSceneUuid_ = subSceneUuid;
|
||||
setParameter("SubSceneUuid", subSceneUuid);
|
||||
}
|
||||
|
||||
std::string GetPolicyRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetPolicyRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/GetPolicyResult.cc
Normal file
72
tdsr/src/model/GetPolicyResult.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/tdsr/model/GetPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
GetPolicyResult::GetPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPolicyResult::GetPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPolicyResult::~GetPolicyResult()
|
||||
{}
|
||||
|
||||
void GetPolicyResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPolicyResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string GetPolicyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetPolicyResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool GetPolicyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
tdsr/src/model/GetSceneDataRequest.cc
Normal file
40
tdsr/src/model/GetSceneDataRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/GetSceneDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::GetSceneDataRequest;
|
||||
|
||||
GetSceneDataRequest::GetSceneDataRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "GetSceneData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSceneDataRequest::~GetSceneDataRequest()
|
||||
{}
|
||||
|
||||
std::string GetSceneDataRequest::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
void GetSceneDataRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setParameter("Token", token);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/GetSceneDataResult.cc
Normal file
72
tdsr/src/model/GetSceneDataResult.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/tdsr/model/GetSceneDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
GetSceneDataResult::GetSceneDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSceneDataResult::GetSceneDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSceneDataResult::~GetSceneDataResult()
|
||||
{}
|
||||
|
||||
void GetSceneDataResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSceneDataResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string GetSceneDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetSceneDataResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool GetSceneDataResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
tdsr/src/model/GetSceneListRequest.cc
Normal file
40
tdsr/src/model/GetSceneListRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/GetSceneListRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::GetSceneListRequest;
|
||||
|
||||
GetSceneListRequest::GetSceneListRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "GetSceneList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSceneListRequest::~GetSceneListRequest()
|
||||
{}
|
||||
|
||||
std::string GetSceneListRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void GetSceneListRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
65
tdsr/src/model/GetSceneListResult.cc
Normal file
65
tdsr/src/model/GetSceneListResult.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/tdsr/model/GetSceneListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
GetSceneListResult::GetSceneListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSceneListResult::GetSceneListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSceneListResult::~GetSceneListResult()
|
||||
{}
|
||||
|
||||
void GetSceneListResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSceneListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetSceneListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool GetSceneListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
tdsr/src/model/GetWindowConfigRequest.cc
Normal file
40
tdsr/src/model/GetWindowConfigRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/GetWindowConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::GetWindowConfigRequest;
|
||||
|
||||
GetWindowConfigRequest::GetWindowConfigRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "GetWindowConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetWindowConfigRequest::~GetWindowConfigRequest()
|
||||
{}
|
||||
|
||||
std::string GetWindowConfigRequest::getPreviewToken()const
|
||||
{
|
||||
return previewToken_;
|
||||
}
|
||||
|
||||
void GetWindowConfigRequest::setPreviewToken(const std::string& previewToken)
|
||||
{
|
||||
previewToken_ = previewToken;
|
||||
setParameter("PreviewToken", previewToken);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/GetWindowConfigResult.cc
Normal file
72
tdsr/src/model/GetWindowConfigResult.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/tdsr/model/GetWindowConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
GetWindowConfigResult::GetWindowConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetWindowConfigResult::GetWindowConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetWindowConfigResult::~GetWindowConfigResult()
|
||||
{}
|
||||
|
||||
void GetWindowConfigResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetWindowConfigResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string GetWindowConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetWindowConfigResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool GetWindowConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
tdsr/src/model/ListMainScenesRequest.cc
Normal file
40
tdsr/src/model/ListMainScenesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/tdsr/model/ListMainScenesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::ListMainScenesRequest;
|
||||
|
||||
ListMainScenesRequest::ListMainScenesRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "ListMainScenes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMainScenesRequest::~ListMainScenesRequest()
|
||||
{}
|
||||
|
||||
std::string ListMainScenesRequest::getQueryName()const
|
||||
{
|
||||
return queryName_;
|
||||
}
|
||||
|
||||
void ListMainScenesRequest::setQueryName(const std::string& queryName)
|
||||
{
|
||||
queryName_ = queryName;
|
||||
setParameter("QueryName", queryName);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/ListMainScenesResult.cc
Normal file
72
tdsr/src/model/ListMainScenesResult.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/tdsr/model/ListMainScenesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
ListMainScenesResult::ListMainScenesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMainScenesResult::ListMainScenesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMainScenesResult::~ListMainScenesResult()
|
||||
{}
|
||||
|
||||
void ListMainScenesResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListMainScenesResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string ListMainScenesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListMainScenesResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool ListMainScenesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/ListScenesRequest.cc
Normal file
51
tdsr/src/model/ListScenesRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/ListScenesRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::ListScenesRequest;
|
||||
|
||||
ListScenesRequest::ListScenesRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "ListScenes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListScenesRequest::~ListScenesRequest()
|
||||
{}
|
||||
|
||||
std::string ListScenesRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListScenesRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
bool ListScenesRequest::getIsPublishQuery()const
|
||||
{
|
||||
return isPublishQuery_;
|
||||
}
|
||||
|
||||
void ListScenesRequest::setIsPublishQuery(bool isPublishQuery)
|
||||
{
|
||||
isPublishQuery_ = isPublishQuery;
|
||||
setParameter("IsPublishQuery", isPublishQuery ? "true" : "false");
|
||||
}
|
||||
|
||||
71
tdsr/src/model/ListScenesResult.cc
Normal file
71
tdsr/src/model/ListScenesResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/tdsr/model/ListScenesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
ListScenesResult::ListScenesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListScenesResult::ListScenesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListScenesResult::~ListScenesResult()
|
||||
{}
|
||||
|
||||
void ListScenesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["SceneId"].isNull())
|
||||
dataObject.sceneId = valueDataDataItem["SceneId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListScenesResult::DataItem> ListScenesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListScenesResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool ListScenesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/PublishHotspotRequest.cc
Normal file
51
tdsr/src/model/PublishHotspotRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/PublishHotspotRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::PublishHotspotRequest;
|
||||
|
||||
PublishHotspotRequest::PublishHotspotRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "PublishHotspot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PublishHotspotRequest::~PublishHotspotRequest()
|
||||
{}
|
||||
|
||||
std::string PublishHotspotRequest::getSubSceneUuid()const
|
||||
{
|
||||
return subSceneUuid_;
|
||||
}
|
||||
|
||||
void PublishHotspotRequest::setSubSceneUuid(const std::string& subSceneUuid)
|
||||
{
|
||||
subSceneUuid_ = subSceneUuid;
|
||||
setParameter("SubSceneUuid", subSceneUuid);
|
||||
}
|
||||
|
||||
std::string PublishHotspotRequest::getParamTag()const
|
||||
{
|
||||
return paramTag_;
|
||||
}
|
||||
|
||||
void PublishHotspotRequest::setParamTag(const std::string& paramTag)
|
||||
{
|
||||
paramTag_ = paramTag;
|
||||
setParameter("ParamTag", paramTag);
|
||||
}
|
||||
|
||||
65
tdsr/src/model/PublishHotspotResult.cc
Normal file
65
tdsr/src/model/PublishHotspotResult.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/tdsr/model/PublishHotspotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
PublishHotspotResult::PublishHotspotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PublishHotspotResult::PublishHotspotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PublishHotspotResult::~PublishHotspotResult()
|
||||
{}
|
||||
|
||||
void PublishHotspotResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PublishHotspotResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PublishHotspotResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool PublishHotspotResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/SaveFileRequest.cc
Normal file
51
tdsr/src/model/SaveFileRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/SaveFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::SaveFileRequest;
|
||||
|
||||
SaveFileRequest::SaveFileRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "SaveFile")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SaveFileRequest::~SaveFileRequest()
|
||||
{}
|
||||
|
||||
std::string SaveFileRequest::getSubSceneUuid()const
|
||||
{
|
||||
return subSceneUuid_;
|
||||
}
|
||||
|
||||
void SaveFileRequest::setSubSceneUuid(const std::string& subSceneUuid)
|
||||
{
|
||||
subSceneUuid_ = subSceneUuid;
|
||||
setParameter("SubSceneUuid", subSceneUuid);
|
||||
}
|
||||
|
||||
std::string SaveFileRequest::getParamFile()const
|
||||
{
|
||||
return paramFile_;
|
||||
}
|
||||
|
||||
void SaveFileRequest::setParamFile(const std::string& paramFile)
|
||||
{
|
||||
paramFile_ = paramFile;
|
||||
setParameter("ParamFile", paramFile);
|
||||
}
|
||||
|
||||
72
tdsr/src/model/SaveFileResult.cc
Normal file
72
tdsr/src/model/SaveFileResult.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/tdsr/model/SaveFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
SaveFileResult::SaveFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SaveFileResult::SaveFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SaveFileResult::~SaveFileResult()
|
||||
{}
|
||||
|
||||
void SaveFileResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ObjectString"].isNull())
|
||||
objectString_ = value["ObjectString"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SaveFileResult::getObjectString()const
|
||||
{
|
||||
return objectString_;
|
||||
}
|
||||
|
||||
std::string SaveFileResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SaveFileResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool SaveFileResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/SaveHotspotConfigRequest.cc
Normal file
51
tdsr/src/model/SaveHotspotConfigRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/SaveHotspotConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::SaveHotspotConfigRequest;
|
||||
|
||||
SaveHotspotConfigRequest::SaveHotspotConfigRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "SaveHotspotConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SaveHotspotConfigRequest::~SaveHotspotConfigRequest()
|
||||
{}
|
||||
|
||||
std::string SaveHotspotConfigRequest::getPreviewToken()const
|
||||
{
|
||||
return previewToken_;
|
||||
}
|
||||
|
||||
void SaveHotspotConfigRequest::setPreviewToken(const std::string& previewToken)
|
||||
{
|
||||
previewToken_ = previewToken;
|
||||
setParameter("PreviewToken", previewToken);
|
||||
}
|
||||
|
||||
std::string SaveHotspotConfigRequest::getParamTag()const
|
||||
{
|
||||
return paramTag_;
|
||||
}
|
||||
|
||||
void SaveHotspotConfigRequest::setParamTag(const std::string& paramTag)
|
||||
{
|
||||
paramTag_ = paramTag;
|
||||
setParameter("ParamTag", paramTag);
|
||||
}
|
||||
|
||||
58
tdsr/src/model/SaveHotspotConfigResult.cc
Normal file
58
tdsr/src/model/SaveHotspotConfigResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/tdsr/model/SaveHotspotConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
SaveHotspotConfigResult::SaveHotspotConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SaveHotspotConfigResult::SaveHotspotConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SaveHotspotConfigResult::~SaveHotspotConfigResult()
|
||||
{}
|
||||
|
||||
void SaveHotspotConfigResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SaveHotspotConfigResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool SaveHotspotConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
tdsr/src/model/SaveHotspotTagRequest.cc
Normal file
51
tdsr/src/model/SaveHotspotTagRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/tdsr/model/SaveHotspotTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Tdsr::Model::SaveHotspotTagRequest;
|
||||
|
||||
SaveHotspotTagRequest::SaveHotspotTagRequest() :
|
||||
RpcServiceRequest("tdsr", "2020-01-01", "SaveHotspotTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SaveHotspotTagRequest::~SaveHotspotTagRequest()
|
||||
{}
|
||||
|
||||
std::string SaveHotspotTagRequest::getSubSceneUuid()const
|
||||
{
|
||||
return subSceneUuid_;
|
||||
}
|
||||
|
||||
void SaveHotspotTagRequest::setSubSceneUuid(const std::string& subSceneUuid)
|
||||
{
|
||||
subSceneUuid_ = subSceneUuid;
|
||||
setParameter("SubSceneUuid", subSceneUuid);
|
||||
}
|
||||
|
||||
std::string SaveHotspotTagRequest::getParamTag()const
|
||||
{
|
||||
return paramTag_;
|
||||
}
|
||||
|
||||
void SaveHotspotTagRequest::setParamTag(const std::string& paramTag)
|
||||
{
|
||||
paramTag_ = paramTag;
|
||||
setParameter("ParamTag", paramTag);
|
||||
}
|
||||
|
||||
58
tdsr/src/model/SaveHotspotTagResult.cc
Normal file
58
tdsr/src/model/SaveHotspotTagResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/tdsr/model/SaveHotspotTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Tdsr;
|
||||
using namespace AlibabaCloud::Tdsr::Model;
|
||||
|
||||
SaveHotspotTagResult::SaveHotspotTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SaveHotspotTagResult::SaveHotspotTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SaveHotspotTagResult::~SaveHotspotTagResult()
|
||||
{}
|
||||
|
||||
void SaveHotspotTagResult::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["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SaveHotspotTagResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool SaveHotspotTagResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user