From c1c37ba49afa69cfd8dd6d98afb0ee83306ce162 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 1 Aug 2024 02:48:16 +0000 Subject: [PATCH] Update to support new apis. --- VERSION | 2 +- live/CMakeLists.txt | 16 +- live/include/alibabacloud/live/LiveClient.h | 32 +--- ...cribeLiveDomainBpsDataByTimeStampRequest.h | 54 ------- .../DescribeLiveGrtnTrafficUsageRequest.h | 60 -------- .../DescribeLiveGrtnTrafficUsageResult.h | 66 -------- .../live/model/DescribeLiveMessageAppResult.h | 22 +-- ...beLiveStreamOptimizedFeatureConfigResult.h | 58 ------- .../DescribeLiveStreamsOnlineListRequest.h | 3 + .../DescribeLiveStreamsOnlineListResult.h | 18 ++- .../live/model/DescribeShowListResult.h | 2 + .../live/model/ListLiveMessageAppsResult.h | 1 + ...quest.h => SetShowListBackgroundRequest.h} | 30 ++-- ...Result.h => SetShowListBackgroundResult.h} | 27 +--- live/src/LiveClient.cc | 144 +++++------------- ...ribeLiveDomainBpsDataByTimeStampRequest.cc | 72 --------- ...cribeLiveDomainBpsDataByTimeStampResult.cc | 77 ---------- .../DescribeLiveGrtnTrafficUsageRequest.cc | 90 ----------- .../DescribeLiveGrtnTrafficUsageResult.cc | 94 ------------ .../src/model/DescribeLiveMessageAppResult.cc | 57 ++++--- ...LiveStreamOptimizedFeatureConfigRequest.cc | 54 ------- ...eLiveStreamOptimizedFeatureConfigResult.cc | 63 -------- .../DescribeLiveStreamsOnlineListRequest.cc | 9 ++ .../DescribeLiveStreamsOnlineListResult.cc | 12 ++ live/src/model/DescribeShowListResult.cc | 4 + live/src/model/ListLiveMessageAppsResult.cc | 2 + .../src/model/SetShowListBackgroundRequest.cc | 72 +++++++++ live/src/model/SetShowListBackgroundResult.cc | 44 ++++++ 28 files changed, 279 insertions(+), 906 deletions(-) delete mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h delete mode 100644 live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageRequest.h delete mode 100644 live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageResult.h delete mode 100644 live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigResult.h rename live/include/alibabacloud/live/model/{DescribeLiveStreamOptimizedFeatureConfigRequest.h => SetShowListBackgroundRequest.h} (53%) rename live/include/alibabacloud/live/model/{DescribeLiveDomainBpsDataByTimeStampResult.h => SetShowListBackgroundResult.h} (51%) delete mode 100644 live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc delete mode 100644 live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc delete mode 100644 live/src/model/DescribeLiveGrtnTrafficUsageRequest.cc delete mode 100644 live/src/model/DescribeLiveGrtnTrafficUsageResult.cc delete mode 100644 live/src/model/DescribeLiveStreamOptimizedFeatureConfigRequest.cc delete mode 100644 live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc create mode 100644 live/src/model/SetShowListBackgroundRequest.cc create mode 100644 live/src/model/SetShowListBackgroundResult.cc diff --git a/VERSION b/VERSION index c6ff8da41..ab29df0b7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1961 \ No newline at end of file +1.36.1962 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 1befdcf30..f7dc535ca 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -319,8 +319,6 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveDomainBpsDataResult.h include/alibabacloud/live/model/DescribeLiveDomainBpsDataByLayerRequest.h include/alibabacloud/live/model/DescribeLiveDomainBpsDataByLayerResult.h - include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h - include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h include/alibabacloud/live/model/DescribeLiveDomainByCertificateRequest.h include/alibabacloud/live/model/DescribeLiveDomainByCertificateResult.h include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoRequest.h @@ -385,8 +383,6 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveEdgeTransferResult.h include/alibabacloud/live/model/DescribeLiveGrtnDurationRequest.h include/alibabacloud/live/model/DescribeLiveGrtnDurationResult.h - include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageRequest.h - include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageResult.h include/alibabacloud/live/model/DescribeLiveHttpsDomainListRequest.h include/alibabacloud/live/model/DescribeLiveHttpsDomainListResult.h include/alibabacloud/live/model/DescribeLiveInteractionMetricDataRequest.h @@ -453,8 +449,6 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveStreamMetricDetailDataResult.h include/alibabacloud/live/model/DescribeLiveStreamMonitorListRequest.h include/alibabacloud/live/model/DescribeLiveStreamMonitorListResult.h - include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigRequest.h - include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigResult.h include/alibabacloud/live/model/DescribeLiveStreamPreloadTasksRequest.h include/alibabacloud/live/model/DescribeLiveStreamPreloadTasksResult.h include/alibabacloud/live/model/DescribeLiveStreamPushMetricDetailDataRequest.h @@ -735,6 +729,8 @@ set(live_public_header_model include/alibabacloud/live/model/SetLiveStreamPreloadTasksResult.h include/alibabacloud/live/model/SetLiveStreamsNotifyUrlConfigRequest.h include/alibabacloud/live/model/SetLiveStreamsNotifyUrlConfigResult.h + include/alibabacloud/live/model/SetShowListBackgroundRequest.h + include/alibabacloud/live/model/SetShowListBackgroundResult.h include/alibabacloud/live/model/SetSnapshotCallbackAuthRequest.h include/alibabacloud/live/model/SetSnapshotCallbackAuthResult.h include/alibabacloud/live/model/StartCasterRequest.h @@ -1130,8 +1126,6 @@ set(live_src src/model/DescribeLiveDomainBpsDataResult.cc src/model/DescribeLiveDomainBpsDataByLayerRequest.cc src/model/DescribeLiveDomainBpsDataByLayerResult.cc - src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc - src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc src/model/DescribeLiveDomainByCertificateRequest.cc src/model/DescribeLiveDomainByCertificateResult.cc src/model/DescribeLiveDomainCertificateInfoRequest.cc @@ -1196,8 +1190,6 @@ set(live_src src/model/DescribeLiveEdgeTransferResult.cc src/model/DescribeLiveGrtnDurationRequest.cc src/model/DescribeLiveGrtnDurationResult.cc - src/model/DescribeLiveGrtnTrafficUsageRequest.cc - src/model/DescribeLiveGrtnTrafficUsageResult.cc src/model/DescribeLiveHttpsDomainListRequest.cc src/model/DescribeLiveHttpsDomainListResult.cc src/model/DescribeLiveInteractionMetricDataRequest.cc @@ -1264,8 +1256,6 @@ set(live_src src/model/DescribeLiveStreamMetricDetailDataResult.cc src/model/DescribeLiveStreamMonitorListRequest.cc src/model/DescribeLiveStreamMonitorListResult.cc - src/model/DescribeLiveStreamOptimizedFeatureConfigRequest.cc - src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc src/model/DescribeLiveStreamPreloadTasksRequest.cc src/model/DescribeLiveStreamPreloadTasksResult.cc src/model/DescribeLiveStreamPushMetricDetailDataRequest.cc @@ -1546,6 +1536,8 @@ set(live_src src/model/SetLiveStreamPreloadTasksResult.cc src/model/SetLiveStreamsNotifyUrlConfigRequest.cc src/model/SetLiveStreamsNotifyUrlConfigResult.cc + src/model/SetShowListBackgroundRequest.cc + src/model/SetShowListBackgroundResult.cc src/model/SetSnapshotCallbackAuthRequest.cc src/model/SetSnapshotCallbackAuthResult.cc src/model/StartCasterRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index d3f1c7b56..61287c746 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -320,8 +320,6 @@ #include "model/DescribeLiveDomainBpsDataResult.h" #include "model/DescribeLiveDomainBpsDataByLayerRequest.h" #include "model/DescribeLiveDomainBpsDataByLayerResult.h" -#include "model/DescribeLiveDomainBpsDataByTimeStampRequest.h" -#include "model/DescribeLiveDomainBpsDataByTimeStampResult.h" #include "model/DescribeLiveDomainByCertificateRequest.h" #include "model/DescribeLiveDomainByCertificateResult.h" #include "model/DescribeLiveDomainCertificateInfoRequest.h" @@ -386,8 +384,6 @@ #include "model/DescribeLiveEdgeTransferResult.h" #include "model/DescribeLiveGrtnDurationRequest.h" #include "model/DescribeLiveGrtnDurationResult.h" -#include "model/DescribeLiveGrtnTrafficUsageRequest.h" -#include "model/DescribeLiveGrtnTrafficUsageResult.h" #include "model/DescribeLiveHttpsDomainListRequest.h" #include "model/DescribeLiveHttpsDomainListResult.h" #include "model/DescribeLiveInteractionMetricDataRequest.h" @@ -454,8 +450,6 @@ #include "model/DescribeLiveStreamMetricDetailDataResult.h" #include "model/DescribeLiveStreamMonitorListRequest.h" #include "model/DescribeLiveStreamMonitorListResult.h" -#include "model/DescribeLiveStreamOptimizedFeatureConfigRequest.h" -#include "model/DescribeLiveStreamOptimizedFeatureConfigResult.h" #include "model/DescribeLiveStreamPreloadTasksRequest.h" #include "model/DescribeLiveStreamPreloadTasksResult.h" #include "model/DescribeLiveStreamPushMetricDetailDataRequest.h" @@ -736,6 +730,8 @@ #include "model/SetLiveStreamPreloadTasksResult.h" #include "model/SetLiveStreamsNotifyUrlConfigRequest.h" #include "model/SetLiveStreamsNotifyUrlConfigResult.h" +#include "model/SetShowListBackgroundRequest.h" +#include "model/SetShowListBackgroundResult.h" #include "model/SetSnapshotCallbackAuthRequest.h" #include "model/SetSnapshotCallbackAuthResult.h" #include "model/StartCasterRequest.h" @@ -1286,9 +1282,6 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainBpsDataByLayerOutcome; typedef std::future DescribeLiveDomainBpsDataByLayerOutcomeCallable; typedef std::function&)> DescribeLiveDomainBpsDataByLayerAsyncHandler; - typedef Outcome DescribeLiveDomainBpsDataByTimeStampOutcome; - typedef std::future DescribeLiveDomainBpsDataByTimeStampOutcomeCallable; - typedef std::function&)> DescribeLiveDomainBpsDataByTimeStampAsyncHandler; typedef Outcome DescribeLiveDomainByCertificateOutcome; typedef std::future DescribeLiveDomainByCertificateOutcomeCallable; typedef std::function&)> DescribeLiveDomainByCertificateAsyncHandler; @@ -1385,9 +1378,6 @@ namespace AlibabaCloud typedef Outcome DescribeLiveGrtnDurationOutcome; typedef std::future DescribeLiveGrtnDurationOutcomeCallable; typedef std::function&)> DescribeLiveGrtnDurationAsyncHandler; - typedef Outcome DescribeLiveGrtnTrafficUsageOutcome; - typedef std::future DescribeLiveGrtnTrafficUsageOutcomeCallable; - typedef std::function&)> DescribeLiveGrtnTrafficUsageAsyncHandler; typedef Outcome DescribeLiveHttpsDomainListOutcome; typedef std::future DescribeLiveHttpsDomainListOutcomeCallable; typedef std::function&)> DescribeLiveHttpsDomainListAsyncHandler; @@ -1487,9 +1477,6 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamMonitorListOutcome; typedef std::future DescribeLiveStreamMonitorListOutcomeCallable; typedef std::function&)> DescribeLiveStreamMonitorListAsyncHandler; - typedef Outcome DescribeLiveStreamOptimizedFeatureConfigOutcome; - typedef std::future DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable; - typedef std::function&)> DescribeLiveStreamOptimizedFeatureConfigAsyncHandler; typedef Outcome DescribeLiveStreamPreloadTasksOutcome; typedef std::future DescribeLiveStreamPreloadTasksOutcomeCallable; typedef std::function&)> DescribeLiveStreamPreloadTasksAsyncHandler; @@ -1910,6 +1897,9 @@ namespace AlibabaCloud typedef Outcome SetLiveStreamsNotifyUrlConfigOutcome; typedef std::future SetLiveStreamsNotifyUrlConfigOutcomeCallable; typedef std::function&)> SetLiveStreamsNotifyUrlConfigAsyncHandler; + typedef Outcome SetShowListBackgroundOutcome; + typedef std::future SetShowListBackgroundOutcomeCallable; + typedef std::function&)> SetShowListBackgroundAsyncHandler; typedef Outcome SetSnapshotCallbackAuthOutcome; typedef std::future SetSnapshotCallbackAuthOutcomeCallable; typedef std::function&)> SetSnapshotCallbackAuthAsyncHandler; @@ -2503,9 +2493,6 @@ namespace AlibabaCloud DescribeLiveDomainBpsDataByLayerOutcome describeLiveDomainBpsDataByLayer(const Model::DescribeLiveDomainBpsDataByLayerRequest &request)const; void describeLiveDomainBpsDataByLayerAsync(const Model::DescribeLiveDomainBpsDataByLayerRequest& request, const DescribeLiveDomainBpsDataByLayerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainBpsDataByLayerOutcomeCallable describeLiveDomainBpsDataByLayerCallable(const Model::DescribeLiveDomainBpsDataByLayerRequest& request) const; - DescribeLiveDomainBpsDataByTimeStampOutcome describeLiveDomainBpsDataByTimeStamp(const Model::DescribeLiveDomainBpsDataByTimeStampRequest &request)const; - void describeLiveDomainBpsDataByTimeStampAsync(const Model::DescribeLiveDomainBpsDataByTimeStampRequest& request, const DescribeLiveDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveDomainBpsDataByTimeStampOutcomeCallable describeLiveDomainBpsDataByTimeStampCallable(const Model::DescribeLiveDomainBpsDataByTimeStampRequest& request) const; DescribeLiveDomainByCertificateOutcome describeLiveDomainByCertificate(const Model::DescribeLiveDomainByCertificateRequest &request)const; void describeLiveDomainByCertificateAsync(const Model::DescribeLiveDomainByCertificateRequest& request, const DescribeLiveDomainByCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainByCertificateOutcomeCallable describeLiveDomainByCertificateCallable(const Model::DescribeLiveDomainByCertificateRequest& request) const; @@ -2602,9 +2589,6 @@ namespace AlibabaCloud DescribeLiveGrtnDurationOutcome describeLiveGrtnDuration(const Model::DescribeLiveGrtnDurationRequest &request)const; void describeLiveGrtnDurationAsync(const Model::DescribeLiveGrtnDurationRequest& request, const DescribeLiveGrtnDurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveGrtnDurationOutcomeCallable describeLiveGrtnDurationCallable(const Model::DescribeLiveGrtnDurationRequest& request) const; - DescribeLiveGrtnTrafficUsageOutcome describeLiveGrtnTrafficUsage(const Model::DescribeLiveGrtnTrafficUsageRequest &request)const; - void describeLiveGrtnTrafficUsageAsync(const Model::DescribeLiveGrtnTrafficUsageRequest& request, const DescribeLiveGrtnTrafficUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveGrtnTrafficUsageOutcomeCallable describeLiveGrtnTrafficUsageCallable(const Model::DescribeLiveGrtnTrafficUsageRequest& request) const; DescribeLiveHttpsDomainListOutcome describeLiveHttpsDomainList(const Model::DescribeLiveHttpsDomainListRequest &request)const; void describeLiveHttpsDomainListAsync(const Model::DescribeLiveHttpsDomainListRequest& request, const DescribeLiveHttpsDomainListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveHttpsDomainListOutcomeCallable describeLiveHttpsDomainListCallable(const Model::DescribeLiveHttpsDomainListRequest& request) const; @@ -2704,9 +2688,6 @@ namespace AlibabaCloud DescribeLiveStreamMonitorListOutcome describeLiveStreamMonitorList(const Model::DescribeLiveStreamMonitorListRequest &request)const; void describeLiveStreamMonitorListAsync(const Model::DescribeLiveStreamMonitorListRequest& request, const DescribeLiveStreamMonitorListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamMonitorListOutcomeCallable describeLiveStreamMonitorListCallable(const Model::DescribeLiveStreamMonitorListRequest& request) const; - DescribeLiveStreamOptimizedFeatureConfigOutcome describeLiveStreamOptimizedFeatureConfig(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest &request)const; - void describeLiveStreamOptimizedFeatureConfigAsync(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest& request, const DescribeLiveStreamOptimizedFeatureConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable describeLiveStreamOptimizedFeatureConfigCallable(const Model::DescribeLiveStreamOptimizedFeatureConfigRequest& request) const; DescribeLiveStreamPreloadTasksOutcome describeLiveStreamPreloadTasks(const Model::DescribeLiveStreamPreloadTasksRequest &request)const; void describeLiveStreamPreloadTasksAsync(const Model::DescribeLiveStreamPreloadTasksRequest& request, const DescribeLiveStreamPreloadTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamPreloadTasksOutcomeCallable describeLiveStreamPreloadTasksCallable(const Model::DescribeLiveStreamPreloadTasksRequest& request) const; @@ -3127,6 +3108,9 @@ namespace AlibabaCloud SetLiveStreamsNotifyUrlConfigOutcome setLiveStreamsNotifyUrlConfig(const Model::SetLiveStreamsNotifyUrlConfigRequest &request)const; void setLiveStreamsNotifyUrlConfigAsync(const Model::SetLiveStreamsNotifyUrlConfigRequest& request, const SetLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLiveStreamsNotifyUrlConfigOutcomeCallable setLiveStreamsNotifyUrlConfigCallable(const Model::SetLiveStreamsNotifyUrlConfigRequest& request) const; + SetShowListBackgroundOutcome setShowListBackground(const Model::SetShowListBackgroundRequest &request)const; + void setShowListBackgroundAsync(const Model::SetShowListBackgroundRequest& request, const SetShowListBackgroundAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetShowListBackgroundOutcomeCallable setShowListBackgroundCallable(const Model::SetShowListBackgroundRequest& request) const; SetSnapshotCallbackAuthOutcome setSnapshotCallbackAuth(const Model::SetSnapshotCallbackAuthRequest &request)const; void setSnapshotCallbackAuthAsync(const Model::SetSnapshotCallbackAuthRequest& request, const SetSnapshotCallbackAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetSnapshotCallbackAuthOutcomeCallable setSnapshotCallbackAuthCallable(const Model::SetSnapshotCallbackAuthRequest& request) const; diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h deleted file mode 100644 index 900ff164c..000000000 --- a/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPREQUEST_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Live { -namespace Model { -class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainBpsDataByTimeStampRequest : public RpcServiceRequest { -public: - DescribeLiveDomainBpsDataByTimeStampRequest(); - ~DescribeLiveDomainBpsDataByTimeStampRequest(); - std::string getLocationNames() const; - void setLocationNames(const std::string &locationNames); - std::string getIspNames() const; - void setIspNames(const std::string &ispNames); - std::string getDomainName() const; - void setDomainName(const std::string &domainName); - long getOwnerId() const; - void setOwnerId(long ownerId); - std::string getTimePoint() const; - void setTimePoint(const std::string &timePoint); - -private: - std::string locationNames_; - std::string ispNames_; - std::string domainName_; - long ownerId_; - std::string timePoint_; -}; -} // namespace Model -} // namespace Live -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageRequest.h b/live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageRequest.h deleted file mode 100644 index 466842165..000000000 --- a/live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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_DESCRIBELIVEGRTNTRAFFICUSAGEREQUEST_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEGRTNTRAFFICUSAGEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Live { -namespace Model { -class ALIBABACLOUD_LIVE_EXPORT DescribeLiveGrtnTrafficUsageRequest : public RpcServiceRequest { -public: - DescribeLiveGrtnTrafficUsageRequest(); - ~DescribeLiveGrtnTrafficUsageRequest(); - std::string getStartTime() const; - void setStartTime(const std::string &startTime); - std::string getArea() const; - void setArea(const std::string &area); - std::string getEndTime() const; - void setEndTime(const std::string &endTime); - long getOwnerId() const; - void setOwnerId(long ownerId); - std::string getField() const; - void setField(const std::string &field); - std::string getAppId() const; - void setAppId(const std::string &appId); - std::string getInterval() const; - void setInterval(const std::string &interval); - -private: - std::string startTime_; - std::string area_; - std::string endTime_; - long ownerId_; - std::string field_; - std::string appId_; - std::string interval_; -}; -} // namespace Model -} // namespace Live -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEGRTNTRAFFICUSAGEREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageResult.h b/live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageResult.h deleted file mode 100644 index 60b4e12de..000000000 --- a/live/include/alibabacloud/live/model/DescribeLiveGrtnTrafficUsageResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_DESCRIBELIVEGRTNTRAFFICUSAGERESULT_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEGRTNTRAFFICUSAGERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Live - { - namespace Model - { - class ALIBABACLOUD_LIVE_EXPORT DescribeLiveGrtnTrafficUsageResult : public ServiceResult - { - public: - struct UsageData - { - double value; - std::string timeStamp; - }; - - - DescribeLiveGrtnTrafficUsageResult(); - explicit DescribeLiveGrtnTrafficUsageResult(const std::string &payload); - ~DescribeLiveGrtnTrafficUsageResult(); - std::vector getUsageDataPerInterval()const; - std::string getArea()const; - std::string getFiled()const; - std::string getAppId()const; - std::string getEndTime()const; - std::string getStartTime()const; - - protected: - void parse(const std::string &payload); - private: - std::vector usageDataPerInterval_; - std::string area_; - std::string filed_; - std::string appId_; - std::string endTime_; - std::string startTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEGRTNTRAFFICUSAGERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h b/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h index 22b431f87..2a107374c 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveMessageAppResult.h @@ -37,34 +37,36 @@ namespace AlibabaCloud DescribeLiveMessageAppResult(); explicit DescribeLiveMessageAppResult(const std::string &payload); ~DescribeLiveMessageAppResult(); - std::string getCallbackUrl()const; long getModifyTime()const; + int getAuditType()const; + long getCreateTime()const; + int getMsgLifeCycle()const; + std::string getEventCallbackUrl()const; + std::string getAppName()const; + std::string getCallbackUrl()const; std::string getAuditUrl()const; std::string getDataCenter()const; std::string getAppId()const; - int getAuditType()const; std::string getAppKey()const; - long getCreateTime()const; - std::string getEventCallbackUrl()const; std::string getAppSign()const; bool getDisable()const; - std::string getAppName()const; protected: void parse(const std::string &payload); private: - std::string callbackUrl_; long modifyTime_; + int auditType_; + long createTime_; + int msgLifeCycle_; + std::string eventCallbackUrl_; + std::string appName_; + std::string callbackUrl_; std::string auditUrl_; std::string dataCenter_; std::string appId_; - int auditType_; std::string appKey_; - long createTime_; - std::string eventCallbackUrl_; std::string appSign_; bool disable_; - std::string appName_; }; } diff --git a/live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigResult.h b/live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigResult.h deleted file mode 100644 index bd09265b8..000000000 --- a/live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigResult.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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_DESCRIBELIVESTREAMOPTIMIZEDFEATURECONFIGRESULT_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVESTREAMOPTIMIZEDFEATURECONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Live - { - namespace Model - { - class ALIBABACLOUD_LIVE_EXPORT DescribeLiveStreamOptimizedFeatureConfigResult : public ServiceResult - { - public: - struct LiveStreamOptimizedFeatureConfig - { - std::string configValue; - std::string configName; - std::string domainName; - std::string configStatus; - }; - - - DescribeLiveStreamOptimizedFeatureConfigResult(); - explicit DescribeLiveStreamOptimizedFeatureConfigResult(const std::string &payload); - ~DescribeLiveStreamOptimizedFeatureConfigResult(); - std::vector getLiveStreamOptimizedFeatureConfigList()const; - - protected: - void parse(const std::string &payload); - private: - std::vector liveStreamOptimizedFeatureConfigList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVESTREAMOPTIMIZEDFEATURECONFIGRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListRequest.h b/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListRequest.h index 068aada74..72cb1430e 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListRequest.h +++ b/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListRequest.h @@ -40,6 +40,8 @@ public: void setAppName(const std::string &appName); int getPageSize() const; void setPageSize(int pageSize); + bool getIsGetCurrentRate() const; + void setIsGetCurrentRate(bool isGetCurrentRate); std::string getStreamName() const; void setStreamName(const std::string &streamName); std::string getQueryType() const; @@ -61,6 +63,7 @@ private: int pageNum_; std::string appName_; int pageSize_; + bool isGetCurrentRate_; std::string streamName_; std::string queryType_; std::string streamType_; diff --git a/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h b/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h index fd4c612fa..11f67ec69 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveStreamsOnlineListResult.h @@ -35,25 +35,31 @@ namespace AlibabaCloud struct LiveStreamOnlineInfo { std::string publishUrl; - int frameRate; - std::string domainName; - std::string transcodeId; - std::string serverIp; + int currAudioDataRate; std::string streamUrlArgs; + int currWidth; std::string transcodeDrm; std::string clientIp; + int currFrameRate; std::string publishType; std::string appName; int audioDataRate; std::string streamName; std::string publishDomain; - std::string transcoded; int height; std::string publishTime; int audioCodecId; - int videoDataRate; int width; int videoCodecId; + int frameRate; + int currVideoDataRate; + std::string domainName; + std::string transcodeId; + std::string serverIp; + int currHeight; + int currVideoCodecId; + std::string transcoded; + int videoDataRate; }; diff --git a/live/include/alibabacloud/live/model/DescribeShowListResult.h b/live/include/alibabacloud/live/model/DescribeShowListResult.h index 1e0b207e5..b6395aa8a 100644 --- a/live/include/alibabacloud/live/model/DescribeShowListResult.h +++ b/live/include/alibabacloud/live/model/DescribeShowListResult.h @@ -49,10 +49,12 @@ namespace AlibabaCloud int repeatTimes; std::string showName; }; + std::string background; std::string currentShowId; std::string highPriorityShowId; std::string highPriorityShowStartTime; int totalShowListRepeatTimes; + std::string watermark; int showListRepeatTimes; std::vector showList; }; diff --git a/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h b/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h index e47d7c78a..655c43131 100644 --- a/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h +++ b/live/include/alibabacloud/live/model/ListLiveMessageAppsResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string appId; std::string appKey; long createTime; + int msgLifeCycle; std::string appSign; std::string disable; std::string appName; diff --git a/live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigRequest.h b/live/include/alibabacloud/live/model/SetShowListBackgroundRequest.h similarity index 53% rename from live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigRequest.h rename to live/include/alibabacloud/live/model/SetShowListBackgroundRequest.h index 2325c7995..9a3f06dbf 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveStreamOptimizedFeatureConfigRequest.h +++ b/live/include/alibabacloud/live/model/SetShowListBackgroundRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVESTREAMOPTIMIZEDFEATURECONFIGREQUEST_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVESTREAMOPTIMIZEDFEATURECONFIGREQUEST_H_ +#ifndef ALIBABACLOUD_LIVE_MODEL_SETSHOWLISTBACKGROUNDREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_SETSHOWLISTBACKGROUNDREQUEST_H_ #include #include @@ -26,23 +26,29 @@ namespace AlibabaCloud { namespace Live { namespace Model { -class ALIBABACLOUD_LIVE_EXPORT DescribeLiveStreamOptimizedFeatureConfigRequest : public RpcServiceRequest { +class ALIBABACLOUD_LIVE_EXPORT SetShowListBackgroundRequest : public RpcServiceRequest { public: - DescribeLiveStreamOptimizedFeatureConfigRequest(); - ~DescribeLiveStreamOptimizedFeatureConfigRequest(); - std::string getConfigName() const; - void setConfigName(const std::string &configName); - std::string getDomainName() const; - void setDomainName(const std::string &domainName); + SetShowListBackgroundRequest(); + ~SetShowListBackgroundRequest(); + std::string getMaterialId() const; + void setMaterialId(const std::string &materialId); + std::string getCasterId() const; + void setCasterId(const std::string &casterId); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getResourceUrl() const; + void setResourceUrl(const std::string &resourceUrl); private: - std::string configName_; - std::string domainName_; + std::string materialId_; + std::string casterId_; long ownerId_; + std::string resourceType_; + std::string resourceUrl_; }; } // namespace Model } // namespace Live } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVESTREAMOPTIMIZEDFEATURECONFIGREQUEST_H_ +#endif // !ALIBABACLOUD_LIVE_MODEL_SETSHOWLISTBACKGROUNDREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h b/live/include/alibabacloud/live/model/SetShowListBackgroundResult.h similarity index 51% rename from live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h rename to live/include/alibabacloud/live/model/SetShowListBackgroundResult.h index b21046826..aebadecd3 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h +++ b/live/include/alibabacloud/live/model/SetShowListBackgroundResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPRESULT_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPRESULT_H_ +#ifndef ALIBABACLOUD_LIVE_MODEL_SETSHOWLISTBACKGROUNDRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_SETSHOWLISTBACKGROUNDRESULT_H_ #include #include @@ -29,34 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainBpsDataByTimeStampResult : public ServiceResult + class ALIBABACLOUD_LIVE_EXPORT SetShowListBackgroundResult : public ServiceResult { public: - struct BpsDataModel - { - std::string ispName; - long bps; - std::string timeStamp; - std::string locationName; - }; - DescribeLiveDomainBpsDataByTimeStampResult(); - explicit DescribeLiveDomainBpsDataByTimeStampResult(const std::string &payload); - ~DescribeLiveDomainBpsDataByTimeStampResult(); - std::vector getBpsDataList()const; - std::string getDomainName()const; - std::string getTimeStamp()const; + SetShowListBackgroundResult(); + explicit SetShowListBackgroundResult(const std::string &payload); + ~SetShowListBackgroundResult(); protected: void parse(const std::string &payload); private: - std::vector bpsDataList_; - std::string domainName_; - std::string timeStamp_; }; } } } -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINBPSDATABYTIMESTAMPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_LIVE_MODEL_SETSHOWLISTBACKGROUNDRESULT_H_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 53dc2acf2..75f7b9353 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -5415,42 +5415,6 @@ LiveClient::DescribeLiveDomainBpsDataByLayerOutcomeCallable LiveClient::describe return task->get_future(); } -LiveClient::DescribeLiveDomainBpsDataByTimeStampOutcome LiveClient::describeLiveDomainBpsDataByTimeStamp(const DescribeLiveDomainBpsDataByTimeStampRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveDomainBpsDataByTimeStampOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveDomainBpsDataByTimeStampOutcome(DescribeLiveDomainBpsDataByTimeStampResult(outcome.result())); - else - return DescribeLiveDomainBpsDataByTimeStampOutcome(outcome.error()); -} - -void LiveClient::describeLiveDomainBpsDataByTimeStampAsync(const DescribeLiveDomainBpsDataByTimeStampRequest& request, const DescribeLiveDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveDomainBpsDataByTimeStamp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveDomainBpsDataByTimeStampOutcomeCallable LiveClient::describeLiveDomainBpsDataByTimeStampCallable(const DescribeLiveDomainBpsDataByTimeStampRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveDomainBpsDataByTimeStamp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeLiveDomainByCertificateOutcome LiveClient::describeLiveDomainByCertificate(const DescribeLiveDomainByCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6603,42 +6567,6 @@ LiveClient::DescribeLiveGrtnDurationOutcomeCallable LiveClient::describeLiveGrtn return task->get_future(); } -LiveClient::DescribeLiveGrtnTrafficUsageOutcome LiveClient::describeLiveGrtnTrafficUsage(const DescribeLiveGrtnTrafficUsageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveGrtnTrafficUsageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveGrtnTrafficUsageOutcome(DescribeLiveGrtnTrafficUsageResult(outcome.result())); - else - return DescribeLiveGrtnTrafficUsageOutcome(outcome.error()); -} - -void LiveClient::describeLiveGrtnTrafficUsageAsync(const DescribeLiveGrtnTrafficUsageRequest& request, const DescribeLiveGrtnTrafficUsageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveGrtnTrafficUsage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveGrtnTrafficUsageOutcomeCallable LiveClient::describeLiveGrtnTrafficUsageCallable(const DescribeLiveGrtnTrafficUsageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveGrtnTrafficUsage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeLiveHttpsDomainListOutcome LiveClient::describeLiveHttpsDomainList(const DescribeLiveHttpsDomainListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7827,42 +7755,6 @@ LiveClient::DescribeLiveStreamMonitorListOutcomeCallable LiveClient::describeLiv return task->get_future(); } -LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcome LiveClient::describeLiveStreamOptimizedFeatureConfig(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamOptimizedFeatureConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamOptimizedFeatureConfigOutcome(DescribeLiveStreamOptimizedFeatureConfigResult(outcome.result())); - else - return DescribeLiveStreamOptimizedFeatureConfigOutcome(outcome.error()); -} - -void LiveClient::describeLiveStreamOptimizedFeatureConfigAsync(const DescribeLiveStreamOptimizedFeatureConfigRequest& request, const DescribeLiveStreamOptimizedFeatureConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamOptimizedFeatureConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcomeCallable LiveClient::describeLiveStreamOptimizedFeatureConfigCallable(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamOptimizedFeatureConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeLiveStreamPreloadTasksOutcome LiveClient::describeLiveStreamPreloadTasks(const DescribeLiveStreamPreloadTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12903,6 +12795,42 @@ LiveClient::SetLiveStreamsNotifyUrlConfigOutcomeCallable LiveClient::setLiveStre return task->get_future(); } +LiveClient::SetShowListBackgroundOutcome LiveClient::setShowListBackground(const SetShowListBackgroundRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetShowListBackgroundOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetShowListBackgroundOutcome(SetShowListBackgroundResult(outcome.result())); + else + return SetShowListBackgroundOutcome(outcome.error()); +} + +void LiveClient::setShowListBackgroundAsync(const SetShowListBackgroundRequest& request, const SetShowListBackgroundAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setShowListBackground(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::SetShowListBackgroundOutcomeCallable LiveClient::setShowListBackgroundCallable(const SetShowListBackgroundRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setShowListBackground(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::SetSnapshotCallbackAuthOutcome LiveClient::setSnapshotCallbackAuth(const SetSnapshotCallbackAuthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc b/live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc deleted file mode 100644 index ac8ece54e..000000000 --- a/live/src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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::DescribeLiveDomainBpsDataByTimeStampRequest; - -DescribeLiveDomainBpsDataByTimeStampRequest::DescribeLiveDomainBpsDataByTimeStampRequest() - : RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainBpsDataByTimeStamp") { - setMethod(HttpRequest::Method::Post); -} - -DescribeLiveDomainBpsDataByTimeStampRequest::~DescribeLiveDomainBpsDataByTimeStampRequest() {} - -std::string DescribeLiveDomainBpsDataByTimeStampRequest::getLocationNames() const { - return locationNames_; -} - -void DescribeLiveDomainBpsDataByTimeStampRequest::setLocationNames(const std::string &locationNames) { - locationNames_ = locationNames; - setParameter(std::string("LocationNames"), locationNames); -} - -std::string DescribeLiveDomainBpsDataByTimeStampRequest::getIspNames() const { - return ispNames_; -} - -void DescribeLiveDomainBpsDataByTimeStampRequest::setIspNames(const std::string &ispNames) { - ispNames_ = ispNames; - setParameter(std::string("IspNames"), ispNames); -} - -std::string DescribeLiveDomainBpsDataByTimeStampRequest::getDomainName() const { - return domainName_; -} - -void DescribeLiveDomainBpsDataByTimeStampRequest::setDomainName(const std::string &domainName) { - domainName_ = domainName; - setParameter(std::string("DomainName"), domainName); -} - -long DescribeLiveDomainBpsDataByTimeStampRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeLiveDomainBpsDataByTimeStampRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeLiveDomainBpsDataByTimeStampRequest::getTimePoint() const { - return timePoint_; -} - -void DescribeLiveDomainBpsDataByTimeStampRequest::setTimePoint(const std::string &timePoint) { - timePoint_ = timePoint; - setParameter(std::string("TimePoint"), timePoint); -} - diff --git a/live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc b/live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc deleted file mode 100644 index 473aa1e74..000000000 --- a/live/src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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; - -DescribeLiveDomainBpsDataByTimeStampResult::DescribeLiveDomainBpsDataByTimeStampResult() : - ServiceResult() -{} - -DescribeLiveDomainBpsDataByTimeStampResult::DescribeLiveDomainBpsDataByTimeStampResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLiveDomainBpsDataByTimeStampResult::~DescribeLiveDomainBpsDataByTimeStampResult() -{} - -void DescribeLiveDomainBpsDataByTimeStampResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allBpsDataListNode = value["BpsDataList"]["BpsDataModel"]; - for (auto valueBpsDataListBpsDataModel : allBpsDataListNode) - { - BpsDataModel bpsDataListObject; - if(!valueBpsDataListBpsDataModel["LocationName"].isNull()) - bpsDataListObject.locationName = valueBpsDataListBpsDataModel["LocationName"].asString(); - if(!valueBpsDataListBpsDataModel["TimeStamp"].isNull()) - bpsDataListObject.timeStamp = valueBpsDataListBpsDataModel["TimeStamp"].asString(); - if(!valueBpsDataListBpsDataModel["IspName"].isNull()) - bpsDataListObject.ispName = valueBpsDataListBpsDataModel["IspName"].asString(); - if(!valueBpsDataListBpsDataModel["Bps"].isNull()) - bpsDataListObject.bps = std::stol(valueBpsDataListBpsDataModel["Bps"].asString()); - bpsDataList_.push_back(bpsDataListObject); - } - if(!value["TimeStamp"].isNull()) - timeStamp_ = value["TimeStamp"].asString(); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); - -} - -std::vector DescribeLiveDomainBpsDataByTimeStampResult::getBpsDataList()const -{ - return bpsDataList_; -} - -std::string DescribeLiveDomainBpsDataByTimeStampResult::getDomainName()const -{ - return domainName_; -} - -std::string DescribeLiveDomainBpsDataByTimeStampResult::getTimeStamp()const -{ - return timeStamp_; -} - diff --git a/live/src/model/DescribeLiveGrtnTrafficUsageRequest.cc b/live/src/model/DescribeLiveGrtnTrafficUsageRequest.cc deleted file mode 100644 index b64be54a9..000000000 --- a/live/src/model/DescribeLiveGrtnTrafficUsageRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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::DescribeLiveGrtnTrafficUsageRequest; - -DescribeLiveGrtnTrafficUsageRequest::DescribeLiveGrtnTrafficUsageRequest() - : RpcServiceRequest("live", "2016-11-01", "DescribeLiveGrtnTrafficUsage") { - setMethod(HttpRequest::Method::Post); -} - -DescribeLiveGrtnTrafficUsageRequest::~DescribeLiveGrtnTrafficUsageRequest() {} - -std::string DescribeLiveGrtnTrafficUsageRequest::getStartTime() const { - return startTime_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeLiveGrtnTrafficUsageRequest::getArea() const { - return area_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setArea(const std::string &area) { - area_ = area; - setParameter(std::string("Area"), area); -} - -std::string DescribeLiveGrtnTrafficUsageRequest::getEndTime() const { - return endTime_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -long DescribeLiveGrtnTrafficUsageRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeLiveGrtnTrafficUsageRequest::getField() const { - return field_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setField(const std::string &field) { - field_ = field; - setParameter(std::string("Field"), field); -} - -std::string DescribeLiveGrtnTrafficUsageRequest::getAppId() const { - return appId_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setAppId(const std::string &appId) { - appId_ = appId; - setParameter(std::string("AppId"), appId); -} - -std::string DescribeLiveGrtnTrafficUsageRequest::getInterval() const { - return interval_; -} - -void DescribeLiveGrtnTrafficUsageRequest::setInterval(const std::string &interval) { - interval_ = interval; - setParameter(std::string("Interval"), interval); -} - diff --git a/live/src/model/DescribeLiveGrtnTrafficUsageResult.cc b/live/src/model/DescribeLiveGrtnTrafficUsageResult.cc deleted file mode 100644 index a840e0e56..000000000 --- a/live/src/model/DescribeLiveGrtnTrafficUsageResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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; - -DescribeLiveGrtnTrafficUsageResult::DescribeLiveGrtnTrafficUsageResult() : - ServiceResult() -{} - -DescribeLiveGrtnTrafficUsageResult::DescribeLiveGrtnTrafficUsageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLiveGrtnTrafficUsageResult::~DescribeLiveGrtnTrafficUsageResult() -{} - -void DescribeLiveGrtnTrafficUsageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allUsageDataPerIntervalNode = value["UsageDataPerInterval"]["UsageData"]; - for (auto valueUsageDataPerIntervalUsageData : allUsageDataPerIntervalNode) - { - UsageData usageDataPerIntervalObject; - if(!valueUsageDataPerIntervalUsageData["TimeStamp"].isNull()) - usageDataPerIntervalObject.timeStamp = valueUsageDataPerIntervalUsageData["TimeStamp"].asString(); - if(!valueUsageDataPerIntervalUsageData["Value"].isNull()) - usageDataPerIntervalObject.value = valueUsageDataPerIntervalUsageData["Value"].asString(); - usageDataPerInterval_.push_back(usageDataPerIntervalObject); - } - if(!value["AppId"].isNull()) - appId_ = value["AppId"].asString(); - if(!value["Area"].isNull()) - area_ = value["Area"].asString(); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["Filed"].isNull()) - filed_ = value["Filed"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - -} - -std::vector DescribeLiveGrtnTrafficUsageResult::getUsageDataPerInterval()const -{ - return usageDataPerInterval_; -} - -std::string DescribeLiveGrtnTrafficUsageResult::getArea()const -{ - return area_; -} - -std::string DescribeLiveGrtnTrafficUsageResult::getFiled()const -{ - return filed_; -} - -std::string DescribeLiveGrtnTrafficUsageResult::getAppId()const -{ - return appId_; -} - -std::string DescribeLiveGrtnTrafficUsageResult::getEndTime()const -{ - return endTime_; -} - -std::string DescribeLiveGrtnTrafficUsageResult::getStartTime()const -{ - return startTime_; -} - diff --git a/live/src/model/DescribeLiveMessageAppResult.cc b/live/src/model/DescribeLiveMessageAppResult.cc index 6fcc37238..4de1c2d39 100644 --- a/live/src/model/DescribeLiveMessageAppResult.cc +++ b/live/src/model/DescribeLiveMessageAppResult.cc @@ -61,21 +61,48 @@ void DescribeLiveMessageAppResult::parse(const std::string &payload) createTime_ = std::stol(value["CreateTime"].asString()); if(!value["ModifyTime"].isNull()) modifyTime_ = std::stol(value["ModifyTime"].asString()); + if(!value["MsgLifeCycle"].isNull()) + msgLifeCycle_ = std::stoi(value["MsgLifeCycle"].asString()); if(!value["DataCenter"].isNull()) dataCenter_ = value["DataCenter"].asString(); } -std::string DescribeLiveMessageAppResult::getCallbackUrl()const -{ - return callbackUrl_; -} - long DescribeLiveMessageAppResult::getModifyTime()const { return modifyTime_; } +int DescribeLiveMessageAppResult::getAuditType()const +{ + return auditType_; +} + +long DescribeLiveMessageAppResult::getCreateTime()const +{ + return createTime_; +} + +int DescribeLiveMessageAppResult::getMsgLifeCycle()const +{ + return msgLifeCycle_; +} + +std::string DescribeLiveMessageAppResult::getEventCallbackUrl()const +{ + return eventCallbackUrl_; +} + +std::string DescribeLiveMessageAppResult::getAppName()const +{ + return appName_; +} + +std::string DescribeLiveMessageAppResult::getCallbackUrl()const +{ + return callbackUrl_; +} + std::string DescribeLiveMessageAppResult::getAuditUrl()const { return auditUrl_; @@ -91,26 +118,11 @@ std::string DescribeLiveMessageAppResult::getAppId()const return appId_; } -int DescribeLiveMessageAppResult::getAuditType()const -{ - return auditType_; -} - std::string DescribeLiveMessageAppResult::getAppKey()const { return appKey_; } -long DescribeLiveMessageAppResult::getCreateTime()const -{ - return createTime_; -} - -std::string DescribeLiveMessageAppResult::getEventCallbackUrl()const -{ - return eventCallbackUrl_; -} - std::string DescribeLiveMessageAppResult::getAppSign()const { return appSign_; @@ -121,8 +133,3 @@ bool DescribeLiveMessageAppResult::getDisable()const return disable_; } -std::string DescribeLiveMessageAppResult::getAppName()const -{ - return appName_; -} - diff --git a/live/src/model/DescribeLiveStreamOptimizedFeatureConfigRequest.cc b/live/src/model/DescribeLiveStreamOptimizedFeatureConfigRequest.cc deleted file mode 100644 index 5a080b13e..000000000 --- a/live/src/model/DescribeLiveStreamOptimizedFeatureConfigRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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::DescribeLiveStreamOptimizedFeatureConfigRequest; - -DescribeLiveStreamOptimizedFeatureConfigRequest::DescribeLiveStreamOptimizedFeatureConfigRequest() - : RpcServiceRequest("live", "2016-11-01", "DescribeLiveStreamOptimizedFeatureConfig") { - setMethod(HttpRequest::Method::Post); -} - -DescribeLiveStreamOptimizedFeatureConfigRequest::~DescribeLiveStreamOptimizedFeatureConfigRequest() {} - -std::string DescribeLiveStreamOptimizedFeatureConfigRequest::getConfigName() const { - return configName_; -} - -void DescribeLiveStreamOptimizedFeatureConfigRequest::setConfigName(const std::string &configName) { - configName_ = configName; - setParameter(std::string("ConfigName"), configName); -} - -std::string DescribeLiveStreamOptimizedFeatureConfigRequest::getDomainName() const { - return domainName_; -} - -void DescribeLiveStreamOptimizedFeatureConfigRequest::setDomainName(const std::string &domainName) { - domainName_ = domainName; - setParameter(std::string("DomainName"), domainName); -} - -long DescribeLiveStreamOptimizedFeatureConfigRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeLiveStreamOptimizedFeatureConfigRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc b/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc deleted file mode 100644 index 094376845..000000000 --- a/live/src/model/DescribeLiveStreamOptimizedFeatureConfigResult.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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; - -DescribeLiveStreamOptimizedFeatureConfigResult::DescribeLiveStreamOptimizedFeatureConfigResult() : - ServiceResult() -{} - -DescribeLiveStreamOptimizedFeatureConfigResult::DescribeLiveStreamOptimizedFeatureConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLiveStreamOptimizedFeatureConfigResult::~DescribeLiveStreamOptimizedFeatureConfigResult() -{} - -void DescribeLiveStreamOptimizedFeatureConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allLiveStreamOptimizedFeatureConfigListNode = value["LiveStreamOptimizedFeatureConfigList"]["LiveStreamOptimizedFeatureConfig"]; - for (auto valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig : allLiveStreamOptimizedFeatureConfigListNode) - { - LiveStreamOptimizedFeatureConfig liveStreamOptimizedFeatureConfigListObject; - if(!valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["ConfigName"].isNull()) - liveStreamOptimizedFeatureConfigListObject.configName = valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["ConfigName"].asString(); - if(!valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["ConfigStatus"].isNull()) - liveStreamOptimizedFeatureConfigListObject.configStatus = valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["ConfigStatus"].asString(); - if(!valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["DomainName"].isNull()) - liveStreamOptimizedFeatureConfigListObject.domainName = valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["DomainName"].asString(); - if(!valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["ConfigValue"].isNull()) - liveStreamOptimizedFeatureConfigListObject.configValue = valueLiveStreamOptimizedFeatureConfigListLiveStreamOptimizedFeatureConfig["ConfigValue"].asString(); - liveStreamOptimizedFeatureConfigList_.push_back(liveStreamOptimizedFeatureConfigListObject); - } - -} - -std::vector DescribeLiveStreamOptimizedFeatureConfigResult::getLiveStreamOptimizedFeatureConfigList()const -{ - return liveStreamOptimizedFeatureConfigList_; -} - diff --git a/live/src/model/DescribeLiveStreamsOnlineListRequest.cc b/live/src/model/DescribeLiveStreamsOnlineListRequest.cc index 3c5b05aa2..8b35647c0 100644 --- a/live/src/model/DescribeLiveStreamsOnlineListRequest.cc +++ b/live/src/model/DescribeLiveStreamsOnlineListRequest.cc @@ -70,6 +70,15 @@ void DescribeLiveStreamsOnlineListRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +bool DescribeLiveStreamsOnlineListRequest::getIsGetCurrentRate() const { + return isGetCurrentRate_; +} + +void DescribeLiveStreamsOnlineListRequest::setIsGetCurrentRate(bool isGetCurrentRate) { + isGetCurrentRate_ = isGetCurrentRate; + setParameter(std::string("IsGetCurrentRate"), isGetCurrentRate ? "true" : "false"); +} + std::string DescribeLiveStreamsOnlineListRequest::getStreamName() const { return streamName_; } diff --git a/live/src/model/DescribeLiveStreamsOnlineListResult.cc b/live/src/model/DescribeLiveStreamsOnlineListResult.cc index 466ebff85..47f460feb 100644 --- a/live/src/model/DescribeLiveStreamsOnlineListResult.cc +++ b/live/src/model/DescribeLiveStreamsOnlineListResult.cc @@ -83,6 +83,18 @@ void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload) onlineInfoObject.serverIp = valueOnlineInfoLiveStreamOnlineInfo["ServerIp"].asString(); if(!valueOnlineInfoLiveStreamOnlineInfo["StreamUrlArgs"].isNull()) onlineInfoObject.streamUrlArgs = valueOnlineInfoLiveStreamOnlineInfo["StreamUrlArgs"].asString(); + if(!valueOnlineInfoLiveStreamOnlineInfo["CurrAudioDataRate"].isNull()) + onlineInfoObject.currAudioDataRate = std::stoi(valueOnlineInfoLiveStreamOnlineInfo["CurrAudioDataRate"].asString()); + if(!valueOnlineInfoLiveStreamOnlineInfo["CurrVideoDataRate"].isNull()) + onlineInfoObject.currVideoDataRate = std::stoi(valueOnlineInfoLiveStreamOnlineInfo["CurrVideoDataRate"].asString()); + if(!valueOnlineInfoLiveStreamOnlineInfo["CurrWidth"].isNull()) + onlineInfoObject.currWidth = std::stoi(valueOnlineInfoLiveStreamOnlineInfo["CurrWidth"].asString()); + if(!valueOnlineInfoLiveStreamOnlineInfo["CurrHeight"].isNull()) + onlineInfoObject.currHeight = std::stoi(valueOnlineInfoLiveStreamOnlineInfo["CurrHeight"].asString()); + if(!valueOnlineInfoLiveStreamOnlineInfo["CurrFrameRate"].isNull()) + onlineInfoObject.currFrameRate = std::stoi(valueOnlineInfoLiveStreamOnlineInfo["CurrFrameRate"].asString()); + if(!valueOnlineInfoLiveStreamOnlineInfo["CurrVideoCodecId"].isNull()) + onlineInfoObject.currVideoCodecId = std::stoi(valueOnlineInfoLiveStreamOnlineInfo["CurrVideoCodecId"].asString()); onlineInfo_.push_back(onlineInfoObject); } if(!value["TotalPage"].isNull()) diff --git a/live/src/model/DescribeShowListResult.cc b/live/src/model/DescribeShowListResult.cc index a93d65ca8..37ae7a45e 100644 --- a/live/src/model/DescribeShowListResult.cc +++ b/live/src/model/DescribeShowListResult.cc @@ -42,6 +42,10 @@ void DescribeShowListResult::parse(const std::string &payload) auto showListInfoNode = value["ShowListInfo"]; if(!showListInfoNode["CurrentShowId"].isNull()) showListInfo_.currentShowId = showListInfoNode["CurrentShowId"].asString(); + if(!showListInfoNode["Background"].isNull()) + showListInfo_.background = showListInfoNode["Background"].asString(); + if(!showListInfoNode["Watermark"].isNull()) + showListInfo_.watermark = showListInfoNode["Watermark"].asString(); if(!showListInfoNode["HighPriorityShowId"].isNull()) showListInfo_.highPriorityShowId = showListInfoNode["HighPriorityShowId"].asString(); if(!showListInfoNode["HighPriorityShowStartTime"].isNull()) diff --git a/live/src/model/ListLiveMessageAppsResult.cc b/live/src/model/ListLiveMessageAppsResult.cc index 3e976ba2d..8c13c3805 100644 --- a/live/src/model/ListLiveMessageAppsResult.cc +++ b/live/src/model/ListLiveMessageAppsResult.cc @@ -59,6 +59,8 @@ void ListLiveMessageAppsResult::parse(const std::string &payload) appListObject.disable = valueAppListApps["Disable"].asString(); if(!valueAppListApps["ModifyTime"].isNull()) appListObject.modifyTime = std::stol(valueAppListApps["ModifyTime"].asString()); + if(!valueAppListApps["MsgLifeCycle"].isNull()) + appListObject.msgLifeCycle = std::stoi(valueAppListApps["MsgLifeCycle"].asString()); appList_.push_back(appListObject); } if(!value["HasMore"].isNull()) diff --git a/live/src/model/SetShowListBackgroundRequest.cc b/live/src/model/SetShowListBackgroundRequest.cc new file mode 100644 index 000000000..5c9f8ce8c --- /dev/null +++ b/live/src/model/SetShowListBackgroundRequest.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::SetShowListBackgroundRequest; + +SetShowListBackgroundRequest::SetShowListBackgroundRequest() + : RpcServiceRequest("live", "2016-11-01", "SetShowListBackground") { + setMethod(HttpRequest::Method::Post); +} + +SetShowListBackgroundRequest::~SetShowListBackgroundRequest() {} + +std::string SetShowListBackgroundRequest::getMaterialId() const { + return materialId_; +} + +void SetShowListBackgroundRequest::setMaterialId(const std::string &materialId) { + materialId_ = materialId; + setParameter(std::string("MaterialId"), materialId); +} + +std::string SetShowListBackgroundRequest::getCasterId() const { + return casterId_; +} + +void SetShowListBackgroundRequest::setCasterId(const std::string &casterId) { + casterId_ = casterId; + setParameter(std::string("CasterId"), casterId); +} + +long SetShowListBackgroundRequest::getOwnerId() const { + return ownerId_; +} + +void SetShowListBackgroundRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetShowListBackgroundRequest::getResourceType() const { + return resourceType_; +} + +void SetShowListBackgroundRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string SetShowListBackgroundRequest::getResourceUrl() const { + return resourceUrl_; +} + +void SetShowListBackgroundRequest::setResourceUrl(const std::string &resourceUrl) { + resourceUrl_ = resourceUrl; + setParameter(std::string("ResourceUrl"), resourceUrl); +} + diff --git a/live/src/model/SetShowListBackgroundResult.cc b/live/src/model/SetShowListBackgroundResult.cc new file mode 100644 index 000000000..70533a942 --- /dev/null +++ b/live/src/model/SetShowListBackgroundResult.cc @@ -0,0 +1,44 @@ +/* + * 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; + +SetShowListBackgroundResult::SetShowListBackgroundResult() : + ServiceResult() +{} + +SetShowListBackgroundResult::SetShowListBackgroundResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetShowListBackgroundResult::~SetShowListBackgroundResult() +{} + +void SetShowListBackgroundResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +