Supported backend interface for ICBU.

This commit is contained in:
sdk-team
2020-09-08 08:39:04 +00:00
parent 716769a300
commit 565bfada36
77 changed files with 5347 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
2020-09-08 Version: patch
- Supported backend interface for ICBU.
2020-09-08 Version: patch 2020-09-08 Version: patch
- Add DescribeActiveOperationTask. - Add DescribeActiveOperationTask.
- Add DescribeActiveOperationTaskCount. - Add DescribeActiveOperationTaskCount.

154
tdsr/CMakeLists.txt Normal file
View File

@@ -0,0 +1,154 @@
#
# 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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(tdsr_public_header
include/alibabacloud/tdsr/TdsrClient.h
include/alibabacloud/tdsr/TdsrExport.h )
set(tdsr_public_header_model
include/alibabacloud/tdsr/model/CheckPermissionRequest.h
include/alibabacloud/tdsr/model/CheckPermissionResult.h
include/alibabacloud/tdsr/model/CheckResourceRequest.h
include/alibabacloud/tdsr/model/CheckResourceResult.h
include/alibabacloud/tdsr/model/CreateProjectRequest.h
include/alibabacloud/tdsr/model/CreateProjectResult.h
include/alibabacloud/tdsr/model/CreateSceneRequest.h
include/alibabacloud/tdsr/model/CreateSceneResult.h
include/alibabacloud/tdsr/model/DeleteFileRequest.h
include/alibabacloud/tdsr/model/DeleteFileResult.h
include/alibabacloud/tdsr/model/DeleteProjectRequest.h
include/alibabacloud/tdsr/model/DeleteProjectResult.h
include/alibabacloud/tdsr/model/GetHotspotConfigRequest.h
include/alibabacloud/tdsr/model/GetHotspotConfigResult.h
include/alibabacloud/tdsr/model/GetHotspotTagRequest.h
include/alibabacloud/tdsr/model/GetHotspotTagResult.h
include/alibabacloud/tdsr/model/GetPolicyRequest.h
include/alibabacloud/tdsr/model/GetPolicyResult.h
include/alibabacloud/tdsr/model/GetSceneDataRequest.h
include/alibabacloud/tdsr/model/GetSceneDataResult.h
include/alibabacloud/tdsr/model/GetSceneListRequest.h
include/alibabacloud/tdsr/model/GetSceneListResult.h
include/alibabacloud/tdsr/model/GetWindowConfigRequest.h
include/alibabacloud/tdsr/model/GetWindowConfigResult.h
include/alibabacloud/tdsr/model/ListMainScenesRequest.h
include/alibabacloud/tdsr/model/ListMainScenesResult.h
include/alibabacloud/tdsr/model/ListScenesRequest.h
include/alibabacloud/tdsr/model/ListScenesResult.h
include/alibabacloud/tdsr/model/PublishHotspotRequest.h
include/alibabacloud/tdsr/model/PublishHotspotResult.h
include/alibabacloud/tdsr/model/SaveFileRequest.h
include/alibabacloud/tdsr/model/SaveFileResult.h
include/alibabacloud/tdsr/model/SaveHotspotConfigRequest.h
include/alibabacloud/tdsr/model/SaveHotspotConfigResult.h
include/alibabacloud/tdsr/model/SaveHotspotTagRequest.h
include/alibabacloud/tdsr/model/SaveHotspotTagResult.h )
set(tdsr_src
src/TdsrClient.cc
src/model/CheckPermissionRequest.cc
src/model/CheckPermissionResult.cc
src/model/CheckResourceRequest.cc
src/model/CheckResourceResult.cc
src/model/CreateProjectRequest.cc
src/model/CreateProjectResult.cc
src/model/CreateSceneRequest.cc
src/model/CreateSceneResult.cc
src/model/DeleteFileRequest.cc
src/model/DeleteFileResult.cc
src/model/DeleteProjectRequest.cc
src/model/DeleteProjectResult.cc
src/model/GetHotspotConfigRequest.cc
src/model/GetHotspotConfigResult.cc
src/model/GetHotspotTagRequest.cc
src/model/GetHotspotTagResult.cc
src/model/GetPolicyRequest.cc
src/model/GetPolicyResult.cc
src/model/GetSceneDataRequest.cc
src/model/GetSceneDataResult.cc
src/model/GetSceneListRequest.cc
src/model/GetSceneListResult.cc
src/model/GetWindowConfigRequest.cc
src/model/GetWindowConfigResult.cc
src/model/ListMainScenesRequest.cc
src/model/ListMainScenesResult.cc
src/model/ListScenesRequest.cc
src/model/ListScenesResult.cc
src/model/PublishHotspotRequest.cc
src/model/PublishHotspotResult.cc
src/model/SaveFileRequest.cc
src/model/SaveFileResult.cc
src/model/SaveHotspotConfigRequest.cc
src/model/SaveHotspotConfigResult.cc
src/model/SaveHotspotTagRequest.cc
src/model/SaveHotspotTagResult.cc )
add_library(tdsr ${LIB_TYPE}
${tdsr_public_header}
${tdsr_public_header_model}
${tdsr_src})
set_target_properties(tdsr
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}tdsr
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(tdsr
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_TDSR_LIBRARY)
endif()
target_include_directories(tdsr
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(tdsr
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(tdsr
jsoncpp)
target_include_directories(tdsr
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(tdsr
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(tdsr
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(tdsr
PRIVATE /usr/include/jsoncpp)
target_link_libraries(tdsr
jsoncpp)
endif()
install(FILES ${tdsr_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/tdsr)
install(FILES ${tdsr_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/tdsr/model)
install(TARGETS tdsr
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,190 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_TDSRCLIENT_H_
#define ALIBABACLOUD_TDSR_TDSRCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "TdsrExport.h"
#include "model/CheckPermissionRequest.h"
#include "model/CheckPermissionResult.h"
#include "model/CheckResourceRequest.h"
#include "model/CheckResourceResult.h"
#include "model/CreateProjectRequest.h"
#include "model/CreateProjectResult.h"
#include "model/CreateSceneRequest.h"
#include "model/CreateSceneResult.h"
#include "model/DeleteFileRequest.h"
#include "model/DeleteFileResult.h"
#include "model/DeleteProjectRequest.h"
#include "model/DeleteProjectResult.h"
#include "model/GetHotspotConfigRequest.h"
#include "model/GetHotspotConfigResult.h"
#include "model/GetHotspotTagRequest.h"
#include "model/GetHotspotTagResult.h"
#include "model/GetPolicyRequest.h"
#include "model/GetPolicyResult.h"
#include "model/GetSceneDataRequest.h"
#include "model/GetSceneDataResult.h"
#include "model/GetSceneListRequest.h"
#include "model/GetSceneListResult.h"
#include "model/GetWindowConfigRequest.h"
#include "model/GetWindowConfigResult.h"
#include "model/ListMainScenesRequest.h"
#include "model/ListMainScenesResult.h"
#include "model/ListScenesRequest.h"
#include "model/ListScenesResult.h"
#include "model/PublishHotspotRequest.h"
#include "model/PublishHotspotResult.h"
#include "model/SaveFileRequest.h"
#include "model/SaveFileResult.h"
#include "model/SaveHotspotConfigRequest.h"
#include "model/SaveHotspotConfigResult.h"
#include "model/SaveHotspotTagRequest.h"
#include "model/SaveHotspotTagResult.h"
namespace AlibabaCloud
{
namespace Tdsr
{
class ALIBABACLOUD_TDSR_EXPORT TdsrClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CheckPermissionResult> CheckPermissionOutcome;
typedef std::future<CheckPermissionOutcome> CheckPermissionOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::CheckPermissionRequest&, const CheckPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckPermissionAsyncHandler;
typedef Outcome<Error, Model::CheckResourceResult> CheckResourceOutcome;
typedef std::future<CheckResourceOutcome> CheckResourceOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::CheckResourceRequest&, const CheckResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckResourceAsyncHandler;
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
typedef Outcome<Error, Model::CreateSceneResult> CreateSceneOutcome;
typedef std::future<CreateSceneOutcome> CreateSceneOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::CreateSceneRequest&, const CreateSceneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSceneAsyncHandler;
typedef Outcome<Error, Model::DeleteFileResult> DeleteFileOutcome;
typedef std::future<DeleteFileOutcome> DeleteFileOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::DeleteFileRequest&, const DeleteFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFileAsyncHandler;
typedef Outcome<Error, Model::DeleteProjectResult> DeleteProjectOutcome;
typedef std::future<DeleteProjectOutcome> DeleteProjectOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::DeleteProjectRequest&, const DeleteProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProjectAsyncHandler;
typedef Outcome<Error, Model::GetHotspotConfigResult> GetHotspotConfigOutcome;
typedef std::future<GetHotspotConfigOutcome> GetHotspotConfigOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::GetHotspotConfigRequest&, const GetHotspotConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHotspotConfigAsyncHandler;
typedef Outcome<Error, Model::GetHotspotTagResult> GetHotspotTagOutcome;
typedef std::future<GetHotspotTagOutcome> GetHotspotTagOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::GetHotspotTagRequest&, const GetHotspotTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHotspotTagAsyncHandler;
typedef Outcome<Error, Model::GetPolicyResult> GetPolicyOutcome;
typedef std::future<GetPolicyOutcome> GetPolicyOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::GetPolicyRequest&, const GetPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPolicyAsyncHandler;
typedef Outcome<Error, Model::GetSceneDataResult> GetSceneDataOutcome;
typedef std::future<GetSceneDataOutcome> GetSceneDataOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::GetSceneDataRequest&, const GetSceneDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSceneDataAsyncHandler;
typedef Outcome<Error, Model::GetSceneListResult> GetSceneListOutcome;
typedef std::future<GetSceneListOutcome> GetSceneListOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::GetSceneListRequest&, const GetSceneListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSceneListAsyncHandler;
typedef Outcome<Error, Model::GetWindowConfigResult> GetWindowConfigOutcome;
typedef std::future<GetWindowConfigOutcome> GetWindowConfigOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::GetWindowConfigRequest&, const GetWindowConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWindowConfigAsyncHandler;
typedef Outcome<Error, Model::ListMainScenesResult> ListMainScenesOutcome;
typedef std::future<ListMainScenesOutcome> ListMainScenesOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::ListMainScenesRequest&, const ListMainScenesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMainScenesAsyncHandler;
typedef Outcome<Error, Model::ListScenesResult> ListScenesOutcome;
typedef std::future<ListScenesOutcome> ListScenesOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::ListScenesRequest&, const ListScenesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScenesAsyncHandler;
typedef Outcome<Error, Model::PublishHotspotResult> PublishHotspotOutcome;
typedef std::future<PublishHotspotOutcome> PublishHotspotOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::PublishHotspotRequest&, const PublishHotspotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishHotspotAsyncHandler;
typedef Outcome<Error, Model::SaveFileResult> SaveFileOutcome;
typedef std::future<SaveFileOutcome> SaveFileOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::SaveFileRequest&, const SaveFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveFileAsyncHandler;
typedef Outcome<Error, Model::SaveHotspotConfigResult> SaveHotspotConfigOutcome;
typedef std::future<SaveHotspotConfigOutcome> SaveHotspotConfigOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::SaveHotspotConfigRequest&, const SaveHotspotConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveHotspotConfigAsyncHandler;
typedef Outcome<Error, Model::SaveHotspotTagResult> SaveHotspotTagOutcome;
typedef std::future<SaveHotspotTagOutcome> SaveHotspotTagOutcomeCallable;
typedef std::function<void(const TdsrClient*, const Model::SaveHotspotTagRequest&, const SaveHotspotTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveHotspotTagAsyncHandler;
TdsrClient(const Credentials &credentials, const ClientConfiguration &configuration);
TdsrClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
TdsrClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~TdsrClient();
CheckPermissionOutcome checkPermission(const Model::CheckPermissionRequest &request)const;
void checkPermissionAsync(const Model::CheckPermissionRequest& request, const CheckPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckPermissionOutcomeCallable checkPermissionCallable(const Model::CheckPermissionRequest& request) const;
CheckResourceOutcome checkResource(const Model::CheckResourceRequest &request)const;
void checkResourceAsync(const Model::CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckResourceOutcomeCallable checkResourceCallable(const Model::CheckResourceRequest& request) const;
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
CreateSceneOutcome createScene(const Model::CreateSceneRequest &request)const;
void createSceneAsync(const Model::CreateSceneRequest& request, const CreateSceneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSceneOutcomeCallable createSceneCallable(const Model::CreateSceneRequest& request) const;
DeleteFileOutcome deleteFile(const Model::DeleteFileRequest &request)const;
void deleteFileAsync(const Model::DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFileOutcomeCallable deleteFileCallable(const Model::DeleteFileRequest& request) const;
DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const;
void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const;
GetHotspotConfigOutcome getHotspotConfig(const Model::GetHotspotConfigRequest &request)const;
void getHotspotConfigAsync(const Model::GetHotspotConfigRequest& request, const GetHotspotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetHotspotConfigOutcomeCallable getHotspotConfigCallable(const Model::GetHotspotConfigRequest& request) const;
GetHotspotTagOutcome getHotspotTag(const Model::GetHotspotTagRequest &request)const;
void getHotspotTagAsync(const Model::GetHotspotTagRequest& request, const GetHotspotTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetHotspotTagOutcomeCallable getHotspotTagCallable(const Model::GetHotspotTagRequest& request) const;
GetPolicyOutcome getPolicy(const Model::GetPolicyRequest &request)const;
void getPolicyAsync(const Model::GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPolicyOutcomeCallable getPolicyCallable(const Model::GetPolicyRequest& request) const;
GetSceneDataOutcome getSceneData(const Model::GetSceneDataRequest &request)const;
void getSceneDataAsync(const Model::GetSceneDataRequest& request, const GetSceneDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSceneDataOutcomeCallable getSceneDataCallable(const Model::GetSceneDataRequest& request) const;
GetSceneListOutcome getSceneList(const Model::GetSceneListRequest &request)const;
void getSceneListAsync(const Model::GetSceneListRequest& request, const GetSceneListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSceneListOutcomeCallable getSceneListCallable(const Model::GetSceneListRequest& request) const;
GetWindowConfigOutcome getWindowConfig(const Model::GetWindowConfigRequest &request)const;
void getWindowConfigAsync(const Model::GetWindowConfigRequest& request, const GetWindowConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetWindowConfigOutcomeCallable getWindowConfigCallable(const Model::GetWindowConfigRequest& request) const;
ListMainScenesOutcome listMainScenes(const Model::ListMainScenesRequest &request)const;
void listMainScenesAsync(const Model::ListMainScenesRequest& request, const ListMainScenesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMainScenesOutcomeCallable listMainScenesCallable(const Model::ListMainScenesRequest& request) const;
ListScenesOutcome listScenes(const Model::ListScenesRequest &request)const;
void listScenesAsync(const Model::ListScenesRequest& request, const ListScenesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListScenesOutcomeCallable listScenesCallable(const Model::ListScenesRequest& request) const;
PublishHotspotOutcome publishHotspot(const Model::PublishHotspotRequest &request)const;
void publishHotspotAsync(const Model::PublishHotspotRequest& request, const PublishHotspotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PublishHotspotOutcomeCallable publishHotspotCallable(const Model::PublishHotspotRequest& request) const;
SaveFileOutcome saveFile(const Model::SaveFileRequest &request)const;
void saveFileAsync(const Model::SaveFileRequest& request, const SaveFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveFileOutcomeCallable saveFileCallable(const Model::SaveFileRequest& request) const;
SaveHotspotConfigOutcome saveHotspotConfig(const Model::SaveHotspotConfigRequest &request)const;
void saveHotspotConfigAsync(const Model::SaveHotspotConfigRequest& request, const SaveHotspotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveHotspotConfigOutcomeCallable saveHotspotConfigCallable(const Model::SaveHotspotConfigRequest& request) const;
SaveHotspotTagOutcome saveHotspotTag(const Model::SaveHotspotTagRequest &request)const;
void saveHotspotTagAsync(const Model::SaveHotspotTagRequest& request, const SaveHotspotTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveHotspotTagOutcomeCallable saveHotspotTagCallable(const Model::SaveHotspotTagRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_TDSR_TDSRCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_TDSREXPORT_H_
#define ALIBABACLOUD_TDSR_TDSREXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_TDSR_LIBRARY)
# define ALIBABACLOUD_TDSR_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_TDSR_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_TDSR_EXPORT
#endif
#endif // !ALIBABACLOUD_TDSR_TDSREXPORT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CHECKPERMISSIONREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_CHECKPERMISSIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CheckPermissionRequest : public RpcServiceRequest
{
public:
CheckPermissionRequest();
~CheckPermissionRequest();
std::string getAliyunId()const;
void setAliyunId(const std::string& aliyunId);
private:
std::string aliyunId_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CHECKPERMISSIONREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CHECKPERMISSIONRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_CHECKPERMISSIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CheckPermissionResult : public ServiceResult
{
public:
CheckPermissionResult();
explicit CheckPermissionResult(const std::string &payload);
~CheckPermissionResult();
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CHECKPERMISSIONRESULT_H_

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CHECKRESOURCEREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_CHECKRESOURCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CheckResourceRequest : public RpcServiceRequest
{
public:
CheckResourceRequest();
~CheckResourceRequest();
std::string getCountry()const;
void setCountry(const std::string& country);
long getHid()const;
void setHid(long hid);
long getLevel()const;
void setLevel(long level);
std::string getInvoker()const;
void setInvoker(const std::string& invoker);
std::string getMessage()const;
void setMessage(const std::string& message);
std::string getUrl()const;
void setUrl(const std::string& url);
bool getSuccess()const;
void setSuccess(bool success);
bool getInterrupt()const;
void setInterrupt(bool interrupt);
std::string getGmtWakeup()const;
void setGmtWakeup(const std::string& gmtWakeup);
std::string getPk()const;
void setPk(const std::string& pk);
std::string getBid()const;
void setBid(const std::string& bid);
std::string getPrompt()const;
void setPrompt(const std::string& prompt);
std::string getTaskExtraData()const;
void setTaskExtraData(const std::string& taskExtraData);
std::string getTaskIdentifier()const;
void setTaskIdentifier(const std::string& taskIdentifier);
private:
std::string country_;
long hid_;
long level_;
std::string invoker_;
std::string message_;
std::string url_;
bool success_;
bool interrupt_;
std::string gmtWakeup_;
std::string pk_;
std::string bid_;
std::string prompt_;
std::string taskExtraData_;
std::string taskIdentifier_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CHECKRESOURCEREQUEST_H_

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CHECKRESOURCERESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_CHECKRESOURCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CheckResourceResult : public ServiceResult
{
public:
CheckResourceResult();
explicit CheckResourceResult(const std::string &payload);
~CheckResourceResult();
std::string getGmtWakeup()const;
long getHid()const;
std::string getTaskIdentifier()const;
std::string getMessage()const;
bool getInterrupt()const;
bool getSuccess()const;
std::string getUrl()const;
std::string getInvoker()const;
std::string getTaskExtraData()const;
std::string getCountry()const;
long getLevel()const;
std::string getPrompt()const;
std::string getPk()const;
std::string getBid()const;
protected:
void parse(const std::string &payload);
private:
std::string gmtWakeup_;
long hid_;
std::string taskIdentifier_;
std::string message_;
bool interrupt_;
bool success_;
std::string url_;
std::string invoker_;
std::string taskExtraData_;
std::string country_;
long level_;
std::string prompt_;
std::string pk_;
std::string bid_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CHECKRESOURCERESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CREATEPROJECTREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_CREATEPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CreateProjectRequest : public RpcServiceRequest
{
public:
CreateProjectRequest();
~CreateProjectRequest();
std::string getBusinessUserIdList()const;
void setBusinessUserIdList(const std::string& businessUserIdList);
std::string getBuilderUserIdList()const;
void setBuilderUserIdList(const std::string& builderUserIdList);
std::string getName()const;
void setName(const std::string& name);
std::string getBusinessId()const;
void setBusinessId(const std::string& businessId);
std::string getGatherUserIdList()const;
void setGatherUserIdList(const std::string& gatherUserIdList);
private:
std::string businessUserIdList_;
std::string builderUserIdList_;
std::string name_;
std::string businessId_;
std::string gatherUserIdList_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CREATEPROJECTREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CREATEPROJECTRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_CREATEPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CreateProjectResult : public ServiceResult
{
public:
CreateProjectResult();
explicit CreateProjectResult(const std::string &payload);
~CreateProjectResult();
long getId()const;
std::string getErrMessage()const;
bool getSuccess()const;
std::string getName()const;
protected:
void parse(const std::string &payload);
private:
long id_;
std::string errMessage_;
bool success_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CREATEPROJECTRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CREATESCENEREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_CREATESCENEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CreateSceneRequest : public RpcServiceRequest
{
public:
CreateSceneRequest();
~CreateSceneRequest();
std::string getName()const;
void setName(const std::string& name);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string name_;
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CREATESCENEREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_CREATESCENERESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_CREATESCENERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT CreateSceneResult : public ServiceResult
{
public:
CreateSceneResult();
explicit CreateSceneResult(const std::string &payload);
~CreateSceneResult();
long getSceneId()const;
std::string getPreviewToken()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long sceneId_;
std::string previewToken_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_CREATESCENERESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_DELETEFILEREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_DELETEFILEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT DeleteFileRequest : public RpcServiceRequest
{
public:
DeleteFileRequest();
~DeleteFileRequest();
std::string getSubSceneUuid()const;
void setSubSceneUuid(const std::string& subSceneUuid);
std::string getParamFile()const;
void setParamFile(const std::string& paramFile);
private:
std::string subSceneUuid_;
std::string paramFile_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_DELETEFILEREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_DELETEFILERESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_DELETEFILERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT DeleteFileResult : public ServiceResult
{
public:
DeleteFileResult();
explicit DeleteFileResult(const std::string &payload);
~DeleteFileResult();
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_DELETEFILERESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_DELETEPROJECTREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_DELETEPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT DeleteProjectRequest : public RpcServiceRequest
{
public:
DeleteProjectRequest();
~DeleteProjectRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_DELETEPROJECTREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_DELETEPROJECTRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_DELETEPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT DeleteProjectResult : public ServiceResult
{
public:
DeleteProjectResult();
explicit DeleteProjectResult(const std::string &payload);
~DeleteProjectResult();
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_DELETEPROJECTRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetHotspotConfigRequest : public RpcServiceRequest
{
public:
GetHotspotConfigRequest();
~GetHotspotConfigRequest();
std::string getPreviewToken()const;
void setPreviewToken(const std::string& previewToken);
private:
std::string previewToken_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetHotspotConfigResult : public ServiceResult
{
public:
GetHotspotConfigResult();
explicit GetHotspotConfigResult(const std::string &payload);
~GetHotspotConfigResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTCONFIGRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTTAGREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetHotspotTagRequest : public RpcServiceRequest
{
public:
GetHotspotTagRequest();
~GetHotspotTagRequest();
std::string getSubSceneUuid()const;
void setSubSceneUuid(const std::string& subSceneUuid);
std::string getType()const;
void setType(const std::string& type);
std::string getPreviewToken()const;
void setPreviewToken(const std::string& previewToken);
private:
std::string subSceneUuid_;
std::string type_;
std::string previewToken_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTTAGREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTTAGRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetHotspotTagResult : public ServiceResult
{
public:
GetHotspotTagResult();
explicit GetHotspotTagResult(const std::string &payload);
~GetHotspotTagResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETHOTSPOTTAGRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETPOLICYREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_GETPOLICYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetPolicyRequest : public RpcServiceRequest
{
public:
GetPolicyRequest();
~GetPolicyRequest();
std::string getSubSceneUuid()const;
void setSubSceneUuid(const std::string& subSceneUuid);
std::string getType()const;
void setType(const std::string& type);
private:
std::string subSceneUuid_;
std::string type_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETPOLICYREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETPOLICYRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_GETPOLICYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetPolicyResult : public ServiceResult
{
public:
GetPolicyResult();
explicit GetPolicyResult(const std::string &payload);
~GetPolicyResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETPOLICYRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETSCENEDATAREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_GETSCENEDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetSceneDataRequest : public RpcServiceRequest
{
public:
GetSceneDataRequest();
~GetSceneDataRequest();
std::string getToken()const;
void setToken(const std::string& token);
private:
std::string token_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETSCENEDATAREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETSCENEDATARESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_GETSCENEDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetSceneDataResult : public ServiceResult
{
public:
GetSceneDataResult();
explicit GetSceneDataResult(const std::string &payload);
~GetSceneDataResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETSCENEDATARESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETSCENELISTREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_GETSCENELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetSceneListRequest : public RpcServiceRequest
{
public:
GetSceneListRequest();
~GetSceneListRequest();
std::string getAccountId()const;
void setAccountId(const std::string& accountId);
private:
std::string accountId_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETSCENELISTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETSCENELISTRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_GETSCENELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetSceneListResult : public ServiceResult
{
public:
GetSceneListResult();
explicit GetSceneListResult(const std::string &payload);
~GetSceneListResult();
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETSCENELISTRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETWINDOWCONFIGREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_GETWINDOWCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetWindowConfigRequest : public RpcServiceRequest
{
public:
GetWindowConfigRequest();
~GetWindowConfigRequest();
std::string getPreviewToken()const;
void setPreviewToken(const std::string& previewToken);
private:
std::string previewToken_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETWINDOWCONFIGREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_GETWINDOWCONFIGRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_GETWINDOWCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT GetWindowConfigResult : public ServiceResult
{
public:
GetWindowConfigResult();
explicit GetWindowConfigResult(const std::string &payload);
~GetWindowConfigResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_GETWINDOWCONFIGRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_LISTMAINSCENESREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_LISTMAINSCENESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT ListMainScenesRequest : public RpcServiceRequest
{
public:
ListMainScenesRequest();
~ListMainScenesRequest();
std::string getQueryName()const;
void setQueryName(const std::string& queryName);
private:
std::string queryName_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_LISTMAINSCENESREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_LISTMAINSCENESRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_LISTMAINSCENESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT ListMainScenesResult : public ServiceResult
{
public:
ListMainScenesResult();
explicit ListMainScenesResult(const std::string &payload);
~ListMainScenesResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_LISTMAINSCENESRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_LISTSCENESREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_LISTSCENESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT ListScenesRequest : public RpcServiceRequest
{
public:
ListScenesRequest();
~ListScenesRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
bool getIsPublishQuery()const;
void setIsPublishQuery(bool isPublishQuery);
private:
std::string projectId_;
bool isPublishQuery_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_LISTSCENESREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_LISTSCENESRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_LISTSCENESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT ListScenesResult : public ServiceResult
{
public:
struct DataItem
{
std::string sceneId;
};
ListScenesResult();
explicit ListScenesResult(const std::string &payload);
~ListScenesResult();
std::vector<DataItem> getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DataItem> data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_LISTSCENESRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_PUBLISHHOTSPOTREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_PUBLISHHOTSPOTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT PublishHotspotRequest : public RpcServiceRequest
{
public:
PublishHotspotRequest();
~PublishHotspotRequest();
std::string getSubSceneUuid()const;
void setSubSceneUuid(const std::string& subSceneUuid);
std::string getParamTag()const;
void setParamTag(const std::string& paramTag);
private:
std::string subSceneUuid_;
std::string paramTag_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_PUBLISHHOTSPOTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_PUBLISHHOTSPOTRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_PUBLISHHOTSPOTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT PublishHotspotResult : public ServiceResult
{
public:
PublishHotspotResult();
explicit PublishHotspotResult(const std::string &payload);
~PublishHotspotResult();
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_PUBLISHHOTSPOTRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_SAVEFILEREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_SAVEFILEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT SaveFileRequest : public RpcServiceRequest
{
public:
SaveFileRequest();
~SaveFileRequest();
std::string getSubSceneUuid()const;
void setSubSceneUuid(const std::string& subSceneUuid);
std::string getParamFile()const;
void setParamFile(const std::string& paramFile);
private:
std::string subSceneUuid_;
std::string paramFile_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_SAVEFILEREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_SAVEFILERESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_SAVEFILERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT SaveFileResult : public ServiceResult
{
public:
SaveFileResult();
explicit SaveFileResult(const std::string &payload);
~SaveFileResult();
std::string getObjectString()const;
std::string getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string objectString_;
std::string data_;
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_SAVEFILERESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTCONFIGREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT SaveHotspotConfigRequest : public RpcServiceRequest
{
public:
SaveHotspotConfigRequest();
~SaveHotspotConfigRequest();
std::string getPreviewToken()const;
void setPreviewToken(const std::string& previewToken);
std::string getParamTag()const;
void setParamTag(const std::string& paramTag);
private:
std::string previewToken_;
std::string paramTag_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTCONFIGREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTCONFIGRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT SaveHotspotConfigResult : public ServiceResult
{
public:
SaveHotspotConfigResult();
explicit SaveHotspotConfigResult(const std::string &payload);
~SaveHotspotConfigResult();
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTCONFIGRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTTAGREQUEST_H_
#define ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT SaveHotspotTagRequest : public RpcServiceRequest
{
public:
SaveHotspotTagRequest();
~SaveHotspotTagRequest();
std::string getSubSceneUuid()const;
void setSubSceneUuid(const std::string& subSceneUuid);
std::string getParamTag()const;
void setParamTag(const std::string& paramTag);
private:
std::string subSceneUuid_;
std::string paramTag_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTTAGREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTTAGRESULT_H_
#define ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/tdsr/TdsrExport.h>
namespace AlibabaCloud
{
namespace Tdsr
{
namespace Model
{
class ALIBABACLOUD_TDSR_EXPORT SaveHotspotTagResult : public ServiceResult
{
public:
SaveHotspotTagResult();
explicit SaveHotspotTagResult(const std::string &payload);
~SaveHotspotTagResult();
std::string getErrMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_TDSR_MODEL_SAVEHOTSPOTTAGRESULT_H_

701
tdsr/src/TdsrClient.cc Normal file
View 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();
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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");
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}

View 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_;
}