diff --git a/CHANGELOG b/CHANGELOG index 8bdc1baa7..ab6989d70 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2021-06-09 Version: 1.36.777 +- Public beta version. +- Add Api Overseas. + 2021-06-09 Version: 1.36.776 - Create Lindorm Open api. diff --git a/VERSION b/VERSION index 5bafd9b8a..ed2c02d2e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.776 \ No newline at end of file +1.36.777 \ No newline at end of file diff --git a/aliyuncvc/CMakeLists.txt b/aliyuncvc/CMakeLists.txt index aaf2d4479..ecbcc3f74 100644 --- a/aliyuncvc/CMakeLists.txt +++ b/aliyuncvc/CMakeLists.txt @@ -71,6 +71,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/GetDeviceActiveCodeResult.h include/alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h include/alibabacloud/aliyuncvc/model/GetDeviceInfoResult.h + include/alibabacloud/aliyuncvc/model/GetDeviceListRequest.h + include/alibabacloud/aliyuncvc/model/GetDeviceListResult.h include/alibabacloud/aliyuncvc/model/GetDeviceTokenRequest.h include/alibabacloud/aliyuncvc/model/GetDeviceTokenResult.h include/alibabacloud/aliyuncvc/model/GetMeetingRequest.h @@ -81,10 +83,14 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/GetMeetingMemberResult.h include/alibabacloud/aliyuncvc/model/GetMembersRequest.h include/alibabacloud/aliyuncvc/model/GetMembersResult.h + include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeRequest.h + include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeResult.h include/alibabacloud/aliyuncvc/model/GetStatisticRequest.h include/alibabacloud/aliyuncvc/model/GetStatisticResult.h include/alibabacloud/aliyuncvc/model/GetUserRequest.h include/alibabacloud/aliyuncvc/model/GetUserResult.h + include/alibabacloud/aliyuncvc/model/GetWebSocketTokenRequest.h + include/alibabacloud/aliyuncvc/model/GetWebSocketTokenResult.h include/alibabacloud/aliyuncvc/model/InviteUserRequest.h include/alibabacloud/aliyuncvc/model/InviteUserResult.h include/alibabacloud/aliyuncvc/model/JoinDeviceMeetingRequest.h @@ -115,6 +121,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordResult.h include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordInternationalRequest.h include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordInternationalResult.h + include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionRequest.h + include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionResult.h include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.h include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h include/alibabacloud/aliyuncvc/model/RegisterDeviceRequest.h @@ -123,6 +131,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/RegisterUemDeviceResult.h include/alibabacloud/aliyuncvc/model/SendMeetingCommandRequest.h include/alibabacloud/aliyuncvc/model/SendMeetingCommandResult.h + include/alibabacloud/aliyuncvc/model/SendScreenStartRequest.h + include/alibabacloud/aliyuncvc/model/SendScreenStartResult.h include/alibabacloud/aliyuncvc/model/StartLiveRequest.h include/alibabacloud/aliyuncvc/model/StartLiveResult.h include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h @@ -186,6 +196,8 @@ set(aliyuncvc_src src/model/GetDeviceActiveCodeResult.cc src/model/GetDeviceInfoRequest.cc src/model/GetDeviceInfoResult.cc + src/model/GetDeviceListRequest.cc + src/model/GetDeviceListResult.cc src/model/GetDeviceTokenRequest.cc src/model/GetDeviceTokenResult.cc src/model/GetMeetingRequest.cc @@ -196,10 +208,14 @@ set(aliyuncvc_src src/model/GetMeetingMemberResult.cc src/model/GetMembersRequest.cc src/model/GetMembersResult.cc + src/model/GetScreenVerificationCodeRequest.cc + src/model/GetScreenVerificationCodeResult.cc src/model/GetStatisticRequest.cc src/model/GetStatisticResult.cc src/model/GetUserRequest.cc src/model/GetUserResult.cc + src/model/GetWebSocketTokenRequest.cc + src/model/GetWebSocketTokenResult.cc src/model/InviteUserRequest.cc src/model/InviteUserResult.cc src/model/JoinDeviceMeetingRequest.cc @@ -230,6 +246,8 @@ set(aliyuncvc_src src/model/ModifyMeetingPasswordResult.cc src/model/ModifyMeetingPasswordInternationalRequest.cc src/model/ModifyMeetingPasswordInternationalResult.cc + src/model/QueryMeetingMemberActionRequest.cc + src/model/QueryMeetingMemberActionResult.cc src/model/RefreshDeviceScreenCodeRequest.cc src/model/RefreshDeviceScreenCodeResult.cc src/model/RegisterDeviceRequest.cc @@ -238,6 +256,8 @@ set(aliyuncvc_src src/model/RegisterUemDeviceResult.cc src/model/SendMeetingCommandRequest.cc src/model/SendMeetingCommandResult.cc + src/model/SendScreenStartRequest.cc + src/model/SendScreenStartResult.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 b55472a0d..609b4af3b 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h @@ -72,6 +72,8 @@ #include "model/GetDeviceActiveCodeResult.h" #include "model/GetDeviceInfoRequest.h" #include "model/GetDeviceInfoResult.h" +#include "model/GetDeviceListRequest.h" +#include "model/GetDeviceListResult.h" #include "model/GetDeviceTokenRequest.h" #include "model/GetDeviceTokenResult.h" #include "model/GetMeetingRequest.h" @@ -82,10 +84,14 @@ #include "model/GetMeetingMemberResult.h" #include "model/GetMembersRequest.h" #include "model/GetMembersResult.h" +#include "model/GetScreenVerificationCodeRequest.h" +#include "model/GetScreenVerificationCodeResult.h" #include "model/GetStatisticRequest.h" #include "model/GetStatisticResult.h" #include "model/GetUserRequest.h" #include "model/GetUserResult.h" +#include "model/GetWebSocketTokenRequest.h" +#include "model/GetWebSocketTokenResult.h" #include "model/InviteUserRequest.h" #include "model/InviteUserResult.h" #include "model/JoinDeviceMeetingRequest.h" @@ -116,6 +122,8 @@ #include "model/ModifyMeetingPasswordResult.h" #include "model/ModifyMeetingPasswordInternationalRequest.h" #include "model/ModifyMeetingPasswordInternationalResult.h" +#include "model/QueryMeetingMemberActionRequest.h" +#include "model/QueryMeetingMemberActionResult.h" #include "model/RefreshDeviceScreenCodeRequest.h" #include "model/RefreshDeviceScreenCodeResult.h" #include "model/RegisterDeviceRequest.h" @@ -124,6 +132,8 @@ #include "model/RegisterUemDeviceResult.h" #include "model/SendMeetingCommandRequest.h" #include "model/SendMeetingCommandResult.h" +#include "model/SendScreenStartRequest.h" +#include "model/SendScreenStartResult.h" #include "model/StartLiveRequest.h" #include "model/StartLiveResult.h" #include "model/UpdateDeviceHeartBeatRequest.h" @@ -218,6 +228,9 @@ namespace AlibabaCloud typedef Outcome GetDeviceInfoOutcome; typedef std::future GetDeviceInfoOutcomeCallable; typedef std::function&)> GetDeviceInfoAsyncHandler; + typedef Outcome GetDeviceListOutcome; + typedef std::future GetDeviceListOutcomeCallable; + typedef std::function&)> GetDeviceListAsyncHandler; typedef Outcome GetDeviceTokenOutcome; typedef std::future GetDeviceTokenOutcomeCallable; typedef std::function&)> GetDeviceTokenAsyncHandler; @@ -233,12 +246,18 @@ namespace AlibabaCloud typedef Outcome GetMembersOutcome; typedef std::future GetMembersOutcomeCallable; typedef std::function&)> GetMembersAsyncHandler; + typedef Outcome GetScreenVerificationCodeOutcome; + typedef std::future GetScreenVerificationCodeOutcomeCallable; + typedef std::function&)> GetScreenVerificationCodeAsyncHandler; typedef Outcome GetStatisticOutcome; typedef std::future GetStatisticOutcomeCallable; typedef std::function&)> GetStatisticAsyncHandler; typedef Outcome GetUserOutcome; typedef std::future GetUserOutcomeCallable; typedef std::function&)> GetUserAsyncHandler; + typedef Outcome GetWebSocketTokenOutcome; + typedef std::future GetWebSocketTokenOutcomeCallable; + typedef std::function&)> GetWebSocketTokenAsyncHandler; typedef Outcome InviteUserOutcome; typedef std::future InviteUserOutcomeCallable; typedef std::function&)> InviteUserAsyncHandler; @@ -284,6 +303,9 @@ namespace AlibabaCloud typedef Outcome ModifyMeetingPasswordInternationalOutcome; typedef std::future ModifyMeetingPasswordInternationalOutcomeCallable; typedef std::function&)> ModifyMeetingPasswordInternationalAsyncHandler; + typedef Outcome QueryMeetingMemberActionOutcome; + typedef std::future QueryMeetingMemberActionOutcomeCallable; + typedef std::function&)> QueryMeetingMemberActionAsyncHandler; typedef Outcome RefreshDeviceScreenCodeOutcome; typedef std::future RefreshDeviceScreenCodeOutcomeCallable; typedef std::function&)> RefreshDeviceScreenCodeAsyncHandler; @@ -296,6 +318,9 @@ namespace AlibabaCloud typedef Outcome SendMeetingCommandOutcome; typedef std::future SendMeetingCommandOutcomeCallable; typedef std::function&)> SendMeetingCommandAsyncHandler; + typedef Outcome SendScreenStartOutcome; + typedef std::future SendScreenStartOutcomeCallable; + typedef std::function&)> SendScreenStartAsyncHandler; typedef Outcome StartLiveOutcome; typedef std::future StartLiveOutcomeCallable; typedef std::function&)> StartLiveAsyncHandler; @@ -391,6 +416,9 @@ namespace AlibabaCloud GetDeviceInfoOutcome getDeviceInfo(const Model::GetDeviceInfoRequest &request)const; void getDeviceInfoAsync(const Model::GetDeviceInfoRequest& request, const GetDeviceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDeviceInfoOutcomeCallable getDeviceInfoCallable(const Model::GetDeviceInfoRequest& request) const; + GetDeviceListOutcome getDeviceList(const Model::GetDeviceListRequest &request)const; + void getDeviceListAsync(const Model::GetDeviceListRequest& request, const GetDeviceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDeviceListOutcomeCallable getDeviceListCallable(const Model::GetDeviceListRequest& request) const; GetDeviceTokenOutcome getDeviceToken(const Model::GetDeviceTokenRequest &request)const; void getDeviceTokenAsync(const Model::GetDeviceTokenRequest& request, const GetDeviceTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDeviceTokenOutcomeCallable getDeviceTokenCallable(const Model::GetDeviceTokenRequest& request) const; @@ -406,12 +434,18 @@ namespace AlibabaCloud GetMembersOutcome getMembers(const Model::GetMembersRequest &request)const; void getMembersAsync(const Model::GetMembersRequest& request, const GetMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMembersOutcomeCallable getMembersCallable(const Model::GetMembersRequest& request) const; + GetScreenVerificationCodeOutcome getScreenVerificationCode(const Model::GetScreenVerificationCodeRequest &request)const; + void getScreenVerificationCodeAsync(const Model::GetScreenVerificationCodeRequest& request, const GetScreenVerificationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetScreenVerificationCodeOutcomeCallable getScreenVerificationCodeCallable(const Model::GetScreenVerificationCodeRequest& request) const; GetStatisticOutcome getStatistic(const Model::GetStatisticRequest &request)const; void getStatisticAsync(const Model::GetStatisticRequest& request, const GetStatisticAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStatisticOutcomeCallable getStatisticCallable(const Model::GetStatisticRequest& request) const; GetUserOutcome getUser(const Model::GetUserRequest &request)const; void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + GetWebSocketTokenOutcome getWebSocketToken(const Model::GetWebSocketTokenRequest &request)const; + void getWebSocketTokenAsync(const Model::GetWebSocketTokenRequest& request, const GetWebSocketTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWebSocketTokenOutcomeCallable getWebSocketTokenCallable(const Model::GetWebSocketTokenRequest& request) const; InviteUserOutcome inviteUser(const Model::InviteUserRequest &request)const; void inviteUserAsync(const Model::InviteUserRequest& request, const InviteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InviteUserOutcomeCallable inviteUserCallable(const Model::InviteUserRequest& request) const; @@ -457,6 +491,9 @@ namespace AlibabaCloud ModifyMeetingPasswordInternationalOutcome modifyMeetingPasswordInternational(const Model::ModifyMeetingPasswordInternationalRequest &request)const; void modifyMeetingPasswordInternationalAsync(const Model::ModifyMeetingPasswordInternationalRequest& request, const ModifyMeetingPasswordInternationalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyMeetingPasswordInternationalOutcomeCallable modifyMeetingPasswordInternationalCallable(const Model::ModifyMeetingPasswordInternationalRequest& request) const; + QueryMeetingMemberActionOutcome queryMeetingMemberAction(const Model::QueryMeetingMemberActionRequest &request)const; + void queryMeetingMemberActionAsync(const Model::QueryMeetingMemberActionRequest& request, const QueryMeetingMemberActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryMeetingMemberActionOutcomeCallable queryMeetingMemberActionCallable(const Model::QueryMeetingMemberActionRequest& request) const; RefreshDeviceScreenCodeOutcome refreshDeviceScreenCode(const Model::RefreshDeviceScreenCodeRequest &request)const; void refreshDeviceScreenCodeAsync(const Model::RefreshDeviceScreenCodeRequest& request, const RefreshDeviceScreenCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefreshDeviceScreenCodeOutcomeCallable refreshDeviceScreenCodeCallable(const Model::RefreshDeviceScreenCodeRequest& request) const; @@ -469,6 +506,9 @@ namespace AlibabaCloud 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; + SendScreenStartOutcome sendScreenStart(const Model::SendScreenStartRequest &request)const; + void sendScreenStartAsync(const Model::SendScreenStartRequest& request, const SendScreenStartAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendScreenStartOutcomeCallable sendScreenStartCallable(const Model::SendScreenStartRequest& 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/GetDeviceInfoRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h index 54d1ed4cd..f5b600551 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h @@ -37,9 +37,15 @@ namespace AlibabaCloud std::string getCastScreenCode()const; void setCastScreenCode(const std::string& castScreenCode); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getSn()const; + void setSn(const std::string& sn); private: std::string castScreenCode_; + std::string groupId_; + std::string sn_; }; } diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoResult.h index 03a52fbfc..038e7ee9f 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoResult.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceInfoResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud int status; std::string castScreenCode; std::string iP; + std::string port; std::string sn; std::string ssid; std::string activationCode; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceListRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceListRequest.h new file mode 100644 index 000000000..091df6ee0 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceListRequest.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_GETDEVICELISTREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetDeviceListRequest : public RpcServiceRequest + { + + public: + GetDeviceListRequest(); + ~GetDeviceListRequest(); + + std::string getCastScreenCode()const; + void setCastScreenCode(const std::string& castScreenCode); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + + private: + std::string castScreenCode_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICELISTREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceListResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceListResult.h new file mode 100644 index 000000000..592d88956 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetDeviceListResult.h @@ -0,0 +1,67 @@ +/* + * 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_GETDEVICELISTRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetDeviceListResult : public ServiceResult + { + public: + struct DataItem + { + int status; + std::string castScreenCode; + std::string iP; + std::string port; + std::string sN; + std::string activationCode; + std::string mac; + }; + + + GetDeviceListResult(); + explicit GetDeviceListResult(const std::string &payload); + ~GetDeviceListResult(); + std::string getMessage()const; + std::vector getData()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETDEVICELISTRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetMeetingResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetMeetingResult.h index 60b6b30f2..43e5e8513 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetMeetingResult.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetMeetingResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud std::string userId; long createTime; std::string meetingName; - long validTime; std::string password; + long validTime; }; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeRequest.h new file mode 100644 index 000000000..6339f4d5b --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETSCREENVERIFICATIONCODEREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETSCREENVERIFICATIONCODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetScreenVerificationCodeRequest : public RpcServiceRequest + { + + public: + GetScreenVerificationCodeRequest(); + ~GetScreenVerificationCodeRequest(); + + std::string getCastScreenCode()const; + void setCastScreenCode(const std::string& castScreenCode); + + private: + std::string castScreenCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETSCREENVERIFICATIONCODEREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeResult.h new file mode 100644 index 000000000..befc883da --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetScreenVerificationCodeResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_GETSCREENVERIFICATIONCODERESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETSCREENVERIFICATIONCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetScreenVerificationCodeResult : public ServiceResult + { + public: + + + GetScreenVerificationCodeResult(); + explicit GetScreenVerificationCodeResult(const std::string &payload); + ~GetScreenVerificationCodeResult(); + std::string getMessage()const; + std::string getScreenVerificationCode()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string screenVerificationCode_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETSCREENVERIFICATIONCODERESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetWebSocketTokenRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetWebSocketTokenRequest.h new file mode 100644 index 000000000..69c81d370 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetWebSocketTokenRequest.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_GETWEBSOCKETTOKENREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETWEBSOCKETTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetWebSocketTokenRequest : public RpcServiceRequest + { + + public: + GetWebSocketTokenRequest(); + ~GetWebSocketTokenRequest(); + + std::string getSessionId()const; + void setSessionId(const std::string& sessionId); + std::string getOldToken()const; + void setOldToken(const std::string& oldToken); + + private: + std::string sessionId_; + std::string oldToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETWEBSOCKETTOKENREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetWebSocketTokenResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetWebSocketTokenResult.h new file mode 100644 index 000000000..e6bcf66ef --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetWebSocketTokenResult.h @@ -0,0 +1,63 @@ +/* + * 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_GETWEBSOCKETTOKENRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETWEBSOCKETTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetWebSocketTokenResult : public ServiceResult + { + public: + struct Data + { + std::string token; + std::string authWsUrl; + std::string wsOuterReConnTime; + }; + + + GetWebSocketTokenResult(); + explicit GetWebSocketTokenResult(const std::string &payload); + ~GetWebSocketTokenResult(); + std::string getMessage()const; + Data getData()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETWEBSOCKETTOKENRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h index 19c372ce5..d1ee5c385 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string createTime; std::string manufacturer; std::string pictureUrl; + std::string startUpPictureUrl; std::string sN; std::string conferenceName; std::string activationCode; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h index c92d686f4..2a4e3da9c 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string screenCode; std::string ip; + std::string port; std::string ssId; std::string mac; }; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDevicesResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDevicesResult.h index 58315dc6d..813aa6f65 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDevicesResult.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListDevicesResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string castScreenCode; std::string createTime; std::string pictureUrl; + std::string startUpPictureUrl; std::string sN; std::string conferenceName; std::string activationCode; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionRequest.h new file mode 100644 index 000000000..c94a50549 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionRequest.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_QUERYMEETINGMEMBERACTIONREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_QUERYMEETINGMEMBERACTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT QueryMeetingMemberActionRequest : public RpcServiceRequest + { + + public: + QueryMeetingMemberActionRequest(); + ~QueryMeetingMemberActionRequest(); + + std::string getMeetingUnitKey()const; + void setMeetingUnitKey(const std::string& meetingUnitKey); + long getEndTime()const; + void setEndTime(long endTime); + std::string getMemberUUID()const; + void setMemberUUID(const std::string& memberUUID); + long getStartTime()const; + void setStartTime(long startTime); + std::string getMeetingUUID()const; + void setMeetingUUID(const std::string& meetingUUID); + + private: + std::string meetingUnitKey_; + long endTime_; + std::string memberUUID_; + long startTime_; + std::string meetingUUID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_QUERYMEETINGMEMBERACTIONREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionResult.h new file mode 100644 index 000000000..8c4a19894 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/QueryMeetingMemberActionResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_QUERYMEETINGMEMBERACTIONRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_QUERYMEETINGMEMBERACTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT QueryMeetingMemberActionResult : public ServiceResult + { + public: + struct ErrorCodeListItem + { + long errorCodeCount; + long time; + }; + + + QueryMeetingMemberActionResult(); + explicit QueryMeetingMemberActionResult(const std::string &payload); + ~QueryMeetingMemberActionResult(); + std::string getMessage()const; + int getMeetingStatus()const; + int getVideoStatus()const; + int getAudioStatus()const; + long getErrorCodeCount()const; + int getErrorCode()const; + std::vector getErrorCodeList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int meetingStatus_; + int videoStatus_; + int audioStatus_; + long errorCodeCount_; + int errorCode_; + std::vector errorCodeList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_QUERYMEETINGMEMBERACTIONRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendScreenStartRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendScreenStartRequest.h new file mode 100644 index 000000000..6d3a38f52 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendScreenStartRequest.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_SENDSCREENSTARTREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_SENDSCREENSTARTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT SendScreenStartRequest : public RpcServiceRequest + { + + public: + SendScreenStartRequest(); + ~SendScreenStartRequest(); + + std::string getCastScreenCode()const; + void setCastScreenCode(const std::string& castScreenCode); + std::string getSessionId()const; + void setSessionId(const std::string& sessionId); + + private: + std::string castScreenCode_; + std::string sessionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_SENDSCREENSTARTREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendScreenStartResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendScreenStartResult.h new file mode 100644 index 000000000..3e988fdf8 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/SendScreenStartResult.h @@ -0,0 +1,93 @@ +/* + * 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_SENDSCREENSTARTRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_SENDSCREENSTARTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT SendScreenStartResult : public ServiceResult + { + public: + struct Data + { + struct AuthWsChannelConfig + { + std::string token; + std::string authWsUrl; + int wsOuterReConnTime; + }; + struct ShareConfig + { + int shareConfigMaxFrameRate; + int shareConfigMinFrameRate; + int maxScreenShareBitrate; + int maxMultiScreenShareBitrate; + }; + struct SignallingServerConfig + { + std::string sendMessageUrl; + std::string shareScreenMeetingRobUrl; + std::string getMessageUrl; + std::string getReceiverInfoUrl; + std::string clientHeartBeatUrl; + }; + struct IceServersItem + { + std::string credential; + std::string userName; + std::string url; + }; + ShareConfig shareConfig; + std::string receiverInfo; + AuthWsChannelConfig authWsChannelConfig; + std::string sessionId; + std::vector iceServers; + SignallingServerConfig signallingServerConfig; + }; + + + SendScreenStartResult(); + explicit SendScreenStartResult(const std::string &payload); + ~SendScreenStartResult(); + std::string getMessage()const; + Data getData()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_SENDSCREENSTARTRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/src/AliyuncvcClient.cc b/aliyuncvc/src/AliyuncvcClient.cc index 115f5484f..58d2315c2 100644 --- a/aliyuncvc/src/AliyuncvcClient.cc +++ b/aliyuncvc/src/AliyuncvcClient.cc @@ -951,6 +951,42 @@ AliyuncvcClient::GetDeviceInfoOutcomeCallable AliyuncvcClient::getDeviceInfoCall return task->get_future(); } +AliyuncvcClient::GetDeviceListOutcome AliyuncvcClient::getDeviceList(const GetDeviceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDeviceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDeviceListOutcome(GetDeviceListResult(outcome.result())); + else + return GetDeviceListOutcome(outcome.error()); +} + +void AliyuncvcClient::getDeviceListAsync(const GetDeviceListRequest& request, const GetDeviceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDeviceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::GetDeviceListOutcomeCallable AliyuncvcClient::getDeviceListCallable(const GetDeviceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDeviceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::GetDeviceTokenOutcome AliyuncvcClient::getDeviceToken(const GetDeviceTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1167,42 @@ AliyuncvcClient::GetMembersOutcomeCallable AliyuncvcClient::getMembersCallable(c return task->get_future(); } +AliyuncvcClient::GetScreenVerificationCodeOutcome AliyuncvcClient::getScreenVerificationCode(const GetScreenVerificationCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetScreenVerificationCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetScreenVerificationCodeOutcome(GetScreenVerificationCodeResult(outcome.result())); + else + return GetScreenVerificationCodeOutcome(outcome.error()); +} + +void AliyuncvcClient::getScreenVerificationCodeAsync(const GetScreenVerificationCodeRequest& request, const GetScreenVerificationCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getScreenVerificationCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::GetScreenVerificationCodeOutcomeCallable AliyuncvcClient::getScreenVerificationCodeCallable(const GetScreenVerificationCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getScreenVerificationCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::GetStatisticOutcome AliyuncvcClient::getStatistic(const GetStatisticRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1275,42 @@ AliyuncvcClient::GetUserOutcomeCallable AliyuncvcClient::getUserCallable(const G return task->get_future(); } +AliyuncvcClient::GetWebSocketTokenOutcome AliyuncvcClient::getWebSocketToken(const GetWebSocketTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWebSocketTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWebSocketTokenOutcome(GetWebSocketTokenResult(outcome.result())); + else + return GetWebSocketTokenOutcome(outcome.error()); +} + +void AliyuncvcClient::getWebSocketTokenAsync(const GetWebSocketTokenRequest& request, const GetWebSocketTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWebSocketToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::GetWebSocketTokenOutcomeCallable AliyuncvcClient::getWebSocketTokenCallable(const GetWebSocketTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWebSocketToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::InviteUserOutcome AliyuncvcClient::inviteUser(const InviteUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +1851,42 @@ AliyuncvcClient::ModifyMeetingPasswordInternationalOutcomeCallable AliyuncvcClie return task->get_future(); } +AliyuncvcClient::QueryMeetingMemberActionOutcome AliyuncvcClient::queryMeetingMemberAction(const QueryMeetingMemberActionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryMeetingMemberActionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryMeetingMemberActionOutcome(QueryMeetingMemberActionResult(outcome.result())); + else + return QueryMeetingMemberActionOutcome(outcome.error()); +} + +void AliyuncvcClient::queryMeetingMemberActionAsync(const QueryMeetingMemberActionRequest& request, const QueryMeetingMemberActionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryMeetingMemberAction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::QueryMeetingMemberActionOutcomeCallable AliyuncvcClient::queryMeetingMemberActionCallable(const QueryMeetingMemberActionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryMeetingMemberAction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::RefreshDeviceScreenCodeOutcome AliyuncvcClient::refreshDeviceScreenCode(const RefreshDeviceScreenCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2031,42 @@ AliyuncvcClient::SendMeetingCommandOutcomeCallable AliyuncvcClient::sendMeetingC return task->get_future(); } +AliyuncvcClient::SendScreenStartOutcome AliyuncvcClient::sendScreenStart(const SendScreenStartRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendScreenStartOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendScreenStartOutcome(SendScreenStartResult(outcome.result())); + else + return SendScreenStartOutcome(outcome.error()); +} + +void AliyuncvcClient::sendScreenStartAsync(const SendScreenStartRequest& request, const SendScreenStartAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendScreenStart(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::SendScreenStartOutcomeCallable AliyuncvcClient::sendScreenStartCallable(const SendScreenStartRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendScreenStart(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/GetDeviceInfoRequest.cc b/aliyuncvc/src/model/GetDeviceInfoRequest.cc index efe9ace0b..54df30003 100644 --- a/aliyuncvc/src/model/GetDeviceInfoRequest.cc +++ b/aliyuncvc/src/model/GetDeviceInfoRequest.cc @@ -35,6 +35,28 @@ std::string GetDeviceInfoRequest::getCastScreenCode()const void GetDeviceInfoRequest::setCastScreenCode(const std::string& castScreenCode) { castScreenCode_ = castScreenCode; - setBodyParameter("CastScreenCode", castScreenCode); + setParameter("CastScreenCode", castScreenCode); +} + +std::string GetDeviceInfoRequest::getGroupId()const +{ + return groupId_; +} + +void GetDeviceInfoRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string GetDeviceInfoRequest::getSn()const +{ + return sn_; +} + +void GetDeviceInfoRequest::setSn(const std::string& sn) +{ + sn_ = sn; + setParameter("Sn", sn); } diff --git a/aliyuncvc/src/model/GetDeviceInfoResult.cc b/aliyuncvc/src/model/GetDeviceInfoResult.cc index 3652e1cc0..1740eaba4 100644 --- a/aliyuncvc/src/model/GetDeviceInfoResult.cc +++ b/aliyuncvc/src/model/GetDeviceInfoResult.cc @@ -40,24 +40,26 @@ void GetDeviceInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto deviceNode = value["Device"]; - if(!deviceNode["ActivationCode"].isNull()) - device_.activationCode = deviceNode["ActivationCode"].asString(); - if(!deviceNode["CastScreenCode"].isNull()) - device_.castScreenCode = deviceNode["CastScreenCode"].asString(); - if(!deviceNode["Sn"].isNull()) - device_.sn = deviceNode["Sn"].asString(); if(!deviceNode["Status"].isNull()) device_.status = std::stoi(deviceNode["Status"].asString()); + if(!deviceNode["CastScreenCode"].isNull()) + device_.castScreenCode = deviceNode["CastScreenCode"].asString(); if(!deviceNode["IP"].isNull()) device_.iP = deviceNode["IP"].asString(); - if(!deviceNode["Mac"].isNull()) - device_.mac = deviceNode["Mac"].asString(); + if(!deviceNode["Port"].isNull()) + device_.port = deviceNode["Port"].asString(); + if(!deviceNode["Sn"].isNull()) + device_.sn = deviceNode["Sn"].asString(); if(!deviceNode["Ssid"].isNull()) device_.ssid = deviceNode["Ssid"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!deviceNode["ActivationCode"].isNull()) + device_.activationCode = deviceNode["ActivationCode"].asString(); + if(!deviceNode["Mac"].isNull()) + device_.mac = deviceNode["Mac"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aliyuncvc/src/model/GetDeviceListRequest.cc b/aliyuncvc/src/model/GetDeviceListRequest.cc new file mode 100644 index 000000000..9a62feb48 --- /dev/null +++ b/aliyuncvc/src/model/GetDeviceListRequest.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::GetDeviceListRequest; + +GetDeviceListRequest::GetDeviceListRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "GetDeviceList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDeviceListRequest::~GetDeviceListRequest() +{} + +std::string GetDeviceListRequest::getCastScreenCode()const +{ + return castScreenCode_; +} + +void GetDeviceListRequest::setCastScreenCode(const std::string& castScreenCode) +{ + castScreenCode_ = castScreenCode; + setParameter("CastScreenCode", castScreenCode); +} + +std::string GetDeviceListRequest::getGroupId()const +{ + return groupId_; +} + +void GetDeviceListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + diff --git a/aliyuncvc/src/model/GetDeviceListResult.cc b/aliyuncvc/src/model/GetDeviceListResult.cc new file mode 100644 index 000000000..345cffaa2 --- /dev/null +++ b/aliyuncvc/src/model/GetDeviceListResult.cc @@ -0,0 +1,90 @@ +/* + * 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; + +GetDeviceListResult::GetDeviceListResult() : + ServiceResult() +{} + +GetDeviceListResult::GetDeviceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDeviceListResult::~GetDeviceListResult() +{} + +void GetDeviceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = std::stoi(valueDataDataItem["Status"].asString()); + if(!valueDataDataItem["CastScreenCode"].isNull()) + dataObject.castScreenCode = valueDataDataItem["CastScreenCode"].asString(); + if(!valueDataDataItem["IP"].isNull()) + dataObject.iP = valueDataDataItem["IP"].asString(); + if(!valueDataDataItem["Port"].isNull()) + dataObject.port = valueDataDataItem["Port"].asString(); + if(!valueDataDataItem["SN"].isNull()) + dataObject.sN = valueDataDataItem["SN"].asString(); + if(!valueDataDataItem["ActivationCode"].isNull()) + dataObject.activationCode = valueDataDataItem["ActivationCode"].asString(); + if(!valueDataDataItem["Mac"].isNull()) + dataObject.mac = valueDataDataItem["Mac"].asString(); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetDeviceListResult::getMessage()const +{ + return message_; +} + +std::vector GetDeviceListResult::getData()const +{ + return data_; +} + +int GetDeviceListResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetDeviceListResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/GetMeetingResult.cc b/aliyuncvc/src/model/GetMeetingResult.cc index ac32edf34..46ea5647f 100644 --- a/aliyuncvc/src/model/GetMeetingResult.cc +++ b/aliyuncvc/src/model/GetMeetingResult.cc @@ -40,40 +40,40 @@ void GetMeetingResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto meetingInfoNode = value["MeetingInfo"]; - if(!meetingInfoNode["MeetingName"].isNull()) - meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString(); - if(!meetingInfoNode["ValidTime"].isNull()) - meetingInfo_.validTime = std::stol(meetingInfoNode["ValidTime"].asString()); - if(!meetingInfoNode["MeetingCode"].isNull()) - meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString(); - if(!meetingInfoNode["CreateTime"].isNull()) - meetingInfo_.createTime = std::stol(meetingInfoNode["CreateTime"].asString()); - if(!meetingInfoNode["UserId"].isNull()) - meetingInfo_.userId = meetingInfoNode["UserId"].asString(); - if(!meetingInfoNode["MeetingUUID"].isNull()) - meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString(); if(!meetingInfoNode["Password"].isNull()) meetingInfo_.password = meetingInfoNode["Password"].asString(); + if(!meetingInfoNode["MeetingUUID"].isNull()) + meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString(); + if(!meetingInfoNode["ValidTime"].isNull()) + meetingInfo_.validTime = std::stol(meetingInfoNode["ValidTime"].asString()); + if(!meetingInfoNode["CreateTime"].isNull()) + meetingInfo_.createTime = std::stol(meetingInfoNode["CreateTime"].asString()); + if(!meetingInfoNode["MeetingName"].isNull()) + meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString(); + if(!meetingInfoNode["UserId"].isNull()) + meetingInfo_.userId = meetingInfoNode["UserId"].asString(); + if(!meetingInfoNode["MeetingCode"].isNull()) + meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString(); auto allMemberListNode = meetingInfoNode["MemberList"]["MemberListItem"]; for (auto meetingInfoNodeMemberListMemberListItem : allMemberListNode) { MeetingInfo::MemberListItem memberListItemObject; - if(!meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].isNull()) - memberListItemObject.userAvatarUrl = meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].asString(); - if(!meetingInfoNodeMemberListMemberListItem["MemberUUID"].isNull()) - memberListItemObject.memberUUID = meetingInfoNodeMemberListMemberListItem["MemberUUID"].asString(); - if(!meetingInfoNodeMemberListMemberListItem["UserName"].isNull()) - memberListItemObject.userName = meetingInfoNodeMemberListMemberListItem["UserName"].asString(); - if(!meetingInfoNodeMemberListMemberListItem["UserId"].isNull()) - memberListItemObject.userId = meetingInfoNodeMemberListMemberListItem["UserId"].asString(); if(!meetingInfoNodeMemberListMemberListItem["Status"].isNull()) memberListItemObject.status = meetingInfoNodeMemberListMemberListItem["Status"].asString(); + if(!meetingInfoNodeMemberListMemberListItem["MemberUUID"].isNull()) + memberListItemObject.memberUUID = meetingInfoNodeMemberListMemberListItem["MemberUUID"].asString(); + if(!meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].isNull()) + memberListItemObject.userAvatarUrl = meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].asString(); + if(!meetingInfoNodeMemberListMemberListItem["UserId"].isNull()) + memberListItemObject.userId = meetingInfoNodeMemberListMemberListItem["UserId"].asString(); + if(!meetingInfoNodeMemberListMemberListItem["UserName"].isNull()) + memberListItemObject.userName = meetingInfoNodeMemberListMemberListItem["UserName"].asString(); meetingInfo_.memberList.push_back(memberListItemObject); } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/aliyuncvc/src/model/GetScreenVerificationCodeRequest.cc b/aliyuncvc/src/model/GetScreenVerificationCodeRequest.cc new file mode 100644 index 000000000..f8e088f06 --- /dev/null +++ b/aliyuncvc/src/model/GetScreenVerificationCodeRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Aliyuncvc::Model::GetScreenVerificationCodeRequest; + +GetScreenVerificationCodeRequest::GetScreenVerificationCodeRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "GetScreenVerificationCode") +{ + setMethod(HttpRequest::Method::Post); +} + +GetScreenVerificationCodeRequest::~GetScreenVerificationCodeRequest() +{} + +std::string GetScreenVerificationCodeRequest::getCastScreenCode()const +{ + return castScreenCode_; +} + +void GetScreenVerificationCodeRequest::setCastScreenCode(const std::string& castScreenCode) +{ + castScreenCode_ = castScreenCode; + setBodyParameter("CastScreenCode", castScreenCode); +} + diff --git a/aliyuncvc/src/model/GetScreenVerificationCodeResult.cc b/aliyuncvc/src/model/GetScreenVerificationCodeResult.cc new file mode 100644 index 000000000..63f9238cd --- /dev/null +++ b/aliyuncvc/src/model/GetScreenVerificationCodeResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +GetScreenVerificationCodeResult::GetScreenVerificationCodeResult() : + ServiceResult() +{} + +GetScreenVerificationCodeResult::GetScreenVerificationCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetScreenVerificationCodeResult::~GetScreenVerificationCodeResult() +{} + +void GetScreenVerificationCodeResult::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"; + if(!value["ScreenVerificationCode"].isNull()) + screenVerificationCode_ = value["ScreenVerificationCode"].asString(); + +} + +std::string GetScreenVerificationCodeResult::getMessage()const +{ + return message_; +} + +std::string GetScreenVerificationCodeResult::getScreenVerificationCode()const +{ + return screenVerificationCode_; +} + +int GetScreenVerificationCodeResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetScreenVerificationCodeResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/GetWebSocketTokenRequest.cc b/aliyuncvc/src/model/GetWebSocketTokenRequest.cc new file mode 100644 index 000000000..6d37423ee --- /dev/null +++ b/aliyuncvc/src/model/GetWebSocketTokenRequest.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::GetWebSocketTokenRequest; + +GetWebSocketTokenRequest::GetWebSocketTokenRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "GetWebSocketToken") +{ + setMethod(HttpRequest::Method::Post); +} + +GetWebSocketTokenRequest::~GetWebSocketTokenRequest() +{} + +std::string GetWebSocketTokenRequest::getSessionId()const +{ + return sessionId_; +} + +void GetWebSocketTokenRequest::setSessionId(const std::string& sessionId) +{ + sessionId_ = sessionId; + setParameter("SessionId", sessionId); +} + +std::string GetWebSocketTokenRequest::getOldToken()const +{ + return oldToken_; +} + +void GetWebSocketTokenRequest::setOldToken(const std::string& oldToken) +{ + oldToken_ = oldToken; + setParameter("OldToken", oldToken); +} + diff --git a/aliyuncvc/src/model/GetWebSocketTokenResult.cc b/aliyuncvc/src/model/GetWebSocketTokenResult.cc new file mode 100644 index 000000000..37214af5c --- /dev/null +++ b/aliyuncvc/src/model/GetWebSocketTokenResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +GetWebSocketTokenResult::GetWebSocketTokenResult() : + ServiceResult() +{} + +GetWebSocketTokenResult::GetWebSocketTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWebSocketTokenResult::~GetWebSocketTokenResult() +{} + +void GetWebSocketTokenResult::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["AuthWsUrl"].isNull()) + data_.authWsUrl = dataNode["AuthWsUrl"].asString(); + if(!dataNode["Token"].isNull()) + data_.token = dataNode["Token"].asString(); + if(!dataNode["WsOuterReConnTime"].isNull()) + data_.wsOuterReConnTime = dataNode["WsOuterReConnTime"].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 GetWebSocketTokenResult::getMessage()const +{ + return message_; +} + +GetWebSocketTokenResult::Data GetWebSocketTokenResult::getData()const +{ + return data_; +} + +int GetWebSocketTokenResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetWebSocketTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/ListConferenceDevicesResult.cc b/aliyuncvc/src/model/ListConferenceDevicesResult.cc index eaacd7a64..91b3c5662 100644 --- a/aliyuncvc/src/model/ListConferenceDevicesResult.cc +++ b/aliyuncvc/src/model/ListConferenceDevicesResult.cc @@ -70,6 +70,8 @@ void ListConferenceDevicesResult::parse(const std::string &payload) dataObject.status = conferencesDatasNodeConferencesdata["Status"].asString(); if(!conferencesDatasNodeConferencesdata["CastScreenCode"].isNull()) dataObject.castScreenCode = conferencesDatasNodeConferencesdata["CastScreenCode"].asString(); + if(!conferencesDatasNodeConferencesdata["StartUpPictureUrl"].isNull()) + dataObject.startUpPictureUrl = conferencesDatasNodeConferencesdata["StartUpPictureUrl"].asString(); conferencesDatas_.conferences.push_back(dataObject); } if(!value["ErrorCode"].isNull()) diff --git a/aliyuncvc/src/model/ListDeviceIpResult.cc b/aliyuncvc/src/model/ListDeviceIpResult.cc index c02a42be8..5b3e860e8 100644 --- a/aliyuncvc/src/model/ListDeviceIpResult.cc +++ b/aliyuncvc/src/model/ListDeviceIpResult.cc @@ -51,6 +51,8 @@ void ListDeviceIpResult::parse(const std::string &payload) devicesObject.mac = valueDevicesDevicesItem["Mac"].asString(); if(!valueDevicesDevicesItem["SsId"].isNull()) devicesObject.ssId = valueDevicesDevicesItem["SsId"].asString(); + if(!valueDevicesDevicesItem["Port"].isNull()) + devicesObject.port = valueDevicesDevicesItem["Port"].asString(); devices_.push_back(devicesObject); } if(!value["ErrorCode"].isNull()) diff --git a/aliyuncvc/src/model/ListDevicesResult.cc b/aliyuncvc/src/model/ListDevicesResult.cc index d88040368..56e60cdb9 100644 --- a/aliyuncvc/src/model/ListDevicesResult.cc +++ b/aliyuncvc/src/model/ListDevicesResult.cc @@ -66,6 +66,8 @@ void ListDevicesResult::parse(const std::string &payload) deviceObject.status = dataNodeDevicesDevice["Status"].asString(); if(!dataNodeDevicesDevice["CastScreenCode"].isNull()) deviceObject.castScreenCode = dataNodeDevicesDevice["CastScreenCode"].asString(); + if(!dataNodeDevicesDevice["StartUpPictureUrl"].isNull()) + deviceObject.startUpPictureUrl = dataNodeDevicesDevice["StartUpPictureUrl"].asString(); data_.devices.push_back(deviceObject); } if(!value["ErrorCode"].isNull()) diff --git a/aliyuncvc/src/model/QueryMeetingMemberActionRequest.cc b/aliyuncvc/src/model/QueryMeetingMemberActionRequest.cc new file mode 100644 index 000000000..b24956727 --- /dev/null +++ b/aliyuncvc/src/model/QueryMeetingMemberActionRequest.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::QueryMeetingMemberActionRequest; + +QueryMeetingMemberActionRequest::QueryMeetingMemberActionRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "QueryMeetingMemberAction") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryMeetingMemberActionRequest::~QueryMeetingMemberActionRequest() +{} + +std::string QueryMeetingMemberActionRequest::getMeetingUnitKey()const +{ + return meetingUnitKey_; +} + +void QueryMeetingMemberActionRequest::setMeetingUnitKey(const std::string& meetingUnitKey) +{ + meetingUnitKey_ = meetingUnitKey; + setBodyParameter("MeetingUnitKey", meetingUnitKey); +} + +long QueryMeetingMemberActionRequest::getEndTime()const +{ + return endTime_; +} + +void QueryMeetingMemberActionRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setBodyParameter("EndTime", std::to_string(endTime)); +} + +std::string QueryMeetingMemberActionRequest::getMemberUUID()const +{ + return memberUUID_; +} + +void QueryMeetingMemberActionRequest::setMemberUUID(const std::string& memberUUID) +{ + memberUUID_ = memberUUID; + setBodyParameter("MemberUUID", memberUUID); +} + +long QueryMeetingMemberActionRequest::getStartTime()const +{ + return startTime_; +} + +void QueryMeetingMemberActionRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setBodyParameter("StartTime", std::to_string(startTime)); +} + +std::string QueryMeetingMemberActionRequest::getMeetingUUID()const +{ + return meetingUUID_; +} + +void QueryMeetingMemberActionRequest::setMeetingUUID(const std::string& meetingUUID) +{ + meetingUUID_ = meetingUUID; + setBodyParameter("MeetingUUID", meetingUUID); +} + diff --git a/aliyuncvc/src/model/QueryMeetingMemberActionResult.cc b/aliyuncvc/src/model/QueryMeetingMemberActionResult.cc new file mode 100644 index 000000000..b8bd0e946 --- /dev/null +++ b/aliyuncvc/src/model/QueryMeetingMemberActionResult.cc @@ -0,0 +1,108 @@ +/* + * 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; + +QueryMeetingMemberActionResult::QueryMeetingMemberActionResult() : + ServiceResult() +{} + +QueryMeetingMemberActionResult::QueryMeetingMemberActionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryMeetingMemberActionResult::~QueryMeetingMemberActionResult() +{} + +void QueryMeetingMemberActionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allErrorCodeListNode = value["ErrorCodeList"]["ErrorCodeListItem"]; + for (auto valueErrorCodeListErrorCodeListItem : allErrorCodeListNode) + { + ErrorCodeListItem errorCodeListObject; + if(!valueErrorCodeListErrorCodeListItem["ErrorCodeCount"].isNull()) + errorCodeListObject.errorCodeCount = std::stol(valueErrorCodeListErrorCodeListItem["ErrorCodeCount"].asString()); + if(!valueErrorCodeListErrorCodeListItem["Time"].isNull()) + errorCodeListObject.time = std::stol(valueErrorCodeListErrorCodeListItem["Time"].asString()); + errorCodeList_.push_back(errorCodeListObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["MeetingStatus"].isNull()) + meetingStatus_ = std::stoi(value["MeetingStatus"].asString()); + if(!value["VideoStatus"].isNull()) + videoStatus_ = std::stoi(value["VideoStatus"].asString()); + if(!value["AudioStatus"].isNull()) + audioStatus_ = std::stoi(value["AudioStatus"].asString()); + if(!value["ErrorCodeCount"].isNull()) + errorCodeCount_ = std::stol(value["ErrorCodeCount"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryMeetingMemberActionResult::getMessage()const +{ + return message_; +} + +int QueryMeetingMemberActionResult::getMeetingStatus()const +{ + return meetingStatus_; +} + +int QueryMeetingMemberActionResult::getVideoStatus()const +{ + return videoStatus_; +} + +int QueryMeetingMemberActionResult::getAudioStatus()const +{ + return audioStatus_; +} + +long QueryMeetingMemberActionResult::getErrorCodeCount()const +{ + return errorCodeCount_; +} + +int QueryMeetingMemberActionResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector QueryMeetingMemberActionResult::getErrorCodeList()const +{ + return errorCodeList_; +} + +bool QueryMeetingMemberActionResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/SendScreenStartRequest.cc b/aliyuncvc/src/model/SendScreenStartRequest.cc new file mode 100644 index 000000000..904d3d655 --- /dev/null +++ b/aliyuncvc/src/model/SendScreenStartRequest.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::SendScreenStartRequest; + +SendScreenStartRequest::SendScreenStartRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "SendScreenStart") +{ + setMethod(HttpRequest::Method::Post); +} + +SendScreenStartRequest::~SendScreenStartRequest() +{} + +std::string SendScreenStartRequest::getCastScreenCode()const +{ + return castScreenCode_; +} + +void SendScreenStartRequest::setCastScreenCode(const std::string& castScreenCode) +{ + castScreenCode_ = castScreenCode; + setBodyParameter("CastScreenCode", castScreenCode); +} + +std::string SendScreenStartRequest::getSessionId()const +{ + return sessionId_; +} + +void SendScreenStartRequest::setSessionId(const std::string& sessionId) +{ + sessionId_ = sessionId; + setBodyParameter("SessionId", sessionId); +} + diff --git a/aliyuncvc/src/model/SendScreenStartResult.cc b/aliyuncvc/src/model/SendScreenStartResult.cc new file mode 100644 index 000000000..1a6b1884e --- /dev/null +++ b/aliyuncvc/src/model/SendScreenStartResult.cc @@ -0,0 +1,114 @@ +/* + * 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; + +SendScreenStartResult::SendScreenStartResult() : + ServiceResult() +{} + +SendScreenStartResult::SendScreenStartResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendScreenStartResult::~SendScreenStartResult() +{} + +void SendScreenStartResult::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["ReceiverInfo"].isNull()) + data_.receiverInfo = dataNode["ReceiverInfo"].asString(); + if(!dataNode["SessionId"].isNull()) + data_.sessionId = dataNode["SessionId"].asString(); + auto allIceServersNode = dataNode["IceServers"]["IceServersItem"]; + for (auto dataNodeIceServersIceServersItem : allIceServersNode) + { + Data::IceServersItem iceServersItemObject; + if(!dataNodeIceServersIceServersItem["Credential"].isNull()) + iceServersItemObject.credential = dataNodeIceServersIceServersItem["Credential"].asString(); + if(!dataNodeIceServersIceServersItem["Url"].isNull()) + iceServersItemObject.url = dataNodeIceServersIceServersItem["Url"].asString(); + if(!dataNodeIceServersIceServersItem["UserName"].isNull()) + iceServersItemObject.userName = dataNodeIceServersIceServersItem["UserName"].asString(); + data_.iceServers.push_back(iceServersItemObject); + } + auto authWsChannelConfigNode = dataNode["AuthWsChannelConfig"]; + if(!authWsChannelConfigNode["AuthWsUrl"].isNull()) + data_.authWsChannelConfig.authWsUrl = authWsChannelConfigNode["AuthWsUrl"].asString(); + if(!authWsChannelConfigNode["Token"].isNull()) + data_.authWsChannelConfig.token = authWsChannelConfigNode["Token"].asString(); + if(!authWsChannelConfigNode["WsOuterReConnTime"].isNull()) + data_.authWsChannelConfig.wsOuterReConnTime = std::stoi(authWsChannelConfigNode["WsOuterReConnTime"].asString()); + auto shareConfigNode = dataNode["ShareConfig"]; + if(!shareConfigNode["MaxMultiScreenShareBitrate"].isNull()) + data_.shareConfig.maxMultiScreenShareBitrate = std::stoi(shareConfigNode["MaxMultiScreenShareBitrate"].asString()); + if(!shareConfigNode["MaxScreenShareBitrate"].isNull()) + data_.shareConfig.maxScreenShareBitrate = std::stoi(shareConfigNode["MaxScreenShareBitrate"].asString()); + if(!shareConfigNode["ShareConfigMaxFrameRate"].isNull()) + data_.shareConfig.shareConfigMaxFrameRate = std::stoi(shareConfigNode["ShareConfigMaxFrameRate"].asString()); + if(!shareConfigNode["ShareConfigMinFrameRate"].isNull()) + data_.shareConfig.shareConfigMinFrameRate = std::stoi(shareConfigNode["ShareConfigMinFrameRate"].asString()); + auto signallingServerConfigNode = dataNode["SignallingServerConfig"]; + if(!signallingServerConfigNode["ClientHeartBeatUrl"].isNull()) + data_.signallingServerConfig.clientHeartBeatUrl = signallingServerConfigNode["ClientHeartBeatUrl"].asString(); + if(!signallingServerConfigNode["GetMessageUrl"].isNull()) + data_.signallingServerConfig.getMessageUrl = signallingServerConfigNode["GetMessageUrl"].asString(); + if(!signallingServerConfigNode["GetReceiverInfoUrl"].isNull()) + data_.signallingServerConfig.getReceiverInfoUrl = signallingServerConfigNode["GetReceiverInfoUrl"].asString(); + if(!signallingServerConfigNode["SendMessageUrl"].isNull()) + data_.signallingServerConfig.sendMessageUrl = signallingServerConfigNode["SendMessageUrl"].asString(); + if(!signallingServerConfigNode["ShareScreenMeetingRobUrl"].isNull()) + data_.signallingServerConfig.shareScreenMeetingRobUrl = signallingServerConfigNode["ShareScreenMeetingRobUrl"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SendScreenStartResult::getMessage()const +{ + return message_; +} + +SendScreenStartResult::Data SendScreenStartResult::getData()const +{ + return data_; +} + +int SendScreenStartResult::getErrorCode()const +{ + return errorCode_; +} + +bool SendScreenStartResult::getSuccess()const +{ + return success_; +} +