diff --git a/CHANGELOG b/CHANGELOG index efa5d3ca7..8a4238ca2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ - Public beta version. - Add Api Overseas. +2020-09-25 Version: patch +- Public beta version. +- Add Api Overseas. + 2020-09-24 Version: patch - Support create for serverlesshbase. diff --git a/aliyuncvc/CMakeLists.txt b/aliyuncvc/CMakeLists.txt index ab2b5c53a..aaf2d4479 100644 --- a/aliyuncvc/CMakeLists.txt +++ b/aliyuncvc/CMakeLists.txt @@ -65,6 +65,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/EndDeviceMeetingResult.h include/alibabacloud/aliyuncvc/model/EndLiveRequest.h include/alibabacloud/aliyuncvc/model/EndLiveResult.h + include/alibabacloud/aliyuncvc/model/GetAccountInfoRequest.h + include/alibabacloud/aliyuncvc/model/GetAccountInfoResult.h include/alibabacloud/aliyuncvc/model/GetDeviceActiveCodeRequest.h include/alibabacloud/aliyuncvc/model/GetDeviceActiveCodeResult.h include/alibabacloud/aliyuncvc/model/GetDeviceInfoRequest.h @@ -79,6 +81,8 @@ 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/GetStatisticRequest.h + include/alibabacloud/aliyuncvc/model/GetStatisticResult.h include/alibabacloud/aliyuncvc/model/GetUserRequest.h include/alibabacloud/aliyuncvc/model/GetUserResult.h include/alibabacloud/aliyuncvc/model/InviteUserRequest.h @@ -91,6 +95,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/JoinMeetingResult.h include/alibabacloud/aliyuncvc/model/JoinMeetingInternationalRequest.h include/alibabacloud/aliyuncvc/model/JoinMeetingInternationalResult.h + include/alibabacloud/aliyuncvc/model/ListConferenceDevicesRequest.h + include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h include/alibabacloud/aliyuncvc/model/ListDeviceIpRequest.h include/alibabacloud/aliyuncvc/model/ListDeviceIpResult.h include/alibabacloud/aliyuncvc/model/ListDevicesRequest.h @@ -103,10 +109,14 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/ListMembersResult.h include/alibabacloud/aliyuncvc/model/ListUsersRequest.h include/alibabacloud/aliyuncvc/model/ListUsersResult.h + include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundRequest.h + include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundResult.h include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordRequest.h include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordResult.h include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordInternationalRequest.h include/alibabacloud/aliyuncvc/model/ModifyMeetingPasswordInternationalResult.h + include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.h + include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h include/alibabacloud/aliyuncvc/model/RegisterDeviceRequest.h include/alibabacloud/aliyuncvc/model/RegisterDeviceResult.h include/alibabacloud/aliyuncvc/model/RegisterUemDeviceRequest.h @@ -117,6 +127,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/StartLiveResult.h include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatResult.h + include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureRequest.h + include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureResult.h include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h include/alibabacloud/aliyuncvc/model/UpdateLivePasswordRequest.h @@ -168,6 +180,8 @@ set(aliyuncvc_src src/model/EndDeviceMeetingResult.cc src/model/EndLiveRequest.cc src/model/EndLiveResult.cc + src/model/GetAccountInfoRequest.cc + src/model/GetAccountInfoResult.cc src/model/GetDeviceActiveCodeRequest.cc src/model/GetDeviceActiveCodeResult.cc src/model/GetDeviceInfoRequest.cc @@ -182,6 +196,8 @@ set(aliyuncvc_src src/model/GetMeetingMemberResult.cc src/model/GetMembersRequest.cc src/model/GetMembersResult.cc + src/model/GetStatisticRequest.cc + src/model/GetStatisticResult.cc src/model/GetUserRequest.cc src/model/GetUserResult.cc src/model/InviteUserRequest.cc @@ -194,6 +210,8 @@ set(aliyuncvc_src src/model/JoinMeetingResult.cc src/model/JoinMeetingInternationalRequest.cc src/model/JoinMeetingInternationalResult.cc + src/model/ListConferenceDevicesRequest.cc + src/model/ListConferenceDevicesResult.cc src/model/ListDeviceIpRequest.cc src/model/ListDeviceIpResult.cc src/model/ListDevicesRequest.cc @@ -206,10 +224,14 @@ set(aliyuncvc_src src/model/ListMembersResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc + src/model/ModifyDeviceBackgroundRequest.cc + src/model/ModifyDeviceBackgroundResult.cc src/model/ModifyMeetingPasswordRequest.cc src/model/ModifyMeetingPasswordResult.cc src/model/ModifyMeetingPasswordInternationalRequest.cc src/model/ModifyMeetingPasswordInternationalResult.cc + src/model/RefreshDeviceScreenCodeRequest.cc + src/model/RefreshDeviceScreenCodeResult.cc src/model/RegisterDeviceRequest.cc src/model/RegisterDeviceResult.cc src/model/RegisterUemDeviceRequest.cc @@ -220,6 +242,8 @@ set(aliyuncvc_src src/model/StartLiveResult.cc src/model/UpdateDeviceHeartBeatRequest.cc src/model/UpdateDeviceHeartBeatResult.cc + src/model/UpdateDeviceStartupPictureRequest.cc + src/model/UpdateDeviceStartupPictureResult.cc src/model/UpdateGonggeLayoutRequest.cc src/model/UpdateGonggeLayoutResult.cc src/model/UpdateLivePasswordRequest.cc diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h index 0d73d233e..b55472a0d 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h @@ -66,6 +66,8 @@ #include "model/EndDeviceMeetingResult.h" #include "model/EndLiveRequest.h" #include "model/EndLiveResult.h" +#include "model/GetAccountInfoRequest.h" +#include "model/GetAccountInfoResult.h" #include "model/GetDeviceActiveCodeRequest.h" #include "model/GetDeviceActiveCodeResult.h" #include "model/GetDeviceInfoRequest.h" @@ -80,6 +82,8 @@ #include "model/GetMeetingMemberResult.h" #include "model/GetMembersRequest.h" #include "model/GetMembersResult.h" +#include "model/GetStatisticRequest.h" +#include "model/GetStatisticResult.h" #include "model/GetUserRequest.h" #include "model/GetUserResult.h" #include "model/InviteUserRequest.h" @@ -92,6 +96,8 @@ #include "model/JoinMeetingResult.h" #include "model/JoinMeetingInternationalRequest.h" #include "model/JoinMeetingInternationalResult.h" +#include "model/ListConferenceDevicesRequest.h" +#include "model/ListConferenceDevicesResult.h" #include "model/ListDeviceIpRequest.h" #include "model/ListDeviceIpResult.h" #include "model/ListDevicesRequest.h" @@ -104,10 +110,14 @@ #include "model/ListMembersResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" +#include "model/ModifyDeviceBackgroundRequest.h" +#include "model/ModifyDeviceBackgroundResult.h" #include "model/ModifyMeetingPasswordRequest.h" #include "model/ModifyMeetingPasswordResult.h" #include "model/ModifyMeetingPasswordInternationalRequest.h" #include "model/ModifyMeetingPasswordInternationalResult.h" +#include "model/RefreshDeviceScreenCodeRequest.h" +#include "model/RefreshDeviceScreenCodeResult.h" #include "model/RegisterDeviceRequest.h" #include "model/RegisterDeviceResult.h" #include "model/RegisterUemDeviceRequest.h" @@ -118,6 +128,8 @@ #include "model/StartLiveResult.h" #include "model/UpdateDeviceHeartBeatRequest.h" #include "model/UpdateDeviceHeartBeatResult.h" +#include "model/UpdateDeviceStartupPictureRequest.h" +#include "model/UpdateDeviceStartupPictureResult.h" #include "model/UpdateGonggeLayoutRequest.h" #include "model/UpdateGonggeLayoutResult.h" #include "model/UpdateLivePasswordRequest.h" @@ -197,6 +209,9 @@ namespace AlibabaCloud typedef Outcome EndLiveOutcome; typedef std::future EndLiveOutcomeCallable; typedef std::function&)> EndLiveAsyncHandler; + typedef Outcome GetAccountInfoOutcome; + typedef std::future GetAccountInfoOutcomeCallable; + typedef std::function&)> GetAccountInfoAsyncHandler; typedef Outcome GetDeviceActiveCodeOutcome; typedef std::future GetDeviceActiveCodeOutcomeCallable; typedef std::function&)> GetDeviceActiveCodeAsyncHandler; @@ -218,6 +233,9 @@ namespace AlibabaCloud typedef Outcome GetMembersOutcome; typedef std::future GetMembersOutcomeCallable; typedef std::function&)> GetMembersAsyncHandler; + typedef Outcome GetStatisticOutcome; + typedef std::future GetStatisticOutcomeCallable; + typedef std::function&)> GetStatisticAsyncHandler; typedef Outcome GetUserOutcome; typedef std::future GetUserOutcomeCallable; typedef std::function&)> GetUserAsyncHandler; @@ -236,6 +254,9 @@ namespace AlibabaCloud typedef Outcome JoinMeetingInternationalOutcome; typedef std::future JoinMeetingInternationalOutcomeCallable; typedef std::function&)> JoinMeetingInternationalAsyncHandler; + typedef Outcome ListConferenceDevicesOutcome; + typedef std::future ListConferenceDevicesOutcomeCallable; + typedef std::function&)> ListConferenceDevicesAsyncHandler; typedef Outcome ListDeviceIpOutcome; typedef std::future ListDeviceIpOutcomeCallable; typedef std::function&)> ListDeviceIpAsyncHandler; @@ -254,12 +275,18 @@ namespace AlibabaCloud typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ModifyDeviceBackgroundOutcome; + typedef std::future ModifyDeviceBackgroundOutcomeCallable; + typedef std::function&)> ModifyDeviceBackgroundAsyncHandler; typedef Outcome ModifyMeetingPasswordOutcome; typedef std::future ModifyMeetingPasswordOutcomeCallable; typedef std::function&)> ModifyMeetingPasswordAsyncHandler; typedef Outcome ModifyMeetingPasswordInternationalOutcome; typedef std::future ModifyMeetingPasswordInternationalOutcomeCallable; typedef std::function&)> ModifyMeetingPasswordInternationalAsyncHandler; + typedef Outcome RefreshDeviceScreenCodeOutcome; + typedef std::future RefreshDeviceScreenCodeOutcomeCallable; + typedef std::function&)> RefreshDeviceScreenCodeAsyncHandler; typedef Outcome RegisterDeviceOutcome; typedef std::future RegisterDeviceOutcomeCallable; typedef std::function&)> RegisterDeviceAsyncHandler; @@ -275,6 +302,9 @@ namespace AlibabaCloud typedef Outcome UpdateDeviceHeartBeatOutcome; typedef std::future UpdateDeviceHeartBeatOutcomeCallable; typedef std::function&)> UpdateDeviceHeartBeatAsyncHandler; + typedef Outcome UpdateDeviceStartupPictureOutcome; + typedef std::future UpdateDeviceStartupPictureOutcomeCallable; + typedef std::function&)> UpdateDeviceStartupPictureAsyncHandler; typedef Outcome UpdateGonggeLayoutOutcome; typedef std::future UpdateGonggeLayoutOutcomeCallable; typedef std::function&)> UpdateGonggeLayoutAsyncHandler; @@ -352,6 +382,9 @@ namespace AlibabaCloud EndLiveOutcome endLive(const Model::EndLiveRequest &request)const; void endLiveAsync(const Model::EndLiveRequest& request, const EndLiveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EndLiveOutcomeCallable endLiveCallable(const Model::EndLiveRequest& request) const; + GetAccountInfoOutcome getAccountInfo(const Model::GetAccountInfoRequest &request)const; + void getAccountInfoAsync(const Model::GetAccountInfoRequest& request, const GetAccountInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountInfoOutcomeCallable getAccountInfoCallable(const Model::GetAccountInfoRequest& request) const; GetDeviceActiveCodeOutcome getDeviceActiveCode(const Model::GetDeviceActiveCodeRequest &request)const; void getDeviceActiveCodeAsync(const Model::GetDeviceActiveCodeRequest& request, const GetDeviceActiveCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDeviceActiveCodeOutcomeCallable getDeviceActiveCodeCallable(const Model::GetDeviceActiveCodeRequest& request) const; @@ -373,6 +406,9 @@ 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; + 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; @@ -391,6 +427,9 @@ namespace AlibabaCloud JoinMeetingInternationalOutcome joinMeetingInternational(const Model::JoinMeetingInternationalRequest &request)const; void joinMeetingInternationalAsync(const Model::JoinMeetingInternationalRequest& request, const JoinMeetingInternationalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; JoinMeetingInternationalOutcomeCallable joinMeetingInternationalCallable(const Model::JoinMeetingInternationalRequest& request) const; + ListConferenceDevicesOutcome listConferenceDevices(const Model::ListConferenceDevicesRequest &request)const; + void listConferenceDevicesAsync(const Model::ListConferenceDevicesRequest& request, const ListConferenceDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConferenceDevicesOutcomeCallable listConferenceDevicesCallable(const Model::ListConferenceDevicesRequest& request) const; ListDeviceIpOutcome listDeviceIp(const Model::ListDeviceIpRequest &request)const; void listDeviceIpAsync(const Model::ListDeviceIpRequest& request, const ListDeviceIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDeviceIpOutcomeCallable listDeviceIpCallable(const Model::ListDeviceIpRequest& request) const; @@ -409,12 +448,18 @@ namespace AlibabaCloud ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ModifyDeviceBackgroundOutcome modifyDeviceBackground(const Model::ModifyDeviceBackgroundRequest &request)const; + void modifyDeviceBackgroundAsync(const Model::ModifyDeviceBackgroundRequest& request, const ModifyDeviceBackgroundAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDeviceBackgroundOutcomeCallable modifyDeviceBackgroundCallable(const Model::ModifyDeviceBackgroundRequest& request) const; ModifyMeetingPasswordOutcome modifyMeetingPassword(const Model::ModifyMeetingPasswordRequest &request)const; void modifyMeetingPasswordAsync(const Model::ModifyMeetingPasswordRequest& request, const ModifyMeetingPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyMeetingPasswordOutcomeCallable modifyMeetingPasswordCallable(const Model::ModifyMeetingPasswordRequest& request) const; 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; + 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; RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const; void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const; @@ -430,6 +475,9 @@ namespace AlibabaCloud UpdateDeviceHeartBeatOutcome updateDeviceHeartBeat(const Model::UpdateDeviceHeartBeatRequest &request)const; void updateDeviceHeartBeatAsync(const Model::UpdateDeviceHeartBeatRequest& request, const UpdateDeviceHeartBeatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDeviceHeartBeatOutcomeCallable updateDeviceHeartBeatCallable(const Model::UpdateDeviceHeartBeatRequest& request) const; + UpdateDeviceStartupPictureOutcome updateDeviceStartupPicture(const Model::UpdateDeviceStartupPictureRequest &request)const; + void updateDeviceStartupPictureAsync(const Model::UpdateDeviceStartupPictureRequest& request, const UpdateDeviceStartupPictureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDeviceStartupPictureOutcomeCallable updateDeviceStartupPictureCallable(const Model::UpdateDeviceStartupPictureRequest& request) const; UpdateGonggeLayoutOutcome updateGonggeLayout(const Model::UpdateGonggeLayoutRequest &request)const; void updateGonggeLayoutAsync(const Model::UpdateGonggeLayoutRequest& request, const UpdateGonggeLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGonggeLayoutOutcomeCallable updateGonggeLayoutCallable(const Model::UpdateGonggeLayoutRequest& request) const; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetAccountInfoRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetAccountInfoRequest.h new file mode 100644 index 000000000..b027eea16 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetAccountInfoRequest.h @@ -0,0 +1,45 @@ +/* + * 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_GETACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetAccountInfoRequest : public RpcServiceRequest + { + + public: + GetAccountInfoRequest(); + ~GetAccountInfoRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFOREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetAccountInfoResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetAccountInfoResult.h new file mode 100644 index 000000000..394910677 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetAccountInfoResult.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_GETACCOUNTINFORESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetAccountInfoResult : public ServiceResult + { + public: + struct AccountInfo + { + int accountApplicationNumber; + int accountApplicationMax; + int accountConcurrentMax; + }; + + + GetAccountInfoResult(); + explicit GetAccountInfoResult(const std::string &payload); + ~GetAccountInfoResult(); + std::string getMessage()const; + int getErrorCode()const; + AccountInfo getAccountInfo()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int errorCode_; + AccountInfo accountInfo_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETACCOUNTINFORESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetStatisticRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetStatisticRequest.h new file mode 100644 index 000000000..ab0838df8 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetStatisticRequest.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_GETSTATISTICREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetStatisticRequest : public RpcServiceRequest + { + + public: + GetStatisticRequest(); + ~GetStatisticRequest(); + + long getEndTime()const; + void setEndTime(long endTime); + long getStartTime()const; + void setStartTime(long startTime); + + private: + long endTime_; + long startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetStatisticResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetStatisticResult.h new file mode 100644 index 000000000..a25e856ae --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/GetStatisticResult.h @@ -0,0 +1,64 @@ +/* + * 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_GETSTATISTICRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT GetStatisticResult : public ServiceResult + { + public: + struct StatisticInfo + { + long meetingNumber; + long memberNumber; + long maxConcurrency; + long meetingDuration; + }; + + + GetStatisticResult(); + explicit GetStatisticResult(const std::string &payload); + ~GetStatisticResult(); + std::string getMessage()const; + StatisticInfo getStatisticInfo()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + StatisticInfo statisticInfo_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_GETSTATISTICRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesRequest.h new file mode 100644 index 000000000..75adb0de2 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT ListConferenceDevicesRequest : public RpcServiceRequest + { + + public: + ListConferenceDevicesRequest(); + ~ListConferenceDevicesRequest(); + + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string serialNumber_; + int pageNumber_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESREQUEST_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 new file mode 100644 index 000000000..0de311010 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ListConferenceDevicesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_LISTCONFERENCEDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT ListConferenceDevicesResult : public ServiceResult + { + public: + struct Data + { + struct Data + { + std::string deviceModel; + std::string status; + std::string castScreenCode; + std::string createTime; + std::string manufacturer; + std::string pictureUrl; + std::string sN; + std::string conferenceName; + std::string activationCode; + std::string conferenceCode; + }; + std::vector conferences; + int pageSize; + int pageNumber; + int total; + }; + + + ListConferenceDevicesResult(); + explicit ListConferenceDevicesResult(const std::string &payload); + ~ListConferenceDevicesResult(); + 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_LISTCONFERENCEDEVICESRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundRequest.h new file mode 100644 index 000000000..f90bad512 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundRequest.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_MODIFYDEVICEBACKGROUNDREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT ModifyDeviceBackgroundRequest : public RpcServiceRequest + { + + public: + ModifyDeviceBackgroundRequest(); + ~ModifyDeviceBackgroundRequest(); + + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getPicture()const; + void setPicture(const std::string& picture); + + private: + std::string serialNumber_; + std::string picture_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundResult.h new file mode 100644 index 000000000..2130f3283 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/ModifyDeviceBackgroundResult.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_MODIFYDEVICEBACKGROUNDRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_MODIFYDEVICEBACKGROUNDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT ModifyDeviceBackgroundResult : public ServiceResult + { + public: + + + ModifyDeviceBackgroundResult(); + explicit ModifyDeviceBackgroundResult(const std::string &payload); + ~ModifyDeviceBackgroundResult(); + 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_MODIFYDEVICEBACKGROUNDRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.h new file mode 100644 index 000000000..e1290ceb8 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeRequest.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_REFRESHDEVICESCREENCODEREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT RefreshDeviceScreenCodeRequest : public RpcServiceRequest + { + + public: + RefreshDeviceScreenCodeRequest(); + ~RefreshDeviceScreenCodeRequest(); + + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + + private: + std::string serialNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODEREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h new file mode 100644 index 000000000..42add327a --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/RefreshDeviceScreenCodeResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODERESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_REFRESHDEVICESCREENCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT RefreshDeviceScreenCodeResult : public ServiceResult + { + public: + struct Data + { + std::string screenCode; + std::string serialNumber; + }; + + + RefreshDeviceScreenCodeResult(); + explicit RefreshDeviceScreenCodeResult(const std::string &payload); + ~RefreshDeviceScreenCodeResult(); + 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_REFRESHDEVICESCREENCODERESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureRequest.h new file mode 100644 index 000000000..4fb08c33d --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureRequest.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_UPDATEDEVICESTARTUPPICTUREREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTUREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateDeviceStartupPictureRequest : public RpcServiceRequest + { + + public: + UpdateDeviceStartupPictureRequest(); + ~UpdateDeviceStartupPictureRequest(); + + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getPicture()const; + void setPicture(const std::string& picture); + + private: + std::string serialNumber_; + std::string picture_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTUREREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureResult.h new file mode 100644 index 000000000..ddf2ecf52 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateDeviceStartupPictureResult.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_UPDATEDEVICESTARTUPPICTURERESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEDEVICESTARTUPPICTURERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateDeviceStartupPictureResult : public ServiceResult + { + public: + + + UpdateDeviceStartupPictureResult(); + explicit UpdateDeviceStartupPictureResult(const std::string &payload); + ~UpdateDeviceStartupPictureResult(); + 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_UPDATEDEVICESTARTUPPICTURERESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/src/AliyuncvcClient.cc b/aliyuncvc/src/AliyuncvcClient.cc index bfe9e7b59..115f5484f 100644 --- a/aliyuncvc/src/AliyuncvcClient.cc +++ b/aliyuncvc/src/AliyuncvcClient.cc @@ -843,6 +843,42 @@ AliyuncvcClient::EndLiveOutcomeCallable AliyuncvcClient::endLiveCallable(const E return task->get_future(); } +AliyuncvcClient::GetAccountInfoOutcome AliyuncvcClient::getAccountInfo(const GetAccountInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountInfoOutcome(GetAccountInfoResult(outcome.result())); + else + return GetAccountInfoOutcome(outcome.error()); +} + +void AliyuncvcClient::getAccountInfoAsync(const GetAccountInfoRequest& request, const GetAccountInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::GetAccountInfoOutcomeCallable AliyuncvcClient::getAccountInfoCallable(const GetAccountInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::GetDeviceActiveCodeOutcome AliyuncvcClient::getDeviceActiveCode(const GetDeviceActiveCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1131,42 @@ AliyuncvcClient::GetMembersOutcomeCallable AliyuncvcClient::getMembersCallable(c return task->get_future(); } +AliyuncvcClient::GetStatisticOutcome AliyuncvcClient::getStatistic(const GetStatisticRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStatisticOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStatisticOutcome(GetStatisticResult(outcome.result())); + else + return GetStatisticOutcome(outcome.error()); +} + +void AliyuncvcClient::getStatisticAsync(const GetStatisticRequest& request, const GetStatisticAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStatistic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::GetStatisticOutcomeCallable AliyuncvcClient::getStatisticCallable(const GetStatisticRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStatistic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::GetUserOutcome AliyuncvcClient::getUser(const GetUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1383,42 @@ AliyuncvcClient::JoinMeetingInternationalOutcomeCallable AliyuncvcClient::joinMe return task->get_future(); } +AliyuncvcClient::ListConferenceDevicesOutcome AliyuncvcClient::listConferenceDevices(const ListConferenceDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConferenceDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConferenceDevicesOutcome(ListConferenceDevicesResult(outcome.result())); + else + return ListConferenceDevicesOutcome(outcome.error()); +} + +void AliyuncvcClient::listConferenceDevicesAsync(const ListConferenceDevicesRequest& request, const ListConferenceDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConferenceDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::ListConferenceDevicesOutcomeCallable AliyuncvcClient::listConferenceDevicesCallable(const ListConferenceDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConferenceDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::ListDeviceIpOutcome AliyuncvcClient::listDeviceIp(const ListDeviceIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1635,42 @@ AliyuncvcClient::ListUsersOutcomeCallable AliyuncvcClient::listUsersCallable(con return task->get_future(); } +AliyuncvcClient::ModifyDeviceBackgroundOutcome AliyuncvcClient::modifyDeviceBackground(const ModifyDeviceBackgroundRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDeviceBackgroundOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDeviceBackgroundOutcome(ModifyDeviceBackgroundResult(outcome.result())); + else + return ModifyDeviceBackgroundOutcome(outcome.error()); +} + +void AliyuncvcClient::modifyDeviceBackgroundAsync(const ModifyDeviceBackgroundRequest& request, const ModifyDeviceBackgroundAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDeviceBackground(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::ModifyDeviceBackgroundOutcomeCallable AliyuncvcClient::modifyDeviceBackgroundCallable(const ModifyDeviceBackgroundRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDeviceBackground(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::ModifyMeetingPasswordOutcome AliyuncvcClient::modifyMeetingPassword(const ModifyMeetingPasswordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,6 +1743,42 @@ AliyuncvcClient::ModifyMeetingPasswordInternationalOutcomeCallable AliyuncvcClie return task->get_future(); } +AliyuncvcClient::RefreshDeviceScreenCodeOutcome AliyuncvcClient::refreshDeviceScreenCode(const RefreshDeviceScreenCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshDeviceScreenCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshDeviceScreenCodeOutcome(RefreshDeviceScreenCodeResult(outcome.result())); + else + return RefreshDeviceScreenCodeOutcome(outcome.error()); +} + +void AliyuncvcClient::refreshDeviceScreenCodeAsync(const RefreshDeviceScreenCodeRequest& request, const RefreshDeviceScreenCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshDeviceScreenCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::RefreshDeviceScreenCodeOutcomeCallable AliyuncvcClient::refreshDeviceScreenCodeCallable(const RefreshDeviceScreenCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshDeviceScreenCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::RegisterDeviceOutcome AliyuncvcClient::registerDevice(const RegisterDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +1959,42 @@ AliyuncvcClient::UpdateDeviceHeartBeatOutcomeCallable AliyuncvcClient::updateDev return task->get_future(); } +AliyuncvcClient::UpdateDeviceStartupPictureOutcome AliyuncvcClient::updateDeviceStartupPicture(const UpdateDeviceStartupPictureRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDeviceStartupPictureOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDeviceStartupPictureOutcome(UpdateDeviceStartupPictureResult(outcome.result())); + else + return UpdateDeviceStartupPictureOutcome(outcome.error()); +} + +void AliyuncvcClient::updateDeviceStartupPictureAsync(const UpdateDeviceStartupPictureRequest& request, const UpdateDeviceStartupPictureAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDeviceStartupPicture(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::UpdateDeviceStartupPictureOutcomeCallable AliyuncvcClient::updateDeviceStartupPictureCallable(const UpdateDeviceStartupPictureRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDeviceStartupPicture(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::UpdateGonggeLayoutOutcome AliyuncvcClient::updateGonggeLayout(const UpdateGonggeLayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/aliyuncvc/src/model/GetAccountInfoRequest.cc b/aliyuncvc/src/model/GetAccountInfoRequest.cc new file mode 100644 index 000000000..895ba6554 --- /dev/null +++ b/aliyuncvc/src/model/GetAccountInfoRequest.cc @@ -0,0 +1,29 @@ +/* + * 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::GetAccountInfoRequest; + +GetAccountInfoRequest::GetAccountInfoRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "GetAccountInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAccountInfoRequest::~GetAccountInfoRequest() +{} + diff --git a/aliyuncvc/src/model/GetAccountInfoResult.cc b/aliyuncvc/src/model/GetAccountInfoResult.cc new file mode 100644 index 000000000..ae1e65a3f --- /dev/null +++ b/aliyuncvc/src/model/GetAccountInfoResult.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; + +GetAccountInfoResult::GetAccountInfoResult() : + ServiceResult() +{} + +GetAccountInfoResult::GetAccountInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountInfoResult::~GetAccountInfoResult() +{} + +void GetAccountInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountInfoNode = value["AccountInfo"]; + if(!accountInfoNode["AccountConcurrentMax"].isNull()) + accountInfo_.accountConcurrentMax = std::stoi(accountInfoNode["AccountConcurrentMax"].asString()); + if(!accountInfoNode["AccountApplicationMax"].isNull()) + accountInfo_.accountApplicationMax = std::stoi(accountInfoNode["AccountApplicationMax"].asString()); + if(!accountInfoNode["AccountApplicationNumber"].isNull()) + accountInfo_.accountApplicationNumber = std::stoi(accountInfoNode["AccountApplicationNumber"].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 GetAccountInfoResult::getMessage()const +{ + return message_; +} + +int GetAccountInfoResult::getErrorCode()const +{ + return errorCode_; +} + +GetAccountInfoResult::AccountInfo GetAccountInfoResult::getAccountInfo()const +{ + return accountInfo_; +} + +bool GetAccountInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/GetStatisticRequest.cc b/aliyuncvc/src/model/GetStatisticRequest.cc new file mode 100644 index 000000000..8fca40271 --- /dev/null +++ b/aliyuncvc/src/model/GetStatisticRequest.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::GetStatisticRequest; + +GetStatisticRequest::GetStatisticRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "GetStatistic") +{ + setMethod(HttpRequest::Method::Post); +} + +GetStatisticRequest::~GetStatisticRequest() +{} + +long GetStatisticRequest::getEndTime()const +{ + return endTime_; +} + +void GetStatisticRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setBodyParameter("EndTime", std::to_string(endTime)); +} + +long GetStatisticRequest::getStartTime()const +{ + return startTime_; +} + +void GetStatisticRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setBodyParameter("StartTime", std::to_string(startTime)); +} + diff --git a/aliyuncvc/src/model/GetStatisticResult.cc b/aliyuncvc/src/model/GetStatisticResult.cc new file mode 100644 index 000000000..550a5e8ef --- /dev/null +++ b/aliyuncvc/src/model/GetStatisticResult.cc @@ -0,0 +1,79 @@ +/* + * 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; + +GetStatisticResult::GetStatisticResult() : + ServiceResult() +{} + +GetStatisticResult::GetStatisticResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStatisticResult::~GetStatisticResult() +{} + +void GetStatisticResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto statisticInfoNode = value["StatisticInfo"]; + if(!statisticInfoNode["MeetingDuration"].isNull()) + statisticInfo_.meetingDuration = std::stol(statisticInfoNode["MeetingDuration"].asString()); + if(!statisticInfoNode["MeetingNumber"].isNull()) + statisticInfo_.meetingNumber = std::stol(statisticInfoNode["MeetingNumber"].asString()); + if(!statisticInfoNode["MemberNumber"].isNull()) + statisticInfo_.memberNumber = std::stol(statisticInfoNode["MemberNumber"].asString()); + if(!statisticInfoNode["MaxConcurrency"].isNull()) + statisticInfo_.maxConcurrency = std::stol(statisticInfoNode["MaxConcurrency"].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 GetStatisticResult::getMessage()const +{ + return message_; +} + +GetStatisticResult::StatisticInfo GetStatisticResult::getStatisticInfo()const +{ + return statisticInfo_; +} + +int GetStatisticResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetStatisticResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/ListConferenceDevicesRequest.cc b/aliyuncvc/src/model/ListConferenceDevicesRequest.cc new file mode 100644 index 000000000..e6d827cdc --- /dev/null +++ b/aliyuncvc/src/model/ListConferenceDevicesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Aliyuncvc::Model::ListConferenceDevicesRequest; + +ListConferenceDevicesRequest::ListConferenceDevicesRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "ListConferenceDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +ListConferenceDevicesRequest::~ListConferenceDevicesRequest() +{} + +std::string ListConferenceDevicesRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ListConferenceDevicesRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setParameter("SerialNumber", serialNumber); +} + +int ListConferenceDevicesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListConferenceDevicesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListConferenceDevicesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListConferenceDevicesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/aliyuncvc/src/model/ListConferenceDevicesResult.cc b/aliyuncvc/src/model/ListConferenceDevicesResult.cc new file mode 100644 index 000000000..ce3f585f7 --- /dev/null +++ b/aliyuncvc/src/model/ListConferenceDevicesResult.cc @@ -0,0 +1,103 @@ +/* + * 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; + +ListConferenceDevicesResult::ListConferenceDevicesResult() : + ServiceResult() +{} + +ListConferenceDevicesResult::ListConferenceDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConferenceDevicesResult::~ListConferenceDevicesResult() +{} + +void ListConferenceDevicesResult::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["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + auto allConferencesNode = dataNode["Conferences"]["data"]; + for (auto dataNodeConferencesdata : allConferencesNode) + { + Data::Data dataObject; + if(!dataNodeConferencesdata["ActivationCode"].isNull()) + dataObject.activationCode = dataNodeConferencesdata["ActivationCode"].asString(); + if(!dataNodeConferencesdata["ConferenceCode"].isNull()) + dataObject.conferenceCode = dataNodeConferencesdata["ConferenceCode"].asString(); + if(!dataNodeConferencesdata["ConferenceName"].isNull()) + dataObject.conferenceName = dataNodeConferencesdata["ConferenceName"].asString(); + if(!dataNodeConferencesdata["CreateTime"].isNull()) + dataObject.createTime = dataNodeConferencesdata["CreateTime"].asString(); + if(!dataNodeConferencesdata["DeviceModel"].isNull()) + dataObject.deviceModel = dataNodeConferencesdata["DeviceModel"].asString(); + if(!dataNodeConferencesdata["Manufacturer"].isNull()) + dataObject.manufacturer = dataNodeConferencesdata["Manufacturer"].asString(); + if(!dataNodeConferencesdata["PictureUrl"].isNull()) + dataObject.pictureUrl = dataNodeConferencesdata["PictureUrl"].asString(); + if(!dataNodeConferencesdata["SN"].isNull()) + dataObject.sN = dataNodeConferencesdata["SN"].asString(); + if(!dataNodeConferencesdata["Status"].isNull()) + dataObject.status = dataNodeConferencesdata["Status"].asString(); + if(!dataNodeConferencesdata["CastScreenCode"].isNull()) + dataObject.castScreenCode = dataNodeConferencesdata["CastScreenCode"].asString(); + data_.conferences.push_back(dataObject); + } + 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 ListConferenceDevicesResult::getMessage()const +{ + return message_; +} + +ListConferenceDevicesResult::Data ListConferenceDevicesResult::getData()const +{ + return data_; +} + +int ListConferenceDevicesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListConferenceDevicesResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/ModifyDeviceBackgroundRequest.cc b/aliyuncvc/src/model/ModifyDeviceBackgroundRequest.cc new file mode 100644 index 000000000..53a909c66 --- /dev/null +++ b/aliyuncvc/src/model/ModifyDeviceBackgroundRequest.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::ModifyDeviceBackgroundRequest; + +ModifyDeviceBackgroundRequest::ModifyDeviceBackgroundRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "ModifyDeviceBackground") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyDeviceBackgroundRequest::~ModifyDeviceBackgroundRequest() +{} + +std::string ModifyDeviceBackgroundRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ModifyDeviceBackgroundRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setBodyParameter("SerialNumber", serialNumber); +} + +std::string ModifyDeviceBackgroundRequest::getPicture()const +{ + return picture_; +} + +void ModifyDeviceBackgroundRequest::setPicture(const std::string& picture) +{ + picture_ = picture; + setBodyParameter("Picture", picture); +} + diff --git a/aliyuncvc/src/model/ModifyDeviceBackgroundResult.cc b/aliyuncvc/src/model/ModifyDeviceBackgroundResult.cc new file mode 100644 index 000000000..44bd5c681 --- /dev/null +++ b/aliyuncvc/src/model/ModifyDeviceBackgroundResult.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; + +ModifyDeviceBackgroundResult::ModifyDeviceBackgroundResult() : + ServiceResult() +{} + +ModifyDeviceBackgroundResult::ModifyDeviceBackgroundResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDeviceBackgroundResult::~ModifyDeviceBackgroundResult() +{} + +void ModifyDeviceBackgroundResult::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 ModifyDeviceBackgroundResult::getMessage()const +{ + return message_; +} + +int ModifyDeviceBackgroundResult::getErrorCode()const +{ + return errorCode_; +} + +bool ModifyDeviceBackgroundResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/RefreshDeviceScreenCodeRequest.cc b/aliyuncvc/src/model/RefreshDeviceScreenCodeRequest.cc new file mode 100644 index 000000000..0fce36815 --- /dev/null +++ b/aliyuncvc/src/model/RefreshDeviceScreenCodeRequest.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::RefreshDeviceScreenCodeRequest; + +RefreshDeviceScreenCodeRequest::RefreshDeviceScreenCodeRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "RefreshDeviceScreenCode") +{ + setMethod(HttpRequest::Method::Post); +} + +RefreshDeviceScreenCodeRequest::~RefreshDeviceScreenCodeRequest() +{} + +std::string RefreshDeviceScreenCodeRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void RefreshDeviceScreenCodeRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setBodyParameter("SerialNumber", serialNumber); +} + diff --git a/aliyuncvc/src/model/RefreshDeviceScreenCodeResult.cc b/aliyuncvc/src/model/RefreshDeviceScreenCodeResult.cc new file mode 100644 index 000000000..7967fb3dc --- /dev/null +++ b/aliyuncvc/src/model/RefreshDeviceScreenCodeResult.cc @@ -0,0 +1,75 @@ +/* + * 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; + +RefreshDeviceScreenCodeResult::RefreshDeviceScreenCodeResult() : + ServiceResult() +{} + +RefreshDeviceScreenCodeResult::RefreshDeviceScreenCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefreshDeviceScreenCodeResult::~RefreshDeviceScreenCodeResult() +{} + +void RefreshDeviceScreenCodeResult::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["SerialNumber"].isNull()) + data_.serialNumber = dataNode["SerialNumber"].asString(); + if(!dataNode["ScreenCode"].isNull()) + data_.screenCode = dataNode["ScreenCode"].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 RefreshDeviceScreenCodeResult::getMessage()const +{ + return message_; +} + +RefreshDeviceScreenCodeResult::Data RefreshDeviceScreenCodeResult::getData()const +{ + return data_; +} + +int RefreshDeviceScreenCodeResult::getErrorCode()const +{ + return errorCode_; +} + +bool RefreshDeviceScreenCodeResult::getSuccess()const +{ + return success_; +} + diff --git a/aliyuncvc/src/model/UpdateDeviceStartupPictureRequest.cc b/aliyuncvc/src/model/UpdateDeviceStartupPictureRequest.cc new file mode 100644 index 000000000..ff1033549 --- /dev/null +++ b/aliyuncvc/src/model/UpdateDeviceStartupPictureRequest.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::UpdateDeviceStartupPictureRequest; + +UpdateDeviceStartupPictureRequest::UpdateDeviceStartupPictureRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "UpdateDeviceStartupPicture") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateDeviceStartupPictureRequest::~UpdateDeviceStartupPictureRequest() +{} + +std::string UpdateDeviceStartupPictureRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void UpdateDeviceStartupPictureRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setBodyParameter("SerialNumber", serialNumber); +} + +std::string UpdateDeviceStartupPictureRequest::getPicture()const +{ + return picture_; +} + +void UpdateDeviceStartupPictureRequest::setPicture(const std::string& picture) +{ + picture_ = picture; + setBodyParameter("Picture", picture); +} + diff --git a/aliyuncvc/src/model/UpdateDeviceStartupPictureResult.cc b/aliyuncvc/src/model/UpdateDeviceStartupPictureResult.cc new file mode 100644 index 000000000..5b29a29ce --- /dev/null +++ b/aliyuncvc/src/model/UpdateDeviceStartupPictureResult.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; + +UpdateDeviceStartupPictureResult::UpdateDeviceStartupPictureResult() : + ServiceResult() +{} + +UpdateDeviceStartupPictureResult::UpdateDeviceStartupPictureResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDeviceStartupPictureResult::~UpdateDeviceStartupPictureResult() +{} + +void UpdateDeviceStartupPictureResult::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 UpdateDeviceStartupPictureResult::getMessage()const +{ + return message_; +} + +int UpdateDeviceStartupPictureResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateDeviceStartupPictureResult::getSuccess()const +{ + return success_; +} +