diff --git a/CHANGELOG b/CHANGELOG index a6e4b6b4a..b47b64377 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2020-08-18 Version: 1.36.596 +- Public beta version. +- Add Api Overseas. + 2020-08-17 Version: 1.36.595 - Add list event algorithm details. diff --git a/VERSION b/VERSION index 38d4964ea..66c382635 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.595 \ No newline at end of file +1.36.596 \ No newline at end of file diff --git a/aliyuncvc/CMakeLists.txt b/aliyuncvc/CMakeLists.txt index 7541c8d05..066fa98a2 100644 --- a/aliyuncvc/CMakeLists.txt +++ b/aliyuncvc/CMakeLists.txt @@ -31,6 +31,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/BatchDeleteDevicesResult.h include/alibabacloud/aliyuncvc/model/CallDeviceRequest.h include/alibabacloud/aliyuncvc/model/CallDeviceResult.h + include/alibabacloud/aliyuncvc/model/ConferenceToLiveRequest.h + include/alibabacloud/aliyuncvc/model/ConferenceToLiveResult.h include/alibabacloud/aliyuncvc/model/CreateDeviceMeetingRequest.h include/alibabacloud/aliyuncvc/model/CreateDeviceMeetingResult.h include/alibabacloud/aliyuncvc/model/CreateEvaluationRequest.h @@ -47,6 +49,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/CreateUserInternationalResult.h include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h + include/alibabacloud/aliyuncvc/model/CustomLayoutRequest.h + include/alibabacloud/aliyuncvc/model/CustomLayoutResult.h include/alibabacloud/aliyuncvc/model/DeleteDeviceRequest.h include/alibabacloud/aliyuncvc/model/DeleteDeviceResult.h include/alibabacloud/aliyuncvc/model/DeleteLiveRequest.h @@ -55,6 +59,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/DeleteMeetingResult.h include/alibabacloud/aliyuncvc/model/DeleteUserRequest.h include/alibabacloud/aliyuncvc/model/DeleteUserResult.h + include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerRequest.h + include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerResult.h include/alibabacloud/aliyuncvc/model/EndDeviceMeetingRequest.h include/alibabacloud/aliyuncvc/model/EndDeviceMeetingResult.h include/alibabacloud/aliyuncvc/model/EndLiveRequest.h @@ -103,6 +109,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/RegisterDeviceResult.h include/alibabacloud/aliyuncvc/model/RegisterUemDeviceRequest.h include/alibabacloud/aliyuncvc/model/RegisterUemDeviceResult.h + include/alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.h + include/alibabacloud/aliyuncvc/model/SendMeetingCommandResult.h include/alibabacloud/aliyuncvc/model/StartLiveRequest.h include/alibabacloud/aliyuncvc/model/StartLiveResult.h include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h @@ -124,6 +132,8 @@ set(aliyuncvc_src src/model/BatchDeleteDevicesResult.cc src/model/CallDeviceRequest.cc src/model/CallDeviceResult.cc + src/model/ConferenceToLiveRequest.cc + src/model/ConferenceToLiveResult.cc src/model/CreateDeviceMeetingRequest.cc src/model/CreateDeviceMeetingResult.cc src/model/CreateEvaluationRequest.cc @@ -140,6 +150,8 @@ set(aliyuncvc_src src/model/CreateUserInternationalResult.cc src/model/CustomGonggeLayoutRequest.cc src/model/CustomGonggeLayoutResult.cc + src/model/CustomLayoutRequest.cc + src/model/CustomLayoutResult.cc src/model/DeleteDeviceRequest.cc src/model/DeleteDeviceResult.cc src/model/DeleteLiveRequest.cc @@ -148,6 +160,8 @@ set(aliyuncvc_src src/model/DeleteMeetingResult.cc src/model/DeleteUserRequest.cc src/model/DeleteUserResult.cc + src/model/EnableLiveSpeakerRequest.cc + src/model/EnableLiveSpeakerResult.cc src/model/EndDeviceMeetingRequest.cc src/model/EndDeviceMeetingResult.cc src/model/EndLiveRequest.cc @@ -196,6 +210,8 @@ set(aliyuncvc_src src/model/RegisterDeviceResult.cc src/model/RegisterUemDeviceRequest.cc src/model/RegisterUemDeviceResult.cc + src/model/SendMeetingCommandRequest.cc + src/model/SendMeetingCommandResult.cc src/model/StartLiveRequest.cc src/model/StartLiveResult.cc src/model/UpdateDeviceHeartBeatRequest.cc diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h index f62817314..3db757b9e 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h @@ -32,6 +32,8 @@ #include "model/BatchDeleteDevicesResult.h" #include "model/CallDeviceRequest.h" #include "model/CallDeviceResult.h" +#include "model/ConferenceToLiveRequest.h" +#include "model/ConferenceToLiveResult.h" #include "model/CreateDeviceMeetingRequest.h" #include "model/CreateDeviceMeetingResult.h" #include "model/CreateEvaluationRequest.h" @@ -48,6 +50,8 @@ #include "model/CreateUserInternationalResult.h" #include "model/CustomGonggeLayoutRequest.h" #include "model/CustomGonggeLayoutResult.h" +#include "model/CustomLayoutRequest.h" +#include "model/CustomLayoutResult.h" #include "model/DeleteDeviceRequest.h" #include "model/DeleteDeviceResult.h" #include "model/DeleteLiveRequest.h" @@ -56,6 +60,8 @@ #include "model/DeleteMeetingResult.h" #include "model/DeleteUserRequest.h" #include "model/DeleteUserResult.h" +#include "model/EnableLiveSpeakerRequest.h" +#include "model/EnableLiveSpeakerResult.h" #include "model/EndDeviceMeetingRequest.h" #include "model/EndDeviceMeetingResult.h" #include "model/EndLiveRequest.h" @@ -104,6 +110,8 @@ #include "model/RegisterDeviceResult.h" #include "model/RegisterUemDeviceRequest.h" #include "model/RegisterUemDeviceResult.h" +#include "model/SendMeetingCommandRequest.h" +#include "model/SendMeetingCommandResult.h" #include "model/StartLiveRequest.h" #include "model/StartLiveResult.h" #include "model/UpdateDeviceHeartBeatRequest.h" @@ -136,6 +144,9 @@ namespace AlibabaCloud typedef Outcome CallDeviceOutcome; typedef std::future CallDeviceOutcomeCallable; typedef std::function&)> CallDeviceAsyncHandler; + typedef Outcome ConferenceToLiveOutcome; + typedef std::future ConferenceToLiveOutcomeCallable; + typedef std::function&)> ConferenceToLiveAsyncHandler; typedef Outcome CreateDeviceMeetingOutcome; typedef std::future CreateDeviceMeetingOutcomeCallable; typedef std::function&)> CreateDeviceMeetingAsyncHandler; @@ -160,6 +171,9 @@ namespace AlibabaCloud typedef Outcome CustomGonggeLayoutOutcome; typedef std::future CustomGonggeLayoutOutcomeCallable; typedef std::function&)> CustomGonggeLayoutAsyncHandler; + typedef Outcome CustomLayoutOutcome; + typedef std::future CustomLayoutOutcomeCallable; + typedef std::function&)> CustomLayoutAsyncHandler; typedef Outcome DeleteDeviceOutcome; typedef std::future DeleteDeviceOutcomeCallable; typedef std::function&)> DeleteDeviceAsyncHandler; @@ -172,6 +186,9 @@ namespace AlibabaCloud typedef Outcome DeleteUserOutcome; typedef std::future DeleteUserOutcomeCallable; typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome EnableLiveSpeakerOutcome; + typedef std::future EnableLiveSpeakerOutcomeCallable; + typedef std::function&)> EnableLiveSpeakerAsyncHandler; typedef Outcome EndDeviceMeetingOutcome; typedef std::future EndDeviceMeetingOutcomeCallable; typedef std::function&)> EndDeviceMeetingAsyncHandler; @@ -244,6 +261,9 @@ namespace AlibabaCloud typedef Outcome RegisterUemDeviceOutcome; typedef std::future RegisterUemDeviceOutcomeCallable; typedef std::function&)> RegisterUemDeviceAsyncHandler; + typedef Outcome SendMeetingCommandOutcome; + typedef std::future SendMeetingCommandOutcomeCallable; + typedef std::function&)> SendMeetingCommandAsyncHandler; typedef Outcome StartLiveOutcome; typedef std::future StartLiveOutcomeCallable; typedef std::function&)> StartLiveAsyncHandler; @@ -276,6 +296,9 @@ namespace AlibabaCloud CallDeviceOutcome callDevice(const Model::CallDeviceRequest &request)const; void callDeviceAsync(const Model::CallDeviceRequest& request, const CallDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CallDeviceOutcomeCallable callDeviceCallable(const Model::CallDeviceRequest& request) const; + ConferenceToLiveOutcome conferenceToLive(const Model::ConferenceToLiveRequest &request)const; + void conferenceToLiveAsync(const Model::ConferenceToLiveRequest& request, const ConferenceToLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConferenceToLiveOutcomeCallable conferenceToLiveCallable(const Model::ConferenceToLiveRequest& request) const; CreateDeviceMeetingOutcome createDeviceMeeting(const Model::CreateDeviceMeetingRequest &request)const; void createDeviceMeetingAsync(const Model::CreateDeviceMeetingRequest& request, const CreateDeviceMeetingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDeviceMeetingOutcomeCallable createDeviceMeetingCallable(const Model::CreateDeviceMeetingRequest& request) const; @@ -300,6 +323,9 @@ namespace AlibabaCloud CustomGonggeLayoutOutcome customGonggeLayout(const Model::CustomGonggeLayoutRequest &request)const; void customGonggeLayoutAsync(const Model::CustomGonggeLayoutRequest& request, const CustomGonggeLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CustomGonggeLayoutOutcomeCallable customGonggeLayoutCallable(const Model::CustomGonggeLayoutRequest& request) const; + CustomLayoutOutcome customLayout(const Model::CustomLayoutRequest &request)const; + void customLayoutAsync(const Model::CustomLayoutRequest& request, const CustomLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CustomLayoutOutcomeCallable customLayoutCallable(const Model::CustomLayoutRequest& request) const; DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const; void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const; @@ -312,6 +338,9 @@ namespace AlibabaCloud DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + EnableLiveSpeakerOutcome enableLiveSpeaker(const Model::EnableLiveSpeakerRequest &request)const; + void enableLiveSpeakerAsync(const Model::EnableLiveSpeakerRequest& request, const EnableLiveSpeakerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableLiveSpeakerOutcomeCallable enableLiveSpeakerCallable(const Model::EnableLiveSpeakerRequest& request) const; EndDeviceMeetingOutcome endDeviceMeeting(const Model::EndDeviceMeetingRequest &request)const; void endDeviceMeetingAsync(const Model::EndDeviceMeetingRequest& request, const EndDeviceMeetingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EndDeviceMeetingOutcomeCallable endDeviceMeetingCallable(const Model::EndDeviceMeetingRequest& request) const; @@ -384,6 +413,9 @@ namespace AlibabaCloud RegisterUemDeviceOutcome registerUemDevice(const Model::RegisterUemDeviceRequest &request)const; void registerUemDeviceAsync(const Model::RegisterUemDeviceRequest& request, const RegisterUemDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterUemDeviceOutcomeCallable registerUemDeviceCallable(const Model::RegisterUemDeviceRequest& request) const; + SendMeetingCommandOutcome sendMeetingCommand(const Model::SendMeetingCommandRequest &request)const; + void sendMeetingCommandAsync(const Model::SendMeetingCommandRequest& request, const SendMeetingCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendMeetingCommandOutcomeCallable sendMeetingCommandCallable(const Model::SendMeetingCommandRequest& request) const; StartLiveOutcome startLive(const Model::StartLiveRequest &request)const; void startLiveAsync(const Model::StartLiveRequest& request, const StartLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartLiveOutcomeCallable startLiveCallable(const Model::StartLiveRequest& request) const; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ConferenceToLiveRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ConferenceToLiveRequest.h new file mode 100644 index 000000000..6f244d78b --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ConferenceToLiveRequest.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_ALIYUNCVC_MODEL_CONFERENCETOLIVEREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT ConferenceToLiveRequest : public RpcServiceRequest + { + + public: + ConferenceToLiveRequest(); + ~ConferenceToLiveRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + bool getOpenPasswordFlag()const; + void setOpenPasswordFlag(bool openPasswordFlag); + std::string getMeetingUUID()const; + void setMeetingUUID(const std::string& meetingUUID); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getLiveName()const; + void setLiveName(const std::string& liveName); + + private: + std::string userId_; + bool openPasswordFlag_; + std::string meetingUUID_; + std::string password_; + std::string liveName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVEREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ConferenceToLiveResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ConferenceToLiveResult.h new file mode 100644 index 000000000..b8c256af7 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ConferenceToLiveResult.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_ALIYUNCVC_MODEL_CONFERENCETOLIVERESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT ConferenceToLiveResult : public ServiceResult + { + public: + struct LiveInfo + { + std::string liveUUID; + }; + + + ConferenceToLiveResult(); + explicit ConferenceToLiveResult(const std::string &payload); + ~ConferenceToLiveResult(); + std::string getMessage()const; + int getErrorCode()const; + bool getSuccess()const; + LiveInfo getLiveInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int errorCode_; + bool success_; + LiveInfo liveInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CONFERENCETOLIVERESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/CreateLiveRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CreateLiveRequest.h index a9a390867..2316bebcc 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/CreateLiveRequest.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CreateLiveRequest.h @@ -35,8 +35,6 @@ namespace AlibabaCloud CreateLiveRequest(); ~CreateLiveRequest(); - std::string getMemo()const; - void setMemo(const std::string& memo); std::string getUserId()const; void setUserId(const std::string& userId); bool getOpenPasswordFlag()const; @@ -47,7 +45,6 @@ namespace AlibabaCloud void setLiveName(const std::string& liveName); private: - std::string memo_; std::string userId_; bool openPasswordFlag_; std::string password_; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomLayoutRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomLayoutRequest.h new file mode 100644 index 000000000..d30463232 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomLayoutRequest.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_ALIYUNCVC_MODEL_CUSTOMLAYOUTREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomLayoutRequest : public RpcServiceRequest + { + + public: + CustomLayoutRequest(); + ~CustomLayoutRequest(); + + std::string getLiveUUID()const; + void setLiveUUID(const std::string& liveUUID); + std::string getLayoutInfo()const; + void setLayoutInfo(const std::string& layoutInfo); + + private: + std::string liveUUID_; + std::string layoutInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomLayoutResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomLayoutResult.h new file mode 100644 index 000000000..f5dda49a1 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomLayoutResult.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_ALIYUNCVC_MODEL_CUSTOMLAYOUTRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomLayoutResult : public ServiceResult + { + public: + + + CustomLayoutResult(); + explicit CustomLayoutResult(const std::string &payload); + ~CustomLayoutResult(); + std::string getMessage()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMLAYOUTRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerRequest.h new file mode 100644 index 000000000..8343b0d66 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerRequest.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_ALIYUNCVC_MODEL_ENABLELIVESPEAKERREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT EnableLiveSpeakerRequest : public RpcServiceRequest + { + + public: + EnableLiveSpeakerRequest(); + ~EnableLiveSpeakerRequest(); + + std::string getLiveUUID()const; + void setLiveUUID(const std::string& liveUUID); + bool getEnableSpeakerFlag()const; + void setEnableSpeakerFlag(bool enableSpeakerFlag); + + private: + std::string liveUUID_; + bool enableSpeakerFlag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerResult.h new file mode 100644 index 000000000..a5099d029 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/EnableLiveSpeakerResult.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_ALIYUNCVC_MODEL_ENABLELIVESPEAKERRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT EnableLiveSpeakerResult : public ServiceResult + { + public: + + + EnableLiveSpeakerResult(); + explicit EnableLiveSpeakerResult(const std::string &payload); + ~EnableLiveSpeakerResult(); + std::string getMessage()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_ENABLELIVESPEAKERRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.h new file mode 100644 index 000000000..1c0bce846 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.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_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT SendMeetingCommandRequest : public RpcServiceRequest + { + + public: + SendMeetingCommandRequest(); + ~SendMeetingCommandRequest(); + + std::string getOperatorMemberUUID()const; + void setOperatorMemberUUID(const std::string& operatorMemberUUID); + std::string getMemberUUID()const; + void setMemberUUID(const std::string& memberUUID); + int getSendType()const; + void setSendType(int sendType); + std::string getCommand()const; + void setCommand(const std::string& command); + std::string getMeetingUUID()const; + void setMeetingUUID(const std::string& meetingUUID); + + private: + std::string operatorMemberUUID_; + std::string memberUUID_; + int sendType_; + std::string command_; + std::string meetingUUID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendMeetingCommandResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendMeetingCommandResult.h new file mode 100644 index 000000000..57d25d23d --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendMeetingCommandResult.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_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT SendMeetingCommandResult : public ServiceResult + { + public: + + + SendMeetingCommandResult(); + explicit SendMeetingCommandResult(const std::string &payload); + ~SendMeetingCommandResult(); + std::string getMessage()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_SENDMEETINGCOMMANDRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/StartLiveRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/StartLiveRequest.h index ff13d1bd2..33b848866 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/StartLiveRequest.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/StartLiveRequest.h @@ -37,12 +37,18 @@ namespace AlibabaCloud std::string getLiveUUID()const; void setLiveUUID(const std::string& liveUUID); + std::string getPushInfo()const; + void setPushInfo(const std::string& pushInfo); std::string getUserId()const; void setUserId(const std::string& userId); + std::string getLayoutInfo()const; + void setLayoutInfo(const std::string& layoutInfo); private: std::string liveUUID_; + std::string pushInfo_; std::string userId_; + std::string layoutInfo_; }; } diff --git a/aliyuncvc/src/AliyuncvcClient.cc b/aliyuncvc/src/AliyuncvcClient.cc index 8a1147601..d4968d2d7 100644 --- a/aliyuncvc/src/AliyuncvcClient.cc +++ b/aliyuncvc/src/AliyuncvcClient.cc @@ -231,6 +231,42 @@ AliyuncvcClient::CallDeviceOutcomeCallable AliyuncvcClient::callDeviceCallable(c return task->get_future(); } +AliyuncvcClient::ConferenceToLiveOutcome AliyuncvcClient::conferenceToLive(const ConferenceToLiveRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConferenceToLiveOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConferenceToLiveOutcome(ConferenceToLiveResult(outcome.result())); + else + return ConferenceToLiveOutcome(outcome.error()); +} + +void AliyuncvcClient::conferenceToLiveAsync(const ConferenceToLiveRequest& request, const ConferenceToLiveAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, conferenceToLive(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::ConferenceToLiveOutcomeCallable AliyuncvcClient::conferenceToLiveCallable(const ConferenceToLiveRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->conferenceToLive(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::CreateDeviceMeetingOutcome AliyuncvcClient::createDeviceMeeting(const CreateDeviceMeetingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +555,42 @@ AliyuncvcClient::CustomGonggeLayoutOutcomeCallable AliyuncvcClient::customGongge return task->get_future(); } +AliyuncvcClient::CustomLayoutOutcome AliyuncvcClient::customLayout(const CustomLayoutRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CustomLayoutOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CustomLayoutOutcome(CustomLayoutResult(outcome.result())); + else + return CustomLayoutOutcome(outcome.error()); +} + +void AliyuncvcClient::customLayoutAsync(const CustomLayoutRequest& request, const CustomLayoutAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, customLayout(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::CustomLayoutOutcomeCallable AliyuncvcClient::customLayoutCallable(const CustomLayoutRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->customLayout(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::DeleteDeviceOutcome AliyuncvcClient::deleteDevice(const DeleteDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +735,42 @@ AliyuncvcClient::DeleteUserOutcomeCallable AliyuncvcClient::deleteUserCallable(c return task->get_future(); } +AliyuncvcClient::EnableLiveSpeakerOutcome AliyuncvcClient::enableLiveSpeaker(const EnableLiveSpeakerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableLiveSpeakerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableLiveSpeakerOutcome(EnableLiveSpeakerResult(outcome.result())); + else + return EnableLiveSpeakerOutcome(outcome.error()); +} + +void AliyuncvcClient::enableLiveSpeakerAsync(const EnableLiveSpeakerRequest& request, const EnableLiveSpeakerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableLiveSpeaker(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::EnableLiveSpeakerOutcomeCallable AliyuncvcClient::enableLiveSpeakerCallable(const EnableLiveSpeakerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableLiveSpeaker(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::EndDeviceMeetingOutcome AliyuncvcClient::endDeviceMeeting(const EndDeviceMeetingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1635,42 @@ AliyuncvcClient::RegisterUemDeviceOutcomeCallable AliyuncvcClient::registerUemDe return task->get_future(); } +AliyuncvcClient::SendMeetingCommandOutcome AliyuncvcClient::sendMeetingCommand(const SendMeetingCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendMeetingCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendMeetingCommandOutcome(SendMeetingCommandResult(outcome.result())); + else + return SendMeetingCommandOutcome(outcome.error()); +} + +void AliyuncvcClient::sendMeetingCommandAsync(const SendMeetingCommandRequest& request, const SendMeetingCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendMeetingCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::SendMeetingCommandOutcomeCallable AliyuncvcClient::sendMeetingCommandCallable(const SendMeetingCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendMeetingCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::StartLiveOutcome AliyuncvcClient::startLive(const StartLiveRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/aliyuncvc/src/model/ConferenceToLiveRequest.cc b/aliyuncvc/src/model/ConferenceToLiveRequest.cc new file mode 100644 index 000000000..da98c52e6 --- /dev/null +++ b/aliyuncvc/src/model/ConferenceToLiveRequest.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::Aliyuncvc::Model::ConferenceToLiveRequest; + +ConferenceToLiveRequest::ConferenceToLiveRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "ConferenceToLive") +{ + setMethod(HttpRequest::Method::Post); +} + +ConferenceToLiveRequest::~ConferenceToLiveRequest() +{} + +std::string ConferenceToLiveRequest::getUserId()const +{ + return userId_; +} + +void ConferenceToLiveRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +bool ConferenceToLiveRequest::getOpenPasswordFlag()const +{ + return openPasswordFlag_; +} + +void ConferenceToLiveRequest::setOpenPasswordFlag(bool openPasswordFlag) +{ + openPasswordFlag_ = openPasswordFlag; + setBodyParameter("OpenPasswordFlag", openPasswordFlag ? "true" : "false"); +} + +std::string ConferenceToLiveRequest::getMeetingUUID()const +{ + return meetingUUID_; +} + +void ConferenceToLiveRequest::setMeetingUUID(const std::string& meetingUUID) +{ + meetingUUID_ = meetingUUID; + setBodyParameter("MeetingUUID", meetingUUID); +} + +std::string ConferenceToLiveRequest::getPassword()const +{ + return password_; +} + +void ConferenceToLiveRequest::setPassword(const std::string& password) +{ + password_ = password; + setBodyParameter("Password", password); +} + +std::string ConferenceToLiveRequest::getLiveName()const +{ + return liveName_; +} + +void ConferenceToLiveRequest::setLiveName(const std::string& liveName) +{ + liveName_ = liveName; + setBodyParameter("LiveName", liveName); +} + diff --git a/aliyuncvc/src/model/ConferenceToLiveResult.cc b/aliyuncvc/src/model/ConferenceToLiveResult.cc new file mode 100644 index 000000000..be2df2c31 --- /dev/null +++ b/aliyuncvc/src/model/ConferenceToLiveResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +ConferenceToLiveResult::ConferenceToLiveResult() : + ServiceResult() +{} + +ConferenceToLiveResult::ConferenceToLiveResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConferenceToLiveResult::~ConferenceToLiveResult() +{} + +void ConferenceToLiveResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto liveInfoNode = value["LiveInfo"]; + if(!liveInfoNode["LiveUUID"].isNull()) + liveInfo_.liveUUID = liveInfoNode["LiveUUID"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ConferenceToLiveResult::getMessage()const +{ + return message_; +} + +int ConferenceToLiveResult::getErrorCode()const +{ + return errorCode_; +} + +bool ConferenceToLiveResult::getSuccess()const +{ + return success_; +} + +ConferenceToLiveResult::LiveInfo ConferenceToLiveResult::getLiveInfo()const +{ + return liveInfo_; +} + diff --git a/aliyuncvc/src/model/CreateLiveRequest.cc b/aliyuncvc/src/model/CreateLiveRequest.cc index ce4f0b6ca..2b254d35a 100644 --- a/aliyuncvc/src/model/CreateLiveRequest.cc +++ b/aliyuncvc/src/model/CreateLiveRequest.cc @@ -27,17 +27,6 @@ CreateLiveRequest::CreateLiveRequest() : CreateLiveRequest::~CreateLiveRequest() {} -std::string CreateLiveRequest::getMemo()const -{ - return memo_; -} - -void CreateLiveRequest::setMemo(const std::string& memo) -{ - memo_ = memo; - setBodyParameter("Memo", memo); -} - std::string CreateLiveRequest::getUserId()const { return userId_; diff --git a/aliyuncvc/src/model/CustomLayoutRequest.cc b/aliyuncvc/src/model/CustomLayoutRequest.cc new file mode 100644 index 000000000..7a8cd1d53 --- /dev/null +++ b/aliyuncvc/src/model/CustomLayoutRequest.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::Aliyuncvc::Model::CustomLayoutRequest; + +CustomLayoutRequest::CustomLayoutRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "CustomLayout") +{ + setMethod(HttpRequest::Method::Post); +} + +CustomLayoutRequest::~CustomLayoutRequest() +{} + +std::string CustomLayoutRequest::getLiveUUID()const +{ + return liveUUID_; +} + +void CustomLayoutRequest::setLiveUUID(const std::string& liveUUID) +{ + liveUUID_ = liveUUID; + setBodyParameter("LiveUUID", liveUUID); +} + +std::string CustomLayoutRequest::getLayoutInfo()const +{ + return layoutInfo_; +} + +void CustomLayoutRequest::setLayoutInfo(const std::string& layoutInfo) +{ + layoutInfo_ = layoutInfo; + setBodyParameter("LayoutInfo", layoutInfo); +} + diff --git a/aliyuncvc/src/model/CustomLayoutResult.cc b/aliyuncvc/src/model/CustomLayoutResult.cc new file mode 100644 index 000000000..51375d489 --- /dev/null +++ b/aliyuncvc/src/model/CustomLayoutResult.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::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +CustomLayoutResult::CustomLayoutResult() : + ServiceResult() +{} + +CustomLayoutResult::CustomLayoutResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CustomLayoutResult::~CustomLayoutResult() +{} + +void CustomLayoutResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CustomLayoutResult::getMessage()const +{ + return message_; +} + +int CustomLayoutResult::getErrorCode()const +{ + return errorCode_; +} + +bool CustomLayoutResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/EnableLiveSpeakerRequest.cc b/aliyuncvc/src/model/EnableLiveSpeakerRequest.cc new file mode 100644 index 000000000..59ee90ee5 --- /dev/null +++ b/aliyuncvc/src/model/EnableLiveSpeakerRequest.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::Aliyuncvc::Model::EnableLiveSpeakerRequest; + +EnableLiveSpeakerRequest::EnableLiveSpeakerRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "EnableLiveSpeaker") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableLiveSpeakerRequest::~EnableLiveSpeakerRequest() +{} + +std::string EnableLiveSpeakerRequest::getLiveUUID()const +{ + return liveUUID_; +} + +void EnableLiveSpeakerRequest::setLiveUUID(const std::string& liveUUID) +{ + liveUUID_ = liveUUID; + setBodyParameter("LiveUUID", liveUUID); +} + +bool EnableLiveSpeakerRequest::getEnableSpeakerFlag()const +{ + return enableSpeakerFlag_; +} + +void EnableLiveSpeakerRequest::setEnableSpeakerFlag(bool enableSpeakerFlag) +{ + enableSpeakerFlag_ = enableSpeakerFlag; + setBodyParameter("EnableSpeakerFlag", enableSpeakerFlag ? "true" : "false"); +} + diff --git a/aliyuncvc/src/model/EnableLiveSpeakerResult.cc b/aliyuncvc/src/model/EnableLiveSpeakerResult.cc new file mode 100644 index 000000000..b738adea4 --- /dev/null +++ b/aliyuncvc/src/model/EnableLiveSpeakerResult.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::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +EnableLiveSpeakerResult::EnableLiveSpeakerResult() : + ServiceResult() +{} + +EnableLiveSpeakerResult::EnableLiveSpeakerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableLiveSpeakerResult::~EnableLiveSpeakerResult() +{} + +void EnableLiveSpeakerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string EnableLiveSpeakerResult::getMessage()const +{ + return message_; +} + +int EnableLiveSpeakerResult::getErrorCode()const +{ + return errorCode_; +} + +bool EnableLiveSpeakerResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/SendMeetingCommandRequest.cc b/aliyuncvc/src/model/SendMeetingCommandRequest.cc new file mode 100644 index 000000000..e99694846 --- /dev/null +++ b/aliyuncvc/src/model/SendMeetingCommandRequest.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::Aliyuncvc::Model::SendMeetingCommandRequest; + +SendMeetingCommandRequest::SendMeetingCommandRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "SendMeetingCommand") +{ + setMethod(HttpRequest::Method::Post); +} + +SendMeetingCommandRequest::~SendMeetingCommandRequest() +{} + +std::string SendMeetingCommandRequest::getOperatorMemberUUID()const +{ + return operatorMemberUUID_; +} + +void SendMeetingCommandRequest::setOperatorMemberUUID(const std::string& operatorMemberUUID) +{ + operatorMemberUUID_ = operatorMemberUUID; + setBodyParameter("OperatorMemberUUID", operatorMemberUUID); +} + +std::string SendMeetingCommandRequest::getMemberUUID()const +{ + return memberUUID_; +} + +void SendMeetingCommandRequest::setMemberUUID(const std::string& memberUUID) +{ + memberUUID_ = memberUUID; + setParameter("MemberUUID", memberUUID); +} + +int SendMeetingCommandRequest::getSendType()const +{ + return sendType_; +} + +void SendMeetingCommandRequest::setSendType(int sendType) +{ + sendType_ = sendType; + setBodyParameter("SendType", std::to_string(sendType)); +} + +std::string SendMeetingCommandRequest::getCommand()const +{ + return command_; +} + +void SendMeetingCommandRequest::setCommand(const std::string& command) +{ + command_ = command; + setBodyParameter("Command", command); +} + +std::string SendMeetingCommandRequest::getMeetingUUID()const +{ + return meetingUUID_; +} + +void SendMeetingCommandRequest::setMeetingUUID(const std::string& meetingUUID) +{ + meetingUUID_ = meetingUUID; + setParameter("MeetingUUID", meetingUUID); +} + diff --git a/aliyuncvc/src/model/SendMeetingCommandResult.cc b/aliyuncvc/src/model/SendMeetingCommandResult.cc new file mode 100644 index 000000000..5f7f297d2 --- /dev/null +++ b/aliyuncvc/src/model/SendMeetingCommandResult.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::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +SendMeetingCommandResult::SendMeetingCommandResult() : + ServiceResult() +{} + +SendMeetingCommandResult::SendMeetingCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendMeetingCommandResult::~SendMeetingCommandResult() +{} + +void SendMeetingCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SendMeetingCommandResult::getMessage()const +{ + return message_; +} + +int SendMeetingCommandResult::getErrorCode()const +{ + return errorCode_; +} + +bool SendMeetingCommandResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/StartLiveRequest.cc b/aliyuncvc/src/model/StartLiveRequest.cc index bf2544ad1..774cd1546 100644 --- a/aliyuncvc/src/model/StartLiveRequest.cc +++ b/aliyuncvc/src/model/StartLiveRequest.cc @@ -38,6 +38,17 @@ void StartLiveRequest::setLiveUUID(const std::string& liveUUID) setBodyParameter("LiveUUID", liveUUID); } +std::string StartLiveRequest::getPushInfo()const +{ + return pushInfo_; +} + +void StartLiveRequest::setPushInfo(const std::string& pushInfo) +{ + pushInfo_ = pushInfo; + setBodyParameter("PushInfo", pushInfo); +} + std::string StartLiveRequest::getUserId()const { return userId_; @@ -49,3 +60,14 @@ void StartLiveRequest::setUserId(const std::string& userId) setBodyParameter("UserId", userId); } +std::string StartLiveRequest::getLayoutInfo()const +{ + return layoutInfo_; +} + +void StartLiveRequest::setLayoutInfo(const std::string& layoutInfo) +{ + layoutInfo_ = layoutInfo; + setBodyParameter("LayoutInfo", layoutInfo); +} +