diff --git a/VERSION b/VERSION index 80e266047..e888c0ec0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1274 \ No newline at end of file +1.36.1275 \ No newline at end of file diff --git a/tingwu/CMakeLists.txt b/tingwu/CMakeLists.txt new file mode 100644 index 000000000..5671acbd7 --- /dev/null +++ b/tingwu/CMakeLists.txt @@ -0,0 +1,102 @@ +# +# 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(tingwu_public_header + include/alibabacloud/tingwu/TingwuClient.h + include/alibabacloud/tingwu/TingwuExport.h ) + +set(tingwu_public_header_model + include/alibabacloud/tingwu/model/CreateFileTransRequest.h + include/alibabacloud/tingwu/model/CreateFileTransResult.h + include/alibabacloud/tingwu/model/CreateMeetingTransRequest.h + include/alibabacloud/tingwu/model/CreateMeetingTransResult.h + include/alibabacloud/tingwu/model/GetFileTransRequest.h + include/alibabacloud/tingwu/model/GetFileTransResult.h + include/alibabacloud/tingwu/model/GetMeetingTransRequest.h + include/alibabacloud/tingwu/model/GetMeetingTransResult.h + include/alibabacloud/tingwu/model/StopMeetingTransRequest.h + include/alibabacloud/tingwu/model/StopMeetingTransResult.h ) + +set(tingwu_src + src/TingwuClient.cc + src/model/CreateFileTransRequest.cc + src/model/CreateFileTransResult.cc + src/model/CreateMeetingTransRequest.cc + src/model/CreateMeetingTransResult.cc + src/model/GetFileTransRequest.cc + src/model/GetFileTransResult.cc + src/model/GetMeetingTransRequest.cc + src/model/GetMeetingTransResult.cc + src/model/StopMeetingTransRequest.cc + src/model/StopMeetingTransResult.cc ) + +add_library(tingwu ${LIB_TYPE} + ${tingwu_public_header} + ${tingwu_public_header_model} + ${tingwu_src}) + +set_target_properties(tingwu + 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}tingwu + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(tingwu + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_TINGWU_LIBRARY) +endif() + +target_include_directories(tingwu + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(tingwu + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(tingwu + jsoncpp) + target_include_directories(tingwu + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(tingwu + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(tingwu + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(tingwu + PRIVATE /usr/include/jsoncpp) + target_link_libraries(tingwu + jsoncpp) +endif() + +install(FILES ${tingwu_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/tingwu) +install(FILES ${tingwu_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/tingwu/model) +install(TARGETS tingwu + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/tingwu/include/alibabacloud/tingwu/TingwuClient.h b/tingwu/include/alibabacloud/tingwu/TingwuClient.h new file mode 100644 index 000000000..54043764a --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/TingwuClient.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TINGWU_TINGWUCLIENT_H_ +#define ALIBABACLOUD_TINGWU_TINGWUCLIENT_H_ + +#include +#include +#include +#include +#include "TingwuExport.h" +#include "model/CreateFileTransRequest.h" +#include "model/CreateFileTransResult.h" +#include "model/CreateMeetingTransRequest.h" +#include "model/CreateMeetingTransResult.h" +#include "model/GetFileTransRequest.h" +#include "model/GetFileTransResult.h" +#include "model/GetMeetingTransRequest.h" +#include "model/GetMeetingTransResult.h" +#include "model/StopMeetingTransRequest.h" +#include "model/StopMeetingTransResult.h" + + +namespace AlibabaCloud +{ + namespace Tingwu + { + class ALIBABACLOUD_TINGWU_EXPORT TingwuClient : public RoaServiceClient + { + public: + typedef Outcome CreateFileTransOutcome; + typedef std::future CreateFileTransOutcomeCallable; + typedef std::function&)> CreateFileTransAsyncHandler; + typedef Outcome CreateMeetingTransOutcome; + typedef std::future CreateMeetingTransOutcomeCallable; + typedef std::function&)> CreateMeetingTransAsyncHandler; + typedef Outcome GetFileTransOutcome; + typedef std::future GetFileTransOutcomeCallable; + typedef std::function&)> GetFileTransAsyncHandler; + typedef Outcome GetMeetingTransOutcome; + typedef std::future GetMeetingTransOutcomeCallable; + typedef std::function&)> GetMeetingTransAsyncHandler; + typedef Outcome StopMeetingTransOutcome; + typedef std::future StopMeetingTransOutcomeCallable; + typedef std::function&)> StopMeetingTransAsyncHandler; + + TingwuClient(const Credentials &credentials, const ClientConfiguration &configuration); + TingwuClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + TingwuClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~TingwuClient(); + CreateFileTransOutcome createFileTrans(const Model::CreateFileTransRequest &request)const; + void createFileTransAsync(const Model::CreateFileTransRequest& request, const CreateFileTransAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFileTransOutcomeCallable createFileTransCallable(const Model::CreateFileTransRequest& request) const; + CreateMeetingTransOutcome createMeetingTrans(const Model::CreateMeetingTransRequest &request)const; + void createMeetingTransAsync(const Model::CreateMeetingTransRequest& request, const CreateMeetingTransAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMeetingTransOutcomeCallable createMeetingTransCallable(const Model::CreateMeetingTransRequest& request) const; + GetFileTransOutcome getFileTrans(const Model::GetFileTransRequest &request)const; + void getFileTransAsync(const Model::GetFileTransRequest& request, const GetFileTransAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFileTransOutcomeCallable getFileTransCallable(const Model::GetFileTransRequest& request) const; + GetMeetingTransOutcome getMeetingTrans(const Model::GetMeetingTransRequest &request)const; + void getMeetingTransAsync(const Model::GetMeetingTransRequest& request, const GetMeetingTransAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMeetingTransOutcomeCallable getMeetingTransCallable(const Model::GetMeetingTransRequest& request) const; + StopMeetingTransOutcome stopMeetingTrans(const Model::StopMeetingTransRequest &request)const; + void stopMeetingTransAsync(const Model::StopMeetingTransRequest& request, const StopMeetingTransAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopMeetingTransOutcomeCallable stopMeetingTransCallable(const Model::StopMeetingTransRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_TINGWU_TINGWUCLIENT_H_ diff --git a/tingwu/include/alibabacloud/tingwu/TingwuExport.h b/tingwu/include/alibabacloud/tingwu/TingwuExport.h new file mode 100644 index 000000000..af28053ea --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/TingwuExport.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_TINGWU_TINGWUEXPORT_H_ +#define ALIBABACLOUD_TINGWU_TINGWUEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_TINGWU_LIBRARY) +# define ALIBABACLOUD_TINGWU_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_TINGWU_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_TINGWU_EXPORT +#endif + +#endif // !ALIBABACLOUD_TINGWU_TINGWUEXPORT_H_ \ No newline at end of file diff --git a/tingwu/include/alibabacloud/tingwu/model/CreateFileTransRequest.h b/tingwu/include/alibabacloud/tingwu/model/CreateFileTransRequest.h new file mode 100644 index 000000000..c65eee5ab --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/CreateFileTransRequest.h @@ -0,0 +1,42 @@ +/* + * 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_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_ +#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tingwu { +namespace Model { +class ALIBABACLOUD_TINGWU_EXPORT CreateFileTransRequest : public RoaServiceRequest { +public: + CreateFileTransRequest(); + ~CreateFileTransRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Tingwu +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSREQUEST_H_ diff --git a/tingwu/include/alibabacloud/tingwu/model/CreateFileTransResult.h b/tingwu/include/alibabacloud/tingwu/model/CreateFileTransResult.h new file mode 100644 index 000000000..9e50dc622 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/CreateFileTransResult.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_TINGWU_MODEL_CREATEFILETRANSRESULT_H_ +#define ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tingwu + { + namespace Model + { + class ALIBABACLOUD_TINGWU_EXPORT CreateFileTransResult : public ServiceResult + { + public: + struct Data + { + std::string transKey; + std::string transId; + }; + + + CreateFileTransResult(); + explicit CreateFileTransResult(const std::string &payload); + ~CreateFileTransResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEFILETRANSRESULT_H_ \ No newline at end of file diff --git a/tingwu/include/alibabacloud/tingwu/model/CreateMeetingTransRequest.h b/tingwu/include/alibabacloud/tingwu/model/CreateMeetingTransRequest.h new file mode 100644 index 000000000..4e77a5941 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/CreateMeetingTransRequest.h @@ -0,0 +1,42 @@ +/* + * 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_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_ +#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tingwu { +namespace Model { +class ALIBABACLOUD_TINGWU_EXPORT CreateMeetingTransRequest : public RoaServiceRequest { +public: + CreateMeetingTransRequest(); + ~CreateMeetingTransRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Tingwu +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSREQUEST_H_ diff --git a/tingwu/include/alibabacloud/tingwu/model/CreateMeetingTransResult.h b/tingwu/include/alibabacloud/tingwu/model/CreateMeetingTransResult.h new file mode 100644 index 000000000..6a7a74074 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/CreateMeetingTransResult.h @@ -0,0 +1,61 @@ +/* + * 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_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_ +#define ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tingwu + { + namespace Model + { + class ALIBABACLOUD_TINGWU_EXPORT CreateMeetingTransResult : public ServiceResult + { + public: + struct Data + { + std::string meetingId; + std::string meetingJoinUrl; + std::string meetingKey; + }; + + + CreateMeetingTransResult(); + explicit CreateMeetingTransResult(const std::string &payload); + ~CreateMeetingTransResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TINGWU_MODEL_CREATEMEETINGTRANSRESULT_H_ \ No newline at end of file diff --git a/tingwu/include/alibabacloud/tingwu/model/GetFileTransRequest.h b/tingwu/include/alibabacloud/tingwu/model/GetFileTransRequest.h new file mode 100644 index 000000000..d274931f1 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/GetFileTransRequest.h @@ -0,0 +1,42 @@ +/* + * 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_TINGWU_MODEL_GETFILETRANSREQUEST_H_ +#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tingwu { +namespace Model { +class ALIBABACLOUD_TINGWU_EXPORT GetFileTransRequest : public RoaServiceRequest { +public: + GetFileTransRequest(); + ~GetFileTransRequest(); + string getTransId() const; + void setTransId(string transId); + +private: + string transId_; +}; +} // namespace Model +} // namespace Tingwu +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSREQUEST_H_ diff --git a/tingwu/include/alibabacloud/tingwu/model/GetFileTransResult.h b/tingwu/include/alibabacloud/tingwu/model/GetFileTransResult.h new file mode 100644 index 000000000..875ca68b3 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/GetFileTransResult.h @@ -0,0 +1,61 @@ +/* + * 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_TINGWU_MODEL_GETFILETRANSRESULT_H_ +#define ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tingwu + { + namespace Model + { + class ALIBABACLOUD_TINGWU_EXPORT GetFileTransResult : public ServiceResult + { + public: + struct Data + { + std::string transKey; + std::string transStatus; + std::string transId; + }; + + + GetFileTransResult(); + explicit GetFileTransResult(const std::string &payload); + ~GetFileTransResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TINGWU_MODEL_GETFILETRANSRESULT_H_ \ No newline at end of file diff --git a/tingwu/include/alibabacloud/tingwu/model/GetMeetingTransRequest.h b/tingwu/include/alibabacloud/tingwu/model/GetMeetingTransRequest.h new file mode 100644 index 000000000..ce5505d86 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/GetMeetingTransRequest.h @@ -0,0 +1,42 @@ +/* + * 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_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_ +#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tingwu { +namespace Model { +class ALIBABACLOUD_TINGWU_EXPORT GetMeetingTransRequest : public RoaServiceRequest { +public: + GetMeetingTransRequest(); + ~GetMeetingTransRequest(); + string getMeetingId() const; + void setMeetingId(string meetingId); + +private: + string meetingId_; +}; +} // namespace Model +} // namespace Tingwu +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSREQUEST_H_ diff --git a/tingwu/include/alibabacloud/tingwu/model/GetMeetingTransResult.h b/tingwu/include/alibabacloud/tingwu/model/GetMeetingTransResult.h new file mode 100644 index 000000000..35a9b4e41 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/GetMeetingTransResult.h @@ -0,0 +1,61 @@ +/* + * 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_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_ +#define ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tingwu + { + namespace Model + { + class ALIBABACLOUD_TINGWU_EXPORT GetMeetingTransResult : public ServiceResult + { + public: + struct Data + { + std::string meetingStatus; + std::string meetingId; + std::string meetingKey; + }; + + + GetMeetingTransResult(); + explicit GetMeetingTransResult(const std::string &payload); + ~GetMeetingTransResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TINGWU_MODEL_GETMEETINGTRANSRESULT_H_ \ No newline at end of file diff --git a/tingwu/include/alibabacloud/tingwu/model/StopMeetingTransRequest.h b/tingwu/include/alibabacloud/tingwu/model/StopMeetingTransRequest.h new file mode 100644 index 000000000..b4b8ce772 --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/StopMeetingTransRequest.h @@ -0,0 +1,42 @@ +/* + * 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_TINGWU_MODEL_STOPMEETINGTRANSREQUEST_H_ +#define ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tingwu { +namespace Model { +class ALIBABACLOUD_TINGWU_EXPORT StopMeetingTransRequest : public RoaServiceRequest { +public: + StopMeetingTransRequest(); + ~StopMeetingTransRequest(); + string getMeetingId() const; + void setMeetingId(string meetingId); + +private: + string meetingId_; +}; +} // namespace Model +} // namespace Tingwu +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSREQUEST_H_ diff --git a/tingwu/include/alibabacloud/tingwu/model/StopMeetingTransResult.h b/tingwu/include/alibabacloud/tingwu/model/StopMeetingTransResult.h new file mode 100644 index 000000000..7d6a7ad2f --- /dev/null +++ b/tingwu/include/alibabacloud/tingwu/model/StopMeetingTransResult.h @@ -0,0 +1,61 @@ +/* + * 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_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_ +#define ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tingwu + { + namespace Model + { + class ALIBABACLOUD_TINGWU_EXPORT StopMeetingTransResult : public ServiceResult + { + public: + struct Data + { + std::string meetingStatus; + std::string meetingId; + std::string meetingKey; + }; + + + StopMeetingTransResult(); + explicit StopMeetingTransResult(const std::string &payload); + ~StopMeetingTransResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TINGWU_MODEL_STOPMEETINGTRANSRESULT_H_ \ No newline at end of file diff --git a/tingwu/src/TingwuClient.cc b/tingwu/src/TingwuClient.cc new file mode 100644 index 000000000..df17bb7a9 --- /dev/null +++ b/tingwu/src/TingwuClient.cc @@ -0,0 +1,233 @@ +/* + * 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::Tingwu; +using namespace AlibabaCloud::Tingwu::Model; + +namespace +{ + const std::string SERVICE_NAME = "tingwu"; +} + +TingwuClient::TingwuClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tingwupaas"); +} + +TingwuClient::TingwuClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tingwupaas"); +} + +TingwuClient::TingwuClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(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, "tingwupaas"); +} + +TingwuClient::~TingwuClient() +{} + +TingwuClient::CreateFileTransOutcome TingwuClient::createFileTrans(const CreateFileTransRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFileTransOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFileTransOutcome(CreateFileTransResult(outcome.result())); + else + return CreateFileTransOutcome(outcome.error()); +} + +void TingwuClient::createFileTransAsync(const CreateFileTransRequest& request, const CreateFileTransAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFileTrans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TingwuClient::CreateFileTransOutcomeCallable TingwuClient::createFileTransCallable(const CreateFileTransRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFileTrans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TingwuClient::CreateMeetingTransOutcome TingwuClient::createMeetingTrans(const CreateMeetingTransRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMeetingTransOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMeetingTransOutcome(CreateMeetingTransResult(outcome.result())); + else + return CreateMeetingTransOutcome(outcome.error()); +} + +void TingwuClient::createMeetingTransAsync(const CreateMeetingTransRequest& request, const CreateMeetingTransAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMeetingTrans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TingwuClient::CreateMeetingTransOutcomeCallable TingwuClient::createMeetingTransCallable(const CreateMeetingTransRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMeetingTrans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TingwuClient::GetFileTransOutcome TingwuClient::getFileTrans(const GetFileTransRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFileTransOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFileTransOutcome(GetFileTransResult(outcome.result())); + else + return GetFileTransOutcome(outcome.error()); +} + +void TingwuClient::getFileTransAsync(const GetFileTransRequest& request, const GetFileTransAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFileTrans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TingwuClient::GetFileTransOutcomeCallable TingwuClient::getFileTransCallable(const GetFileTransRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFileTrans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TingwuClient::GetMeetingTransOutcome TingwuClient::getMeetingTrans(const GetMeetingTransRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMeetingTransOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMeetingTransOutcome(GetMeetingTransResult(outcome.result())); + else + return GetMeetingTransOutcome(outcome.error()); +} + +void TingwuClient::getMeetingTransAsync(const GetMeetingTransRequest& request, const GetMeetingTransAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMeetingTrans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TingwuClient::GetMeetingTransOutcomeCallable TingwuClient::getMeetingTransCallable(const GetMeetingTransRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMeetingTrans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TingwuClient::StopMeetingTransOutcome TingwuClient::stopMeetingTrans(const StopMeetingTransRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopMeetingTransOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopMeetingTransOutcome(StopMeetingTransResult(outcome.result())); + else + return StopMeetingTransOutcome(outcome.error()); +} + +void TingwuClient::stopMeetingTransAsync(const StopMeetingTransRequest& request, const StopMeetingTransAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopMeetingTrans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TingwuClient::StopMeetingTransOutcomeCallable TingwuClient::stopMeetingTransCallable(const StopMeetingTransRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopMeetingTrans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/tingwu/src/model/CreateFileTransRequest.cc b/tingwu/src/model/CreateFileTransRequest.cc new file mode 100644 index 000000000..3f235a895 --- /dev/null +++ b/tingwu/src/model/CreateFileTransRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Tingwu::Model::CreateFileTransRequest; + +CreateFileTransRequest::CreateFileTransRequest() + : RoaServiceRequest("tingwu", "2022-09-30") { + setResourcePath("/openapi/file-trans"}; + setMethod(HttpRequest::Method::Put); +} + +CreateFileTransRequest::~CreateFileTransRequest() {} + +std::string CreateFileTransRequest::getBody() const { + return body_; +} + +void CreateFileTransRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/tingwu/src/model/CreateFileTransResult.cc b/tingwu/src/model/CreateFileTransResult.cc new file mode 100644 index 000000000..81a860a3c --- /dev/null +++ b/tingwu/src/model/CreateFileTransResult.cc @@ -0,0 +1,68 @@ +/* + * 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::Tingwu; +using namespace AlibabaCloud::Tingwu::Model; + +CreateFileTransResult::CreateFileTransResult() : + ServiceResult() +{} + +CreateFileTransResult::CreateFileTransResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFileTransResult::~CreateFileTransResult() +{} + +void CreateFileTransResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TransId"].isNull()) + data_.transId = dataNode["TransId"].asString(); + if(!dataNode["TransKey"].isNull()) + data_.transKey = dataNode["TransKey"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateFileTransResult::getMessage()const +{ + return message_; +} + +CreateFileTransResult::Data CreateFileTransResult::getData()const +{ + return data_; +} + +std::string CreateFileTransResult::getCode()const +{ + return code_; +} + diff --git a/tingwu/src/model/CreateMeetingTransRequest.cc b/tingwu/src/model/CreateMeetingTransRequest.cc new file mode 100644 index 000000000..da5b95294 --- /dev/null +++ b/tingwu/src/model/CreateMeetingTransRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Tingwu::Model::CreateMeetingTransRequest; + +CreateMeetingTransRequest::CreateMeetingTransRequest() + : RoaServiceRequest("tingwu", "2022-09-30") { + setResourcePath("/openapi/meeting-trans"}; + setMethod(HttpRequest::Method::Put); +} + +CreateMeetingTransRequest::~CreateMeetingTransRequest() {} + +std::string CreateMeetingTransRequest::getBody() const { + return body_; +} + +void CreateMeetingTransRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/tingwu/src/model/CreateMeetingTransResult.cc b/tingwu/src/model/CreateMeetingTransResult.cc new file mode 100644 index 000000000..566bede31 --- /dev/null +++ b/tingwu/src/model/CreateMeetingTransResult.cc @@ -0,0 +1,70 @@ +/* + * 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::Tingwu; +using namespace AlibabaCloud::Tingwu::Model; + +CreateMeetingTransResult::CreateMeetingTransResult() : + ServiceResult() +{} + +CreateMeetingTransResult::CreateMeetingTransResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMeetingTransResult::~CreateMeetingTransResult() +{} + +void CreateMeetingTransResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["MeetingId"].isNull()) + data_.meetingId = dataNode["MeetingId"].asString(); + if(!dataNode["MeetingJoinUrl"].isNull()) + data_.meetingJoinUrl = dataNode["MeetingJoinUrl"].asString(); + if(!dataNode["MeetingKey"].isNull()) + data_.meetingKey = dataNode["MeetingKey"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateMeetingTransResult::getMessage()const +{ + return message_; +} + +CreateMeetingTransResult::Data CreateMeetingTransResult::getData()const +{ + return data_; +} + +std::string CreateMeetingTransResult::getCode()const +{ + return code_; +} + diff --git a/tingwu/src/model/GetFileTransRequest.cc b/tingwu/src/model/GetFileTransRequest.cc new file mode 100644 index 000000000..cf62f0356 --- /dev/null +++ b/tingwu/src/model/GetFileTransRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Tingwu::Model::GetFileTransRequest; + +GetFileTransRequest::GetFileTransRequest() + : RoaServiceRequest("tingwu", "2022-09-30") { + setResourcePath("/openapi/file-trans/[TransId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetFileTransRequest::~GetFileTransRequest() {} + +string GetFileTransRequest::getTransId() const { + return transId_; +} + +void GetFileTransRequest::setTransId(string transId) { + transId_ = transId; + setParameter(std::string("TransId"), std::to_string(transId)); +} + diff --git a/tingwu/src/model/GetFileTransResult.cc b/tingwu/src/model/GetFileTransResult.cc new file mode 100644 index 000000000..84ef770a9 --- /dev/null +++ b/tingwu/src/model/GetFileTransResult.cc @@ -0,0 +1,70 @@ +/* + * 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::Tingwu; +using namespace AlibabaCloud::Tingwu::Model; + +GetFileTransResult::GetFileTransResult() : + ServiceResult() +{} + +GetFileTransResult::GetFileTransResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFileTransResult::~GetFileTransResult() +{} + +void GetFileTransResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TransId"].isNull()) + data_.transId = dataNode["TransId"].asString(); + if(!dataNode["TransStatus"].isNull()) + data_.transStatus = dataNode["TransStatus"].asString(); + if(!dataNode["TransKey"].isNull()) + data_.transKey = dataNode["TransKey"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetFileTransResult::getMessage()const +{ + return message_; +} + +GetFileTransResult::Data GetFileTransResult::getData()const +{ + return data_; +} + +std::string GetFileTransResult::getCode()const +{ + return code_; +} + diff --git a/tingwu/src/model/GetMeetingTransRequest.cc b/tingwu/src/model/GetMeetingTransRequest.cc new file mode 100644 index 000000000..4eaa2e643 --- /dev/null +++ b/tingwu/src/model/GetMeetingTransRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Tingwu::Model::GetMeetingTransRequest; + +GetMeetingTransRequest::GetMeetingTransRequest() + : RoaServiceRequest("tingwu", "2022-09-30") { + setResourcePath("/openapi/meeting-trans/[MeetingId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetMeetingTransRequest::~GetMeetingTransRequest() {} + +string GetMeetingTransRequest::getMeetingId() const { + return meetingId_; +} + +void GetMeetingTransRequest::setMeetingId(string meetingId) { + meetingId_ = meetingId; + setParameter(std::string("MeetingId"), std::to_string(meetingId)); +} + diff --git a/tingwu/src/model/GetMeetingTransResult.cc b/tingwu/src/model/GetMeetingTransResult.cc new file mode 100644 index 000000000..9f7017ddd --- /dev/null +++ b/tingwu/src/model/GetMeetingTransResult.cc @@ -0,0 +1,70 @@ +/* + * 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::Tingwu; +using namespace AlibabaCloud::Tingwu::Model; + +GetMeetingTransResult::GetMeetingTransResult() : + ServiceResult() +{} + +GetMeetingTransResult::GetMeetingTransResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMeetingTransResult::~GetMeetingTransResult() +{} + +void GetMeetingTransResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["MeetingId"].isNull()) + data_.meetingId = dataNode["MeetingId"].asString(); + if(!dataNode["MeetingStatus"].isNull()) + data_.meetingStatus = dataNode["MeetingStatus"].asString(); + if(!dataNode["MeetingKey"].isNull()) + data_.meetingKey = dataNode["MeetingKey"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetMeetingTransResult::getMessage()const +{ + return message_; +} + +GetMeetingTransResult::Data GetMeetingTransResult::getData()const +{ + return data_; +} + +std::string GetMeetingTransResult::getCode()const +{ + return code_; +} + diff --git a/tingwu/src/model/StopMeetingTransRequest.cc b/tingwu/src/model/StopMeetingTransRequest.cc new file mode 100644 index 000000000..25c9bd833 --- /dev/null +++ b/tingwu/src/model/StopMeetingTransRequest.cc @@ -0,0 +1,37 @@ +/* + * 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::Tingwu::Model::StopMeetingTransRequest; + +StopMeetingTransRequest::StopMeetingTransRequest() + : RoaServiceRequest("tingwu", "2022-09-30") { + setResourcePath("/openapi/meeting-trans/[MeetingId]/stop"}; + setMethod(HttpRequest::Method::Post); +} + +StopMeetingTransRequest::~StopMeetingTransRequest() {} + +string StopMeetingTransRequest::getMeetingId() const { + return meetingId_; +} + +void StopMeetingTransRequest::setMeetingId(string meetingId) { + meetingId_ = meetingId; + setParameter(std::string("MeetingId"), std::to_string(meetingId)); +} + diff --git a/tingwu/src/model/StopMeetingTransResult.cc b/tingwu/src/model/StopMeetingTransResult.cc new file mode 100644 index 000000000..7b651ff50 --- /dev/null +++ b/tingwu/src/model/StopMeetingTransResult.cc @@ -0,0 +1,70 @@ +/* + * 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::Tingwu; +using namespace AlibabaCloud::Tingwu::Model; + +StopMeetingTransResult::StopMeetingTransResult() : + ServiceResult() +{} + +StopMeetingTransResult::StopMeetingTransResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopMeetingTransResult::~StopMeetingTransResult() +{} + +void StopMeetingTransResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["MeetingId"].isNull()) + data_.meetingId = dataNode["MeetingId"].asString(); + if(!dataNode["MeetingStatus"].isNull()) + data_.meetingStatus = dataNode["MeetingStatus"].asString(); + if(!dataNode["MeetingKey"].isNull()) + data_.meetingKey = dataNode["MeetingKey"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string StopMeetingTransResult::getMessage()const +{ + return message_; +} + +StopMeetingTransResult::Data StopMeetingTransResult::getData()const +{ + return data_; +} + +std::string StopMeetingTransResult::getCode()const +{ + return code_; +} +