diff --git a/CHANGELOG b/CHANGELOG index 8f89f6581..7e53aa44c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-09-08 Version: patch +- Supported backend interface for ICBU. + 2020-09-08 Version: patch - Add DescribeActiveOperationTask. - Add DescribeActiveOperationTaskCount. diff --git a/tdsr/CMakeLists.txt b/tdsr/CMakeLists.txt new file mode 100644 index 000000000..c38e1214c --- /dev/null +++ b/tdsr/CMakeLists.txt @@ -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} + ) \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/TdsrClient.h b/tdsr/include/alibabacloud/tdsr/TdsrClient.h new file mode 100644 index 000000000..47fc3aa0f --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/TdsrClient.h @@ -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 +#include +#include +#include +#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 CheckPermissionOutcome; + typedef std::future CheckPermissionOutcomeCallable; + typedef std::function&)> CheckPermissionAsyncHandler; + typedef Outcome CheckResourceOutcome; + typedef std::future CheckResourceOutcomeCallable; + typedef std::function&)> CheckResourceAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome CreateSceneOutcome; + typedef std::future CreateSceneOutcomeCallable; + typedef std::function&)> CreateSceneAsyncHandler; + typedef Outcome DeleteFileOutcome; + typedef std::future DeleteFileOutcomeCallable; + typedef std::function&)> DeleteFileAsyncHandler; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; + typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome GetHotspotConfigOutcome; + typedef std::future GetHotspotConfigOutcomeCallable; + typedef std::function&)> GetHotspotConfigAsyncHandler; + typedef Outcome GetHotspotTagOutcome; + typedef std::future GetHotspotTagOutcomeCallable; + typedef std::function&)> GetHotspotTagAsyncHandler; + typedef Outcome GetPolicyOutcome; + typedef std::future GetPolicyOutcomeCallable; + typedef std::function&)> GetPolicyAsyncHandler; + typedef Outcome GetSceneDataOutcome; + typedef std::future GetSceneDataOutcomeCallable; + typedef std::function&)> GetSceneDataAsyncHandler; + typedef Outcome GetSceneListOutcome; + typedef std::future GetSceneListOutcomeCallable; + typedef std::function&)> GetSceneListAsyncHandler; + typedef Outcome GetWindowConfigOutcome; + typedef std::future GetWindowConfigOutcomeCallable; + typedef std::function&)> GetWindowConfigAsyncHandler; + typedef Outcome ListMainScenesOutcome; + typedef std::future ListMainScenesOutcomeCallable; + typedef std::function&)> ListMainScenesAsyncHandler; + typedef Outcome ListScenesOutcome; + typedef std::future ListScenesOutcomeCallable; + typedef std::function&)> ListScenesAsyncHandler; + typedef Outcome PublishHotspotOutcome; + typedef std::future PublishHotspotOutcomeCallable; + typedef std::function&)> PublishHotspotAsyncHandler; + typedef Outcome SaveFileOutcome; + typedef std::future SaveFileOutcomeCallable; + typedef std::function&)> SaveFileAsyncHandler; + typedef Outcome SaveHotspotConfigOutcome; + typedef std::future SaveHotspotConfigOutcomeCallable; + typedef std::function&)> SaveHotspotConfigAsyncHandler; + typedef Outcome SaveHotspotTagOutcome; + typedef std::future SaveHotspotTagOutcomeCallable; + typedef std::function&)> SaveHotspotTagAsyncHandler; + + TdsrClient(const Credentials &credentials, const ClientConfiguration &configuration); + TdsrClient(const std::shared_ptr &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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; + SaveHotspotTagOutcomeCallable saveHotspotTagCallable(const Model::SaveHotspotTagRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_TDSR_TDSRCLIENT_H_ diff --git a/tdsr/include/alibabacloud/tdsr/TdsrExport.h b/tdsr/include/alibabacloud/tdsr/TdsrExport.h new file mode 100644 index 000000000..97a287ccb --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/TdsrExport.h @@ -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 + +#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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CheckPermissionRequest.h b/tdsr/include/alibabacloud/tdsr/model/CheckPermissionRequest.h new file mode 100644 index 000000000..1d4618752 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CheckPermissionRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CheckPermissionResult.h b/tdsr/include/alibabacloud/tdsr/model/CheckPermissionResult.h new file mode 100644 index 000000000..beb8771e7 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CheckPermissionResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CheckResourceRequest.h b/tdsr/include/alibabacloud/tdsr/model/CheckResourceRequest.h new file mode 100644 index 000000000..cc277bdd5 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CheckResourceRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CheckResourceResult.h b/tdsr/include/alibabacloud/tdsr/model/CheckResourceResult.h new file mode 100644 index 000000000..8c2d54188 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CheckResourceResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CreateProjectRequest.h b/tdsr/include/alibabacloud/tdsr/model/CreateProjectRequest.h new file mode 100644 index 000000000..9d7f6bedc --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CreateProjectRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CreateProjectResult.h b/tdsr/include/alibabacloud/tdsr/model/CreateProjectResult.h new file mode 100644 index 000000000..6cf5446fc --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CreateProjectResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CreateSceneRequest.h b/tdsr/include/alibabacloud/tdsr/model/CreateSceneRequest.h new file mode 100644 index 000000000..e3c9e73bd --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CreateSceneRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/CreateSceneResult.h b/tdsr/include/alibabacloud/tdsr/model/CreateSceneResult.h new file mode 100644 index 000000000..d2a7f5e2c --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/CreateSceneResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/DeleteFileRequest.h b/tdsr/include/alibabacloud/tdsr/model/DeleteFileRequest.h new file mode 100644 index 000000000..2c939773a --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/DeleteFileRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/DeleteFileResult.h b/tdsr/include/alibabacloud/tdsr/model/DeleteFileResult.h new file mode 100644 index 000000000..6843468d9 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/DeleteFileResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/DeleteProjectRequest.h b/tdsr/include/alibabacloud/tdsr/model/DeleteProjectRequest.h new file mode 100644 index 000000000..7c216207c --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/DeleteProjectRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/DeleteProjectResult.h b/tdsr/include/alibabacloud/tdsr/model/DeleteProjectResult.h new file mode 100644 index 000000000..65fb37d03 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/DeleteProjectResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetHotspotConfigRequest.h b/tdsr/include/alibabacloud/tdsr/model/GetHotspotConfigRequest.h new file mode 100644 index 000000000..d846603f3 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetHotspotConfigRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetHotspotConfigResult.h b/tdsr/include/alibabacloud/tdsr/model/GetHotspotConfigResult.h new file mode 100644 index 000000000..fa43329a6 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetHotspotConfigResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetHotspotTagRequest.h b/tdsr/include/alibabacloud/tdsr/model/GetHotspotTagRequest.h new file mode 100644 index 000000000..aa2176a26 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetHotspotTagRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetHotspotTagResult.h b/tdsr/include/alibabacloud/tdsr/model/GetHotspotTagResult.h new file mode 100644 index 000000000..c12433ae8 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetHotspotTagResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetPolicyRequest.h b/tdsr/include/alibabacloud/tdsr/model/GetPolicyRequest.h new file mode 100644 index 000000000..f1dd7b288 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetPolicyRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetPolicyResult.h b/tdsr/include/alibabacloud/tdsr/model/GetPolicyResult.h new file mode 100644 index 000000000..b36e9afcd --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetPolicyResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetSceneDataRequest.h b/tdsr/include/alibabacloud/tdsr/model/GetSceneDataRequest.h new file mode 100644 index 000000000..10607ea63 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetSceneDataRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetSceneDataResult.h b/tdsr/include/alibabacloud/tdsr/model/GetSceneDataResult.h new file mode 100644 index 000000000..1ee8525af --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetSceneDataResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetSceneListRequest.h b/tdsr/include/alibabacloud/tdsr/model/GetSceneListRequest.h new file mode 100644 index 000000000..c1d031160 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetSceneListRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetSceneListResult.h b/tdsr/include/alibabacloud/tdsr/model/GetSceneListResult.h new file mode 100644 index 000000000..bfe4da4ef --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetSceneListResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetWindowConfigRequest.h b/tdsr/include/alibabacloud/tdsr/model/GetWindowConfigRequest.h new file mode 100644 index 000000000..1fdf60431 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetWindowConfigRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/GetWindowConfigResult.h b/tdsr/include/alibabacloud/tdsr/model/GetWindowConfigResult.h new file mode 100644 index 000000000..3535cf521 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/GetWindowConfigResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/ListMainScenesRequest.h b/tdsr/include/alibabacloud/tdsr/model/ListMainScenesRequest.h new file mode 100644 index 000000000..81ca5d90e --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/ListMainScenesRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/ListMainScenesResult.h b/tdsr/include/alibabacloud/tdsr/model/ListMainScenesResult.h new file mode 100644 index 000000000..d6291ca67 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/ListMainScenesResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/ListScenesRequest.h b/tdsr/include/alibabacloud/tdsr/model/ListScenesRequest.h new file mode 100644 index 000000000..54875d764 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/ListScenesRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/ListScenesResult.h b/tdsr/include/alibabacloud/tdsr/model/ListScenesResult.h new file mode 100644 index 000000000..1a0cee1a7 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/ListScenesResult.h @@ -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 +#include +#include +#include +#include + +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 getData()const; + std::string getErrMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string errMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TDSR_MODEL_LISTSCENESRESULT_H_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/PublishHotspotRequest.h b/tdsr/include/alibabacloud/tdsr/model/PublishHotspotRequest.h new file mode 100644 index 000000000..0c4bb46f4 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/PublishHotspotRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/PublishHotspotResult.h b/tdsr/include/alibabacloud/tdsr/model/PublishHotspotResult.h new file mode 100644 index 000000000..8d1c03ee3 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/PublishHotspotResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/SaveFileRequest.h b/tdsr/include/alibabacloud/tdsr/model/SaveFileRequest.h new file mode 100644 index 000000000..deb8f6d1e --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/SaveFileRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/SaveFileResult.h b/tdsr/include/alibabacloud/tdsr/model/SaveFileResult.h new file mode 100644 index 000000000..eb9e9a986 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/SaveFileResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/SaveHotspotConfigRequest.h b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotConfigRequest.h new file mode 100644 index 000000000..6344ee344 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotConfigRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/SaveHotspotConfigResult.h b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotConfigResult.h new file mode 100644 index 000000000..53d634bcb --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotConfigResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/SaveHotspotTagRequest.h b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotTagRequest.h new file mode 100644 index 000000000..d087a7f79 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotTagRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/include/alibabacloud/tdsr/model/SaveHotspotTagResult.h b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotTagResult.h new file mode 100644 index 000000000..095044850 --- /dev/null +++ b/tdsr/include/alibabacloud/tdsr/model/SaveHotspotTagResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/tdsr/src/TdsrClient.cc b/tdsr/src/TdsrClient.cc new file mode 100644 index 000000000..b0f138c44 --- /dev/null +++ b/tdsr/src/TdsrClient.cc @@ -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 +#include + +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(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +TdsrClient::TdsrClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +TdsrClient::TdsrClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [this, request]() + { + return this->saveHotspotTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/tdsr/src/model/CheckPermissionRequest.cc b/tdsr/src/model/CheckPermissionRequest.cc new file mode 100644 index 000000000..5792c215f --- /dev/null +++ b/tdsr/src/model/CheckPermissionRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/CheckPermissionResult.cc b/tdsr/src/model/CheckPermissionResult.cc new file mode 100644 index 000000000..60bca3d01 --- /dev/null +++ b/tdsr/src/model/CheckPermissionResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/CheckResourceRequest.cc b/tdsr/src/model/CheckResourceRequest.cc new file mode 100644 index 000000000..a762c0f22 --- /dev/null +++ b/tdsr/src/model/CheckResourceRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/CheckResourceResult.cc b/tdsr/src/model/CheckResourceResult.cc new file mode 100644 index 000000000..4b3edb153 --- /dev/null +++ b/tdsr/src/model/CheckResourceResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/CreateProjectRequest.cc b/tdsr/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..ec511face --- /dev/null +++ b/tdsr/src/model/CreateProjectRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/CreateProjectResult.cc b/tdsr/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..7e3709764 --- /dev/null +++ b/tdsr/src/model/CreateProjectResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/CreateSceneRequest.cc b/tdsr/src/model/CreateSceneRequest.cc new file mode 100644 index 000000000..63c87e70e --- /dev/null +++ b/tdsr/src/model/CreateSceneRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/CreateSceneResult.cc b/tdsr/src/model/CreateSceneResult.cc new file mode 100644 index 000000000..9e9854237 --- /dev/null +++ b/tdsr/src/model/CreateSceneResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/DeleteFileRequest.cc b/tdsr/src/model/DeleteFileRequest.cc new file mode 100644 index 000000000..c07f8fe4f --- /dev/null +++ b/tdsr/src/model/DeleteFileRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/DeleteFileResult.cc b/tdsr/src/model/DeleteFileResult.cc new file mode 100644 index 000000000..cef3139d1 --- /dev/null +++ b/tdsr/src/model/DeleteFileResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/DeleteProjectRequest.cc b/tdsr/src/model/DeleteProjectRequest.cc new file mode 100644 index 000000000..ec3357243 --- /dev/null +++ b/tdsr/src/model/DeleteProjectRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/DeleteProjectResult.cc b/tdsr/src/model/DeleteProjectResult.cc new file mode 100644 index 000000000..8b1a53cd0 --- /dev/null +++ b/tdsr/src/model/DeleteProjectResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/GetHotspotConfigRequest.cc b/tdsr/src/model/GetHotspotConfigRequest.cc new file mode 100644 index 000000000..f357053f8 --- /dev/null +++ b/tdsr/src/model/GetHotspotConfigRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/GetHotspotConfigResult.cc b/tdsr/src/model/GetHotspotConfigResult.cc new file mode 100644 index 000000000..5bb3f7c5b --- /dev/null +++ b/tdsr/src/model/GetHotspotConfigResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/GetHotspotTagRequest.cc b/tdsr/src/model/GetHotspotTagRequest.cc new file mode 100644 index 000000000..2fb93d074 --- /dev/null +++ b/tdsr/src/model/GetHotspotTagRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/GetHotspotTagResult.cc b/tdsr/src/model/GetHotspotTagResult.cc new file mode 100644 index 000000000..993d5ce69 --- /dev/null +++ b/tdsr/src/model/GetHotspotTagResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/GetPolicyRequest.cc b/tdsr/src/model/GetPolicyRequest.cc new file mode 100644 index 000000000..c2aa18336 --- /dev/null +++ b/tdsr/src/model/GetPolicyRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/GetPolicyResult.cc b/tdsr/src/model/GetPolicyResult.cc new file mode 100644 index 000000000..3602073cb --- /dev/null +++ b/tdsr/src/model/GetPolicyResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/GetSceneDataRequest.cc b/tdsr/src/model/GetSceneDataRequest.cc new file mode 100644 index 000000000..6259791ad --- /dev/null +++ b/tdsr/src/model/GetSceneDataRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/GetSceneDataResult.cc b/tdsr/src/model/GetSceneDataResult.cc new file mode 100644 index 000000000..0811c39c6 --- /dev/null +++ b/tdsr/src/model/GetSceneDataResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/GetSceneListRequest.cc b/tdsr/src/model/GetSceneListRequest.cc new file mode 100644 index 000000000..d6e2ae27c --- /dev/null +++ b/tdsr/src/model/GetSceneListRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/GetSceneListResult.cc b/tdsr/src/model/GetSceneListResult.cc new file mode 100644 index 000000000..e333d0ca2 --- /dev/null +++ b/tdsr/src/model/GetSceneListResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/GetWindowConfigRequest.cc b/tdsr/src/model/GetWindowConfigRequest.cc new file mode 100644 index 000000000..c67812b04 --- /dev/null +++ b/tdsr/src/model/GetWindowConfigRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/GetWindowConfigResult.cc b/tdsr/src/model/GetWindowConfigResult.cc new file mode 100644 index 000000000..987b7d58c --- /dev/null +++ b/tdsr/src/model/GetWindowConfigResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/ListMainScenesRequest.cc b/tdsr/src/model/ListMainScenesRequest.cc new file mode 100644 index 000000000..6cf1e30cd --- /dev/null +++ b/tdsr/src/model/ListMainScenesRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/ListMainScenesResult.cc b/tdsr/src/model/ListMainScenesResult.cc new file mode 100644 index 000000000..05db33cd0 --- /dev/null +++ b/tdsr/src/model/ListMainScenesResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/ListScenesRequest.cc b/tdsr/src/model/ListScenesRequest.cc new file mode 100644 index 000000000..8ee9d3dd2 --- /dev/null +++ b/tdsr/src/model/ListScenesRequest.cc @@ -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 + +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"); +} + diff --git a/tdsr/src/model/ListScenesResult.cc b/tdsr/src/model/ListScenesResult.cc new file mode 100644 index 000000000..c37f483e9 --- /dev/null +++ b/tdsr/src/model/ListScenesResult.cc @@ -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 +#include + +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::getData()const +{ + return data_; +} + +std::string ListScenesResult::getErrMessage()const +{ + return errMessage_; +} + +bool ListScenesResult::getSuccess()const +{ + return success_; +} + diff --git a/tdsr/src/model/PublishHotspotRequest.cc b/tdsr/src/model/PublishHotspotRequest.cc new file mode 100644 index 000000000..da0acccd9 --- /dev/null +++ b/tdsr/src/model/PublishHotspotRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/PublishHotspotResult.cc b/tdsr/src/model/PublishHotspotResult.cc new file mode 100644 index 000000000..d4c261fe5 --- /dev/null +++ b/tdsr/src/model/PublishHotspotResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/SaveFileRequest.cc b/tdsr/src/model/SaveFileRequest.cc new file mode 100644 index 000000000..bf23340c3 --- /dev/null +++ b/tdsr/src/model/SaveFileRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/SaveFileResult.cc b/tdsr/src/model/SaveFileResult.cc new file mode 100644 index 000000000..c589ea6de --- /dev/null +++ b/tdsr/src/model/SaveFileResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/SaveHotspotConfigRequest.cc b/tdsr/src/model/SaveHotspotConfigRequest.cc new file mode 100644 index 000000000..7555b7b78 --- /dev/null +++ b/tdsr/src/model/SaveHotspotConfigRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/SaveHotspotConfigResult.cc b/tdsr/src/model/SaveHotspotConfigResult.cc new file mode 100644 index 000000000..a2431b864 --- /dev/null +++ b/tdsr/src/model/SaveHotspotConfigResult.cc @@ -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 +#include + +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_; +} + diff --git a/tdsr/src/model/SaveHotspotTagRequest.cc b/tdsr/src/model/SaveHotspotTagRequest.cc new file mode 100644 index 000000000..bdee7a018 --- /dev/null +++ b/tdsr/src/model/SaveHotspotTagRequest.cc @@ -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 + +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); +} + diff --git a/tdsr/src/model/SaveHotspotTagResult.cc b/tdsr/src/model/SaveHotspotTagResult.cc new file mode 100644 index 000000000..d3e29bc67 --- /dev/null +++ b/tdsr/src/model/SaveHotspotTagResult.cc @@ -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 +#include + +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_; +} +