From e657a8b04c9dc95baa18c42997fb10e04db6d053 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 8 Dec 2022 11:43:06 +0000 Subject: [PATCH] Add live message mute related interface. --- VERSION | 2 +- live/CMakeLists.txt | 16 ++ live/include/alibabacloud/live/LiveClient.h | 32 ++++ .../live/model/CancelMuteGroupUserRequest.h | 54 +++++++ .../live/model/CancelMuteGroupUserResult.h | 55 +++++++ .../DescribeMeterLiveInteractionDauRequest.h | 54 +++++++ .../DescribeMeterLiveInteractionDauResult.h | 58 +++++++ .../live/model/MuteAllGroupUserRequest.h | 48 ++++++ .../live/model/MuteAllGroupUserResult.h | 55 +++++++ .../live/model/MuteGroupUserRequest.h | 57 +++++++ .../live/model/MuteGroupUserResult.h | 55 +++++++ live/src/LiveClient.cc | 144 ++++++++++++++++++ live/src/model/CancelMuteGroupUserRequest.cc | 74 +++++++++ live/src/model/CancelMuteGroupUserResult.cc | 52 +++++++ .../DescribeMeterLiveInteractionDauRequest.cc | 72 +++++++++ .../DescribeMeterLiveInteractionDauResult.cc | 66 ++++++++ live/src/model/MuteAllGroupUserRequest.cc | 54 +++++++ live/src/model/MuteAllGroupUserResult.cc | 52 +++++++ live/src/model/MuteGroupUserRequest.cc | 83 ++++++++++ live/src/model/MuteGroupUserResult.cc | 52 +++++++ 20 files changed, 1134 insertions(+), 1 deletion(-) create mode 100644 live/include/alibabacloud/live/model/CancelMuteGroupUserRequest.h create mode 100644 live/include/alibabacloud/live/model/CancelMuteGroupUserResult.h create mode 100644 live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauRequest.h create mode 100644 live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauResult.h create mode 100644 live/include/alibabacloud/live/model/MuteAllGroupUserRequest.h create mode 100644 live/include/alibabacloud/live/model/MuteAllGroupUserResult.h create mode 100644 live/include/alibabacloud/live/model/MuteGroupUserRequest.h create mode 100644 live/include/alibabacloud/live/model/MuteGroupUserResult.h create mode 100644 live/src/model/CancelMuteGroupUserRequest.cc create mode 100644 live/src/model/CancelMuteGroupUserResult.cc create mode 100644 live/src/model/DescribeMeterLiveInteractionDauRequest.cc create mode 100644 live/src/model/DescribeMeterLiveInteractionDauResult.cc create mode 100644 live/src/model/MuteAllGroupUserRequest.cc create mode 100644 live/src/model/MuteAllGroupUserResult.cc create mode 100644 live/src/model/MuteGroupUserRequest.cc create mode 100644 live/src/model/MuteGroupUserResult.cc diff --git a/VERSION b/VERSION index 4d58146c0..764a031ac 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1381 \ No newline at end of file +1.36.1382 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 78f2d256c..33f1c5b44 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -89,6 +89,8 @@ set(live_public_header_model include/alibabacloud/live/model/BatchSetLiveDomainConfigsResult.h include/alibabacloud/live/model/CancelMuteAllGroupUserRequest.h include/alibabacloud/live/model/CancelMuteAllGroupUserResult.h + include/alibabacloud/live/model/CancelMuteGroupUserRequest.h + include/alibabacloud/live/model/CancelMuteGroupUserResult.h include/alibabacloud/live/model/CloseLiveShiftRequest.h include/alibabacloud/live/model/CloseLiveShiftResult.h include/alibabacloud/live/model/CopyCasterRequest.h @@ -377,6 +379,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h include/alibabacloud/live/model/DescribeLiveUserTagsRequest.h include/alibabacloud/live/model/DescribeLiveUserTagsResult.h + include/alibabacloud/live/model/DescribeMeterLiveInteractionDauRequest.h + include/alibabacloud/live/model/DescribeMeterLiveInteractionDauResult.h include/alibabacloud/live/model/DescribeMeterLiveRtcDurationRequest.h include/alibabacloud/live/model/DescribeMeterLiveRtcDurationResult.h include/alibabacloud/live/model/DescribeMixStreamListRequest.h @@ -491,6 +495,10 @@ set(live_public_header_model include/alibabacloud/live/model/ModifyShowListResult.h include/alibabacloud/live/model/ModifyStudioLayoutRequest.h include/alibabacloud/live/model/ModifyStudioLayoutResult.h + include/alibabacloud/live/model/MuteAllGroupUserRequest.h + include/alibabacloud/live/model/MuteAllGroupUserResult.h + include/alibabacloud/live/model/MuteGroupUserRequest.h + include/alibabacloud/live/model/MuteGroupUserResult.h include/alibabacloud/live/model/OpenLiveShiftRequest.h include/alibabacloud/live/model/OpenLiveShiftResult.h include/alibabacloud/live/model/PlayChoosenShowRequest.h @@ -680,6 +688,8 @@ set(live_src src/model/BatchSetLiveDomainConfigsResult.cc src/model/CancelMuteAllGroupUserRequest.cc src/model/CancelMuteAllGroupUserResult.cc + src/model/CancelMuteGroupUserRequest.cc + src/model/CancelMuteGroupUserResult.cc src/model/CloseLiveShiftRequest.cc src/model/CloseLiveShiftResult.cc src/model/CopyCasterRequest.cc @@ -968,6 +978,8 @@ set(live_src src/model/DescribeLiveUserDomainsResult.cc src/model/DescribeLiveUserTagsRequest.cc src/model/DescribeLiveUserTagsResult.cc + src/model/DescribeMeterLiveInteractionDauRequest.cc + src/model/DescribeMeterLiveInteractionDauResult.cc src/model/DescribeMeterLiveRtcDurationRequest.cc src/model/DescribeMeterLiveRtcDurationResult.cc src/model/DescribeMixStreamListRequest.cc @@ -1082,6 +1094,10 @@ set(live_src src/model/ModifyShowListResult.cc src/model/ModifyStudioLayoutRequest.cc src/model/ModifyStudioLayoutResult.cc + src/model/MuteAllGroupUserRequest.cc + src/model/MuteAllGroupUserResult.cc + src/model/MuteGroupUserRequest.cc + src/model/MuteGroupUserResult.cc src/model/OpenLiveShiftRequest.cc src/model/OpenLiveShiftResult.cc src/model/PlayChoosenShowRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index ac96604b8..b4d92795e 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -90,6 +90,8 @@ #include "model/BatchSetLiveDomainConfigsResult.h" #include "model/CancelMuteAllGroupUserRequest.h" #include "model/CancelMuteAllGroupUserResult.h" +#include "model/CancelMuteGroupUserRequest.h" +#include "model/CancelMuteGroupUserResult.h" #include "model/CloseLiveShiftRequest.h" #include "model/CloseLiveShiftResult.h" #include "model/CopyCasterRequest.h" @@ -378,6 +380,8 @@ #include "model/DescribeLiveUserDomainsResult.h" #include "model/DescribeLiveUserTagsRequest.h" #include "model/DescribeLiveUserTagsResult.h" +#include "model/DescribeMeterLiveInteractionDauRequest.h" +#include "model/DescribeMeterLiveInteractionDauResult.h" #include "model/DescribeMeterLiveRtcDurationRequest.h" #include "model/DescribeMeterLiveRtcDurationResult.h" #include "model/DescribeMixStreamListRequest.h" @@ -492,6 +496,10 @@ #include "model/ModifyShowListResult.h" #include "model/ModifyStudioLayoutRequest.h" #include "model/ModifyStudioLayoutResult.h" +#include "model/MuteAllGroupUserRequest.h" +#include "model/MuteAllGroupUserResult.h" +#include "model/MuteGroupUserRequest.h" +#include "model/MuteGroupUserResult.h" #include "model/OpenLiveShiftRequest.h" #include "model/OpenLiveShiftResult.h" #include "model/PlayChoosenShowRequest.h" @@ -721,6 +729,9 @@ namespace AlibabaCloud typedef Outcome CancelMuteAllGroupUserOutcome; typedef std::future CancelMuteAllGroupUserOutcomeCallable; typedef std::function&)> CancelMuteAllGroupUserAsyncHandler; + typedef Outcome CancelMuteGroupUserOutcome; + typedef std::future CancelMuteGroupUserOutcomeCallable; + typedef std::function&)> CancelMuteGroupUserAsyncHandler; typedef Outcome CloseLiveShiftOutcome; typedef std::future CloseLiveShiftOutcomeCallable; typedef std::function&)> CloseLiveShiftAsyncHandler; @@ -1153,6 +1164,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveUserTagsOutcome; typedef std::future DescribeLiveUserTagsOutcomeCallable; typedef std::function&)> DescribeLiveUserTagsAsyncHandler; + typedef Outcome DescribeMeterLiveInteractionDauOutcome; + typedef std::future DescribeMeterLiveInteractionDauOutcomeCallable; + typedef std::function&)> DescribeMeterLiveInteractionDauAsyncHandler; typedef Outcome DescribeMeterLiveRtcDurationOutcome; typedef std::future DescribeMeterLiveRtcDurationOutcomeCallable; typedef std::function&)> DescribeMeterLiveRtcDurationAsyncHandler; @@ -1324,6 +1338,12 @@ namespace AlibabaCloud typedef Outcome ModifyStudioLayoutOutcome; typedef std::future ModifyStudioLayoutOutcomeCallable; typedef std::function&)> ModifyStudioLayoutAsyncHandler; + typedef Outcome MuteAllGroupUserOutcome; + typedef std::future MuteAllGroupUserOutcomeCallable; + typedef std::function&)> MuteAllGroupUserAsyncHandler; + typedef Outcome MuteGroupUserOutcome; + typedef std::future MuteGroupUserOutcomeCallable; + typedef std::function&)> MuteGroupUserAsyncHandler; typedef Outcome OpenLiveShiftOutcome; typedef std::future OpenLiveShiftOutcomeCallable; typedef std::function&)> OpenLiveShiftAsyncHandler; @@ -1608,6 +1628,9 @@ namespace AlibabaCloud CancelMuteAllGroupUserOutcome cancelMuteAllGroupUser(const Model::CancelMuteAllGroupUserRequest &request)const; void cancelMuteAllGroupUserAsync(const Model::CancelMuteAllGroupUserRequest& request, const CancelMuteAllGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelMuteAllGroupUserOutcomeCallable cancelMuteAllGroupUserCallable(const Model::CancelMuteAllGroupUserRequest& request) const; + CancelMuteGroupUserOutcome cancelMuteGroupUser(const Model::CancelMuteGroupUserRequest &request)const; + void cancelMuteGroupUserAsync(const Model::CancelMuteGroupUserRequest& request, const CancelMuteGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelMuteGroupUserOutcomeCallable cancelMuteGroupUserCallable(const Model::CancelMuteGroupUserRequest& request) const; CloseLiveShiftOutcome closeLiveShift(const Model::CloseLiveShiftRequest &request)const; void closeLiveShiftAsync(const Model::CloseLiveShiftRequest& request, const CloseLiveShiftAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloseLiveShiftOutcomeCallable closeLiveShiftCallable(const Model::CloseLiveShiftRequest& request) const; @@ -2040,6 +2063,9 @@ namespace AlibabaCloud DescribeLiveUserTagsOutcome describeLiveUserTags(const Model::DescribeLiveUserTagsRequest &request)const; void describeLiveUserTagsAsync(const Model::DescribeLiveUserTagsRequest& request, const DescribeLiveUserTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveUserTagsOutcomeCallable describeLiveUserTagsCallable(const Model::DescribeLiveUserTagsRequest& request) const; + DescribeMeterLiveInteractionDauOutcome describeMeterLiveInteractionDau(const Model::DescribeMeterLiveInteractionDauRequest &request)const; + void describeMeterLiveInteractionDauAsync(const Model::DescribeMeterLiveInteractionDauRequest& request, const DescribeMeterLiveInteractionDauAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMeterLiveInteractionDauOutcomeCallable describeMeterLiveInteractionDauCallable(const Model::DescribeMeterLiveInteractionDauRequest& request) const; DescribeMeterLiveRtcDurationOutcome describeMeterLiveRtcDuration(const Model::DescribeMeterLiveRtcDurationRequest &request)const; void describeMeterLiveRtcDurationAsync(const Model::DescribeMeterLiveRtcDurationRequest& request, const DescribeMeterLiveRtcDurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMeterLiveRtcDurationOutcomeCallable describeMeterLiveRtcDurationCallable(const Model::DescribeMeterLiveRtcDurationRequest& request) const; @@ -2211,6 +2237,12 @@ namespace AlibabaCloud ModifyStudioLayoutOutcome modifyStudioLayout(const Model::ModifyStudioLayoutRequest &request)const; void modifyStudioLayoutAsync(const Model::ModifyStudioLayoutRequest& request, const ModifyStudioLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyStudioLayoutOutcomeCallable modifyStudioLayoutCallable(const Model::ModifyStudioLayoutRequest& request) const; + MuteAllGroupUserOutcome muteAllGroupUser(const Model::MuteAllGroupUserRequest &request)const; + void muteAllGroupUserAsync(const Model::MuteAllGroupUserRequest& request, const MuteAllGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MuteAllGroupUserOutcomeCallable muteAllGroupUserCallable(const Model::MuteAllGroupUserRequest& request) const; + MuteGroupUserOutcome muteGroupUser(const Model::MuteGroupUserRequest &request)const; + void muteGroupUserAsync(const Model::MuteGroupUserRequest& request, const MuteGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MuteGroupUserOutcomeCallable muteGroupUserCallable(const Model::MuteGroupUserRequest& request) const; OpenLiveShiftOutcome openLiveShift(const Model::OpenLiveShiftRequest &request)const; void openLiveShiftAsync(const Model::OpenLiveShiftRequest& request, const OpenLiveShiftAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenLiveShiftOutcomeCallable openLiveShiftCallable(const Model::OpenLiveShiftRequest& request) const; diff --git a/live/include/alibabacloud/live/model/CancelMuteGroupUserRequest.h b/live/include/alibabacloud/live/model/CancelMuteGroupUserRequest.h new file mode 100644 index 000000000..9c7999b20 --- /dev/null +++ b/live/include/alibabacloud/live/model/CancelMuteGroupUserRequest.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_LIVE_MODEL_CANCELMUTEGROUPUSERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT CancelMuteGroupUserRequest : public RpcServiceRequest { +public: + CancelMuteGroupUserRequest(); + ~CancelMuteGroupUserRequest(); + std::vector getCancelMuteUserList() const; + void setCancelMuteUserList(const std::vector &cancelMuteUserList); + std::string getOperatorUserId() const; + void setOperatorUserId(const std::string &operatorUserId); + int getBroadCastType() const; + void setBroadCastType(int broadCastType); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::vector cancelMuteUserList_; + std::string operatorUserId_; + int broadCastType_; + std::string groupId_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/CancelMuteGroupUserResult.h b/live/include/alibabacloud/live/model/CancelMuteGroupUserResult.h new file mode 100644 index 000000000..7ccdd8273 --- /dev/null +++ b/live/include/alibabacloud/live/model/CancelMuteGroupUserResult.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_LIVE_MODEL_CANCELMUTEGROUPUSERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT CancelMuteGroupUserResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + CancelMuteGroupUserResult(); + explicit CancelMuteGroupUserResult(const std::string &payload); + ~CancelMuteGroupUserResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_CANCELMUTEGROUPUSERRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauRequest.h b/live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauRequest.h new file mode 100644 index 000000000..13f554c56 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauRequest.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_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAUREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAUREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DescribeMeterLiveInteractionDauRequest : public RpcServiceRequest { +public: + DescribeMeterLiveInteractionDauRequest(); + ~DescribeMeterLiveInteractionDauRequest(); + long getStartTs() const; + void setStartTs(long startTs); + std::string getServiceArea() const; + void setServiceArea(const std::string &serviceArea); + std::string getAppId() const; + void setAppId(const std::string &appId); + long getEndTs() const; + void setEndTs(long endTs); + long getInterval() const; + void setInterval(long interval); + +private: + long startTs_; + std::string serviceArea_; + std::string appId_; + long endTs_; + long interval_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAUREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauResult.h b/live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauResult.h new file mode 100644 index 000000000..340b78c6a --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeMeterLiveInteractionDauResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAURESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAURESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeMeterLiveInteractionDauResult : public ServiceResult + { + public: + struct DataItem + { + double dau; + long timestamp; + }; + + + DescribeMeterLiveInteractionDauResult(); + explicit DescribeMeterLiveInteractionDauResult(const std::string &payload); + ~DescribeMeterLiveInteractionDauResult(); + std::vector getData()const; + double getPeakDau()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + double peakDau_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEMETERLIVEINTERACTIONDAURESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/MuteAllGroupUserRequest.h b/live/include/alibabacloud/live/model/MuteAllGroupUserRequest.h new file mode 100644 index 000000000..51a7b9d9f --- /dev/null +++ b/live/include/alibabacloud/live/model/MuteAllGroupUserRequest.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_LIVE_MODEL_MUTEALLGROUPUSERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT MuteAllGroupUserRequest : public RpcServiceRequest { +public: + MuteAllGroupUserRequest(); + ~MuteAllGroupUserRequest(); + std::string getOperatorUserId() const; + void setOperatorUserId(const std::string &operatorUserId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string operatorUserId_; + std::string groupId_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/MuteAllGroupUserResult.h b/live/include/alibabacloud/live/model/MuteAllGroupUserResult.h new file mode 100644 index 000000000..f766aa215 --- /dev/null +++ b/live/include/alibabacloud/live/model/MuteAllGroupUserResult.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_LIVE_MODEL_MUTEALLGROUPUSERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT MuteAllGroupUserResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + MuteAllGroupUserResult(); + explicit MuteAllGroupUserResult(const std::string &payload); + ~MuteAllGroupUserResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEALLGROUPUSERRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/MuteGroupUserRequest.h b/live/include/alibabacloud/live/model/MuteGroupUserRequest.h new file mode 100644 index 000000000..dd6b0a1b1 --- /dev/null +++ b/live/include/alibabacloud/live/model/MuteGroupUserRequest.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_LIVE_MODEL_MUTEGROUPUSERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT MuteGroupUserRequest : public RpcServiceRequest { +public: + MuteGroupUserRequest(); + ~MuteGroupUserRequest(); + std::vector getMuteUserList() const; + void setMuteUserList(const std::vector &muteUserList); + std::string getOperatorUserId() const; + void setOperatorUserId(const std::string &operatorUserId); + int getBroadCastType() const; + void setBroadCastType(int broadCastType); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + int getMuteTime() const; + void setMuteTime(int muteTime); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::vector muteUserList_; + std::string operatorUserId_; + int broadCastType_; + std::string groupId_; + int muteTime_; + std::string appId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/MuteGroupUserResult.h b/live/include/alibabacloud/live/model/MuteGroupUserResult.h new file mode 100644 index 000000000..f2062dc0f --- /dev/null +++ b/live/include/alibabacloud/live/model/MuteGroupUserResult.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_LIVE_MODEL_MUTEGROUPUSERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT MuteGroupUserResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + MuteGroupUserResult(); + explicit MuteGroupUserResult(const std::string &payload); + ~MuteGroupUserResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MUTEGROUPUSERRESULT_H_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index d8cd72d3e..ba08e4caf 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -1275,6 +1275,42 @@ LiveClient::CancelMuteAllGroupUserOutcomeCallable LiveClient::cancelMuteAllGroup return task->get_future(); } +LiveClient::CancelMuteGroupUserOutcome LiveClient::cancelMuteGroupUser(const CancelMuteGroupUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelMuteGroupUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelMuteGroupUserOutcome(CancelMuteGroupUserResult(outcome.result())); + else + return CancelMuteGroupUserOutcome(outcome.error()); +} + +void LiveClient::cancelMuteGroupUserAsync(const CancelMuteGroupUserRequest& request, const CancelMuteGroupUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelMuteGroupUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::CancelMuteGroupUserOutcomeCallable LiveClient::cancelMuteGroupUserCallable(const CancelMuteGroupUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelMuteGroupUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::CloseLiveShiftOutcome LiveClient::closeLiveShift(const CloseLiveShiftRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6459,6 +6495,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags return task->get_future(); } +LiveClient::DescribeMeterLiveInteractionDauOutcome LiveClient::describeMeterLiveInteractionDau(const DescribeMeterLiveInteractionDauRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMeterLiveInteractionDauOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMeterLiveInteractionDauOutcome(DescribeMeterLiveInteractionDauResult(outcome.result())); + else + return DescribeMeterLiveInteractionDauOutcome(outcome.error()); +} + +void LiveClient::describeMeterLiveInteractionDauAsync(const DescribeMeterLiveInteractionDauRequest& request, const DescribeMeterLiveInteractionDauAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMeterLiveInteractionDau(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeMeterLiveInteractionDauOutcomeCallable LiveClient::describeMeterLiveInteractionDauCallable(const DescribeMeterLiveInteractionDauRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMeterLiveInteractionDau(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeMeterLiveRtcDurationOutcome LiveClient::describeMeterLiveRtcDuration(const DescribeMeterLiveRtcDurationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8511,6 +8583,78 @@ LiveClient::ModifyStudioLayoutOutcomeCallable LiveClient::modifyStudioLayoutCall return task->get_future(); } +LiveClient::MuteAllGroupUserOutcome LiveClient::muteAllGroupUser(const MuteAllGroupUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MuteAllGroupUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MuteAllGroupUserOutcome(MuteAllGroupUserResult(outcome.result())); + else + return MuteAllGroupUserOutcome(outcome.error()); +} + +void LiveClient::muteAllGroupUserAsync(const MuteAllGroupUserRequest& request, const MuteAllGroupUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, muteAllGroupUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::MuteAllGroupUserOutcomeCallable LiveClient::muteAllGroupUserCallable(const MuteAllGroupUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->muteAllGroupUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +LiveClient::MuteGroupUserOutcome LiveClient::muteGroupUser(const MuteGroupUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MuteGroupUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MuteGroupUserOutcome(MuteGroupUserResult(outcome.result())); + else + return MuteGroupUserOutcome(outcome.error()); +} + +void LiveClient::muteGroupUserAsync(const MuteGroupUserRequest& request, const MuteGroupUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, muteGroupUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::MuteGroupUserOutcomeCallable LiveClient::muteGroupUserCallable(const MuteGroupUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->muteGroupUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::OpenLiveShiftOutcome LiveClient::openLiveShift(const OpenLiveShiftRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/CancelMuteGroupUserRequest.cc b/live/src/model/CancelMuteGroupUserRequest.cc new file mode 100644 index 000000000..aa0cf278b --- /dev/null +++ b/live/src/model/CancelMuteGroupUserRequest.cc @@ -0,0 +1,74 @@ +/* + * 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::Live::Model::CancelMuteGroupUserRequest; + +CancelMuteGroupUserRequest::CancelMuteGroupUserRequest() + : RpcServiceRequest("live", "2016-11-01", "CancelMuteGroupUser") { + setMethod(HttpRequest::Method::Post); +} + +CancelMuteGroupUserRequest::~CancelMuteGroupUserRequest() {} + +std::vector CancelMuteGroupUserRequest::getCancelMuteUserList() const { + return cancelMuteUserList_; +} + +void CancelMuteGroupUserRequest::setCancelMuteUserList(const std::vector &cancelMuteUserList) { + cancelMuteUserList_ = cancelMuteUserList; + for(int dep1 = 0; dep1 != cancelMuteUserList.size(); dep1++) { + setBodyParameter(std::string("CancelMuteUserList") + "." + std::to_string(dep1 + 1), cancelMuteUserList[dep1]); + } +} + +std::string CancelMuteGroupUserRequest::getOperatorUserId() const { + return operatorUserId_; +} + +void CancelMuteGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) { + operatorUserId_ = operatorUserId; + setBodyParameter(std::string("OperatorUserId"), operatorUserId); +} + +int CancelMuteGroupUserRequest::getBroadCastType() const { + return broadCastType_; +} + +void CancelMuteGroupUserRequest::setBroadCastType(int broadCastType) { + broadCastType_ = broadCastType; + setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType)); +} + +std::string CancelMuteGroupUserRequest::getGroupId() const { + return groupId_; +} + +void CancelMuteGroupUserRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setBodyParameter(std::string("GroupId"), groupId); +} + +std::string CancelMuteGroupUserRequest::getAppId() const { + return appId_; +} + +void CancelMuteGroupUserRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/CancelMuteGroupUserResult.cc b/live/src/model/CancelMuteGroupUserResult.cc new file mode 100644 index 000000000..0c14ebc21 --- /dev/null +++ b/live/src/model/CancelMuteGroupUserResult.cc @@ -0,0 +1,52 @@ +/* + * 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::Live; +using namespace AlibabaCloud::Live::Model; + +CancelMuteGroupUserResult::CancelMuteGroupUserResult() : + ServiceResult() +{} + +CancelMuteGroupUserResult::CancelMuteGroupUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelMuteGroupUserResult::~CancelMuteGroupUserResult() +{} + +void CancelMuteGroupUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + +} + +CancelMuteGroupUserResult::Result CancelMuteGroupUserResult::getResult()const +{ + return result_; +} + diff --git a/live/src/model/DescribeMeterLiveInteractionDauRequest.cc b/live/src/model/DescribeMeterLiveInteractionDauRequest.cc new file mode 100644 index 000000000..604ba0c39 --- /dev/null +++ b/live/src/model/DescribeMeterLiveInteractionDauRequest.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 + +using AlibabaCloud::Live::Model::DescribeMeterLiveInteractionDauRequest; + +DescribeMeterLiveInteractionDauRequest::DescribeMeterLiveInteractionDauRequest() + : RpcServiceRequest("live", "2016-11-01", "DescribeMeterLiveInteractionDau") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMeterLiveInteractionDauRequest::~DescribeMeterLiveInteractionDauRequest() {} + +long DescribeMeterLiveInteractionDauRequest::getStartTs() const { + return startTs_; +} + +void DescribeMeterLiveInteractionDauRequest::setStartTs(long startTs) { + startTs_ = startTs; + setParameter(std::string("StartTs"), std::to_string(startTs)); +} + +std::string DescribeMeterLiveInteractionDauRequest::getServiceArea() const { + return serviceArea_; +} + +void DescribeMeterLiveInteractionDauRequest::setServiceArea(const std::string &serviceArea) { + serviceArea_ = serviceArea; + setParameter(std::string("ServiceArea"), serviceArea); +} + +std::string DescribeMeterLiveInteractionDauRequest::getAppId() const { + return appId_; +} + +void DescribeMeterLiveInteractionDauRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +long DescribeMeterLiveInteractionDauRequest::getEndTs() const { + return endTs_; +} + +void DescribeMeterLiveInteractionDauRequest::setEndTs(long endTs) { + endTs_ = endTs; + setParameter(std::string("EndTs"), std::to_string(endTs)); +} + +long DescribeMeterLiveInteractionDauRequest::getInterval() const { + return interval_; +} + +void DescribeMeterLiveInteractionDauRequest::setInterval(long interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); +} + diff --git a/live/src/model/DescribeMeterLiveInteractionDauResult.cc b/live/src/model/DescribeMeterLiveInteractionDauResult.cc new file mode 100644 index 000000000..bc9f45af7 --- /dev/null +++ b/live/src/model/DescribeMeterLiveInteractionDauResult.cc @@ -0,0 +1,66 @@ +/* + * 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::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeMeterLiveInteractionDauResult::DescribeMeterLiveInteractionDauResult() : + ServiceResult() +{} + +DescribeMeterLiveInteractionDauResult::DescribeMeterLiveInteractionDauResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMeterLiveInteractionDauResult::~DescribeMeterLiveInteractionDauResult() +{} + +void DescribeMeterLiveInteractionDauResult::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["Timestamp"].isNull()) + dataObject.timestamp = std::stol(valueDataDataItem["Timestamp"].asString()); + if(!valueDataDataItem["Dau"].isNull()) + dataObject.dau = valueDataDataItem["Dau"].asString(); + data_.push_back(dataObject); + } + if(!value["PeakDau"].isNull()) + peakDau_ = value["PeakDau"].asString(); + +} + +std::vector DescribeMeterLiveInteractionDauResult::getData()const +{ + return data_; +} + +double DescribeMeterLiveInteractionDauResult::getPeakDau()const +{ + return peakDau_; +} + diff --git a/live/src/model/MuteAllGroupUserRequest.cc b/live/src/model/MuteAllGroupUserRequest.cc new file mode 100644 index 000000000..953cc52d6 --- /dev/null +++ b/live/src/model/MuteAllGroupUserRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Live::Model::MuteAllGroupUserRequest; + +MuteAllGroupUserRequest::MuteAllGroupUserRequest() + : RpcServiceRequest("live", "2016-11-01", "MuteAllGroupUser") { + setMethod(HttpRequest::Method::Post); +} + +MuteAllGroupUserRequest::~MuteAllGroupUserRequest() {} + +std::string MuteAllGroupUserRequest::getOperatorUserId() const { + return operatorUserId_; +} + +void MuteAllGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) { + operatorUserId_ = operatorUserId; + setBodyParameter(std::string("OperatorUserId"), operatorUserId); +} + +std::string MuteAllGroupUserRequest::getGroupId() const { + return groupId_; +} + +void MuteAllGroupUserRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setBodyParameter(std::string("GroupId"), groupId); +} + +std::string MuteAllGroupUserRequest::getAppId() const { + return appId_; +} + +void MuteAllGroupUserRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/MuteAllGroupUserResult.cc b/live/src/model/MuteAllGroupUserResult.cc new file mode 100644 index 000000000..08b4664b5 --- /dev/null +++ b/live/src/model/MuteAllGroupUserResult.cc @@ -0,0 +1,52 @@ +/* + * 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::Live; +using namespace AlibabaCloud::Live::Model; + +MuteAllGroupUserResult::MuteAllGroupUserResult() : + ServiceResult() +{} + +MuteAllGroupUserResult::MuteAllGroupUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MuteAllGroupUserResult::~MuteAllGroupUserResult() +{} + +void MuteAllGroupUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + +} + +MuteAllGroupUserResult::Result MuteAllGroupUserResult::getResult()const +{ + return result_; +} + diff --git a/live/src/model/MuteGroupUserRequest.cc b/live/src/model/MuteGroupUserRequest.cc new file mode 100644 index 000000000..335f14764 --- /dev/null +++ b/live/src/model/MuteGroupUserRequest.cc @@ -0,0 +1,83 @@ +/* + * 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::Live::Model::MuteGroupUserRequest; + +MuteGroupUserRequest::MuteGroupUserRequest() + : RpcServiceRequest("live", "2016-11-01", "MuteGroupUser") { + setMethod(HttpRequest::Method::Post); +} + +MuteGroupUserRequest::~MuteGroupUserRequest() {} + +std::vector MuteGroupUserRequest::getMuteUserList() const { + return muteUserList_; +} + +void MuteGroupUserRequest::setMuteUserList(const std::vector &muteUserList) { + muteUserList_ = muteUserList; + for(int dep1 = 0; dep1 != muteUserList.size(); dep1++) { + setBodyParameter(std::string("MuteUserList") + "." + std::to_string(dep1 + 1), muteUserList[dep1]); + } +} + +std::string MuteGroupUserRequest::getOperatorUserId() const { + return operatorUserId_; +} + +void MuteGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) { + operatorUserId_ = operatorUserId; + setBodyParameter(std::string("OperatorUserId"), operatorUserId); +} + +int MuteGroupUserRequest::getBroadCastType() const { + return broadCastType_; +} + +void MuteGroupUserRequest::setBroadCastType(int broadCastType) { + broadCastType_ = broadCastType; + setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType)); +} + +std::string MuteGroupUserRequest::getGroupId() const { + return groupId_; +} + +void MuteGroupUserRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setBodyParameter(std::string("GroupId"), groupId); +} + +int MuteGroupUserRequest::getMuteTime() const { + return muteTime_; +} + +void MuteGroupUserRequest::setMuteTime(int muteTime) { + muteTime_ = muteTime; + setBodyParameter(std::string("MuteTime"), std::to_string(muteTime)); +} + +std::string MuteGroupUserRequest::getAppId() const { + return appId_; +} + +void MuteGroupUserRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/live/src/model/MuteGroupUserResult.cc b/live/src/model/MuteGroupUserResult.cc new file mode 100644 index 000000000..1bc76f751 --- /dev/null +++ b/live/src/model/MuteGroupUserResult.cc @@ -0,0 +1,52 @@ +/* + * 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::Live; +using namespace AlibabaCloud::Live::Model; + +MuteGroupUserResult::MuteGroupUserResult() : + ServiceResult() +{} + +MuteGroupUserResult::MuteGroupUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MuteGroupUserResult::~MuteGroupUserResult() +{} + +void MuteGroupUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + +} + +MuteGroupUserResult::Result MuteGroupUserResult::getResult()const +{ + return result_; +} +