From 5ea308961df1beba7571ae47c5b90554fff4bdfd Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 6 Jan 2022 07:34:35 +0000 Subject: [PATCH] Generated 2016-11-01 for live. --- CHANGELOG | 3 + VERSION | 2 +- live/CMakeLists.txt | 24 ++ live/include/alibabacloud/live/LiveClient.h | 48 ++++ .../live/model/AddShowIntoShowListRequest.h | 75 ++++++ .../live/model/AddShowIntoShowListResult.h | 51 +++++ .../live/model/CreateCasterRequest.h | 3 + .../model/DescribeCasterStreamUrlResult.h | 1 + .../live/model/DescribeCastersRequest.h | 6 + .../live/model/DescribeCastersResult.h | 9 +- ...escribeLiveDomainStreamWaterLevelRequest.h | 51 +++++ ...DescribeLiveDomainStreamWaterLevelResult.h | 69 ++++++ .../model/DescribeLiveShiftConfigsResult.h | 1 + .../live/model/DescribeShowListRequest.h | 51 +++++ .../live/model/DescribeShowListResult.h | 51 +++++ .../live/model/DescribeStudioLayoutsResult.h | 1 + .../live/model/ModifyShowListRequest.h | 66 ++++++ .../live/model/ModifyShowListResult.h | 49 ++++ .../live/model/OpenLiveShiftRequest.h | 3 + .../live/model/PlayChoosenShowRequest.h | 54 +++++ .../live/model/PlayChoosenShowResult.h | 51 +++++ .../model/RemoveShowFromShowListRequest.h | 54 +++++ .../live/model/RemoveShowFromShowListResult.h | 51 +++++ live/src/LiveClient.cc | 216 ++++++++++++++++++ live/src/model/AddShowIntoShowListRequest.cc | 139 +++++++++++ live/src/model/AddShowIntoShowListResult.cc | 51 +++++ live/src/model/CreateCasterRequest.cc | 11 + .../model/DescribeCasterStreamUrlResult.cc | 2 + live/src/model/DescribeCastersRequest.cc | 22 ++ live/src/model/DescribeCastersResult.cc | 6 + ...scribeLiveDomainStreamWaterLevelRequest.cc | 51 +++++ ...escribeLiveDomainStreamWaterLevelResult.cc | 81 +++++++ .../model/DescribeLiveShiftConfigsResult.cc | 10 +- live/src/model/DescribeShowListRequest.cc | 51 +++++ live/src/model/DescribeShowListResult.cc | 51 +++++ live/src/model/DescribeStudioLayoutsResult.cc | 2 + live/src/model/ModifyShowListRequest.cc | 106 +++++++++ live/src/model/ModifyShowListResult.cc | 44 ++++ live/src/model/OpenLiveShiftRequest.cc | 11 + live/src/model/PlayChoosenShowRequest.cc | 62 +++++ live/src/model/PlayChoosenShowResult.cc | 51 +++++ .../model/RemoveShowFromShowListRequest.cc | 62 +++++ .../src/model/RemoveShowFromShowListResult.cc | 51 +++++ 43 files changed, 1846 insertions(+), 8 deletions(-) create mode 100644 live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h create mode 100644 live/include/alibabacloud/live/model/AddShowIntoShowListResult.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelRequest.h create mode 100644 live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelResult.h create mode 100644 live/include/alibabacloud/live/model/DescribeShowListRequest.h create mode 100644 live/include/alibabacloud/live/model/DescribeShowListResult.h create mode 100644 live/include/alibabacloud/live/model/ModifyShowListRequest.h create mode 100644 live/include/alibabacloud/live/model/ModifyShowListResult.h create mode 100644 live/include/alibabacloud/live/model/PlayChoosenShowRequest.h create mode 100644 live/include/alibabacloud/live/model/PlayChoosenShowResult.h create mode 100644 live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h create mode 100644 live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h create mode 100644 live/src/model/AddShowIntoShowListRequest.cc create mode 100644 live/src/model/AddShowIntoShowListResult.cc create mode 100644 live/src/model/DescribeLiveDomainStreamWaterLevelRequest.cc create mode 100644 live/src/model/DescribeLiveDomainStreamWaterLevelResult.cc create mode 100644 live/src/model/DescribeShowListRequest.cc create mode 100644 live/src/model/DescribeShowListResult.cc create mode 100644 live/src/model/ModifyShowListRequest.cc create mode 100644 live/src/model/ModifyShowListResult.cc create mode 100644 live/src/model/PlayChoosenShowRequest.cc create mode 100644 live/src/model/PlayChoosenShowResult.cc create mode 100644 live/src/model/RemoveShowFromShowListRequest.cc create mode 100644 live/src/model/RemoveShowFromShowListResult.cc diff --git a/CHANGELOG b/CHANGELOG index 94db01419..29f5a632d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-01-06 Version: 1.36.1012 +- Generated 2016-11-01 for `live`. + 2022-01-05 Version: 1.36.1011 - Add new interface. diff --git a/VERSION b/VERSION index 8a31bdcc3..7c7906348 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1011 \ No newline at end of file +1.36.1012 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 9877e815f..473f886cc 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -73,6 +73,8 @@ set(live_public_header_model include/alibabacloud/live/model/AddPlaylistItemsResult.h include/alibabacloud/live/model/AddRtsLiveStreamTranscodeRequest.h include/alibabacloud/live/model/AddRtsLiveStreamTranscodeResult.h + include/alibabacloud/live/model/AddShowIntoShowListRequest.h + include/alibabacloud/live/model/AddShowIntoShowListResult.h include/alibabacloud/live/model/AddStudioLayoutRequest.h include/alibabacloud/live/model/AddStudioLayoutResult.h include/alibabacloud/live/model/AddTrancodeSEIRequest.h @@ -293,6 +295,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveDomainStagingConfigResult.h include/alibabacloud/live/model/DescribeLiveDomainStreamTranscodeDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainStreamTranscodeDataResult.h + include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelRequest.h + include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelResult.h include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataResult.h include/alibabacloud/live/model/DescribeLiveDomainTrafficDataRequest.h @@ -385,6 +389,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeRoomListResult.h include/alibabacloud/live/model/DescribeRoomStatusRequest.h include/alibabacloud/live/model/DescribeRoomStatusResult.h + include/alibabacloud/live/model/DescribeShowListRequest.h + include/alibabacloud/live/model/DescribeShowListResult.h include/alibabacloud/live/model/DescribeStudioLayoutsRequest.h include/alibabacloud/live/model/DescribeStudioLayoutsResult.h include/alibabacloud/live/model/DescribeToutiaoLivePlayRequest.h @@ -449,16 +455,22 @@ set(live_public_header_model include/alibabacloud/live/model/ModifyLiveDomainSchdmByPropertyResult.h include/alibabacloud/live/model/ModifyLiveRealtimeLogDeliveryRequest.h include/alibabacloud/live/model/ModifyLiveRealtimeLogDeliveryResult.h + include/alibabacloud/live/model/ModifyShowListRequest.h + include/alibabacloud/live/model/ModifyShowListResult.h include/alibabacloud/live/model/ModifyStudioLayoutRequest.h include/alibabacloud/live/model/ModifyStudioLayoutResult.h include/alibabacloud/live/model/OpenLiveShiftRequest.h include/alibabacloud/live/model/OpenLiveShiftResult.h + include/alibabacloud/live/model/PlayChoosenShowRequest.h + include/alibabacloud/live/model/PlayChoosenShowResult.h include/alibabacloud/live/model/PublishLiveStagingConfigToProductionRequest.h include/alibabacloud/live/model/PublishLiveStagingConfigToProductionResult.h include/alibabacloud/live/model/RealTimeRecordCommandRequest.h include/alibabacloud/live/model/RealTimeRecordCommandResult.h include/alibabacloud/live/model/RealTimeSnapshotCommandRequest.h include/alibabacloud/live/model/RealTimeSnapshotCommandResult.h + include/alibabacloud/live/model/RemoveShowFromShowListRequest.h + include/alibabacloud/live/model/RemoveShowFromShowListResult.h include/alibabacloud/live/model/ResumeLiveStreamRequest.h include/alibabacloud/live/model/ResumeLiveStreamResult.h include/alibabacloud/live/model/RollbackLiveStagingConfigRequest.h @@ -608,6 +620,8 @@ set(live_src src/model/AddPlaylistItemsResult.cc src/model/AddRtsLiveStreamTranscodeRequest.cc src/model/AddRtsLiveStreamTranscodeResult.cc + src/model/AddShowIntoShowListRequest.cc + src/model/AddShowIntoShowListResult.cc src/model/AddStudioLayoutRequest.cc src/model/AddStudioLayoutResult.cc src/model/AddTrancodeSEIRequest.cc @@ -828,6 +842,8 @@ set(live_src src/model/DescribeLiveDomainStagingConfigResult.cc src/model/DescribeLiveDomainStreamTranscodeDataRequest.cc src/model/DescribeLiveDomainStreamTranscodeDataResult.cc + src/model/DescribeLiveDomainStreamWaterLevelRequest.cc + src/model/DescribeLiveDomainStreamWaterLevelResult.cc src/model/DescribeLiveDomainTimeShiftDataRequest.cc src/model/DescribeLiveDomainTimeShiftDataResult.cc src/model/DescribeLiveDomainTrafficDataRequest.cc @@ -920,6 +936,8 @@ set(live_src src/model/DescribeRoomListResult.cc src/model/DescribeRoomStatusRequest.cc src/model/DescribeRoomStatusResult.cc + src/model/DescribeShowListRequest.cc + src/model/DescribeShowListResult.cc src/model/DescribeStudioLayoutsRequest.cc src/model/DescribeStudioLayoutsResult.cc src/model/DescribeToutiaoLivePlayRequest.cc @@ -984,16 +1002,22 @@ set(live_src src/model/ModifyLiveDomainSchdmByPropertyResult.cc src/model/ModifyLiveRealtimeLogDeliveryRequest.cc src/model/ModifyLiveRealtimeLogDeliveryResult.cc + src/model/ModifyShowListRequest.cc + src/model/ModifyShowListResult.cc src/model/ModifyStudioLayoutRequest.cc src/model/ModifyStudioLayoutResult.cc src/model/OpenLiveShiftRequest.cc src/model/OpenLiveShiftResult.cc + src/model/PlayChoosenShowRequest.cc + src/model/PlayChoosenShowResult.cc src/model/PublishLiveStagingConfigToProductionRequest.cc src/model/PublishLiveStagingConfigToProductionResult.cc src/model/RealTimeRecordCommandRequest.cc src/model/RealTimeRecordCommandResult.cc src/model/RealTimeSnapshotCommandRequest.cc src/model/RealTimeSnapshotCommandResult.cc + src/model/RemoveShowFromShowListRequest.cc + src/model/RemoveShowFromShowListResult.cc src/model/ResumeLiveStreamRequest.cc src/model/ResumeLiveStreamResult.cc src/model/RollbackLiveStagingConfigRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 6fc619e88..76b9079bb 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -74,6 +74,8 @@ #include "model/AddPlaylistItemsResult.h" #include "model/AddRtsLiveStreamTranscodeRequest.h" #include "model/AddRtsLiveStreamTranscodeResult.h" +#include "model/AddShowIntoShowListRequest.h" +#include "model/AddShowIntoShowListResult.h" #include "model/AddStudioLayoutRequest.h" #include "model/AddStudioLayoutResult.h" #include "model/AddTrancodeSEIRequest.h" @@ -294,6 +296,8 @@ #include "model/DescribeLiveDomainStagingConfigResult.h" #include "model/DescribeLiveDomainStreamTranscodeDataRequest.h" #include "model/DescribeLiveDomainStreamTranscodeDataResult.h" +#include "model/DescribeLiveDomainStreamWaterLevelRequest.h" +#include "model/DescribeLiveDomainStreamWaterLevelResult.h" #include "model/DescribeLiveDomainTimeShiftDataRequest.h" #include "model/DescribeLiveDomainTimeShiftDataResult.h" #include "model/DescribeLiveDomainTrafficDataRequest.h" @@ -386,6 +390,8 @@ #include "model/DescribeRoomListResult.h" #include "model/DescribeRoomStatusRequest.h" #include "model/DescribeRoomStatusResult.h" +#include "model/DescribeShowListRequest.h" +#include "model/DescribeShowListResult.h" #include "model/DescribeStudioLayoutsRequest.h" #include "model/DescribeStudioLayoutsResult.h" #include "model/DescribeToutiaoLivePlayRequest.h" @@ -450,16 +456,22 @@ #include "model/ModifyLiveDomainSchdmByPropertyResult.h" #include "model/ModifyLiveRealtimeLogDeliveryRequest.h" #include "model/ModifyLiveRealtimeLogDeliveryResult.h" +#include "model/ModifyShowListRequest.h" +#include "model/ModifyShowListResult.h" #include "model/ModifyStudioLayoutRequest.h" #include "model/ModifyStudioLayoutResult.h" #include "model/OpenLiveShiftRequest.h" #include "model/OpenLiveShiftResult.h" +#include "model/PlayChoosenShowRequest.h" +#include "model/PlayChoosenShowResult.h" #include "model/PublishLiveStagingConfigToProductionRequest.h" #include "model/PublishLiveStagingConfigToProductionResult.h" #include "model/RealTimeRecordCommandRequest.h" #include "model/RealTimeRecordCommandResult.h" #include "model/RealTimeSnapshotCommandRequest.h" #include "model/RealTimeSnapshotCommandResult.h" +#include "model/RemoveShowFromShowListRequest.h" +#include "model/RemoveShowFromShowListResult.h" #include "model/ResumeLiveStreamRequest.h" #include "model/ResumeLiveStreamResult.h" #include "model/RollbackLiveStagingConfigRequest.h" @@ -641,6 +653,9 @@ namespace AlibabaCloud typedef Outcome AddRtsLiveStreamTranscodeOutcome; typedef std::future AddRtsLiveStreamTranscodeOutcomeCallable; typedef std::function&)> AddRtsLiveStreamTranscodeAsyncHandler; + typedef Outcome AddShowIntoShowListOutcome; + typedef std::future AddShowIntoShowListOutcomeCallable; + typedef std::function&)> AddShowIntoShowListAsyncHandler; typedef Outcome AddStudioLayoutOutcome; typedef std::future AddStudioLayoutOutcomeCallable; typedef std::function&)> AddStudioLayoutAsyncHandler; @@ -971,6 +986,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainStreamTranscodeDataOutcome; typedef std::future DescribeLiveDomainStreamTranscodeDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainStreamTranscodeDataAsyncHandler; + typedef Outcome DescribeLiveDomainStreamWaterLevelOutcome; + typedef std::future DescribeLiveDomainStreamWaterLevelOutcomeCallable; + typedef std::function&)> DescribeLiveDomainStreamWaterLevelAsyncHandler; typedef Outcome DescribeLiveDomainTimeShiftDataOutcome; typedef std::future DescribeLiveDomainTimeShiftDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainTimeShiftDataAsyncHandler; @@ -1109,6 +1127,9 @@ namespace AlibabaCloud typedef Outcome DescribeRoomStatusOutcome; typedef std::future DescribeRoomStatusOutcomeCallable; typedef std::function&)> DescribeRoomStatusAsyncHandler; + typedef Outcome DescribeShowListOutcome; + typedef std::future DescribeShowListOutcomeCallable; + typedef std::function&)> DescribeShowListAsyncHandler; typedef Outcome DescribeStudioLayoutsOutcome; typedef std::future DescribeStudioLayoutsOutcomeCallable; typedef std::function&)> DescribeStudioLayoutsAsyncHandler; @@ -1205,12 +1226,18 @@ namespace AlibabaCloud typedef Outcome ModifyLiveRealtimeLogDeliveryOutcome; typedef std::future ModifyLiveRealtimeLogDeliveryOutcomeCallable; typedef std::function&)> ModifyLiveRealtimeLogDeliveryAsyncHandler; + typedef Outcome ModifyShowListOutcome; + typedef std::future ModifyShowListOutcomeCallable; + typedef std::function&)> ModifyShowListAsyncHandler; typedef Outcome ModifyStudioLayoutOutcome; typedef std::future ModifyStudioLayoutOutcomeCallable; typedef std::function&)> ModifyStudioLayoutAsyncHandler; typedef Outcome OpenLiveShiftOutcome; typedef std::future OpenLiveShiftOutcomeCallable; typedef std::function&)> OpenLiveShiftAsyncHandler; + typedef Outcome PlayChoosenShowOutcome; + typedef std::future PlayChoosenShowOutcomeCallable; + typedef std::function&)> PlayChoosenShowAsyncHandler; typedef Outcome PublishLiveStagingConfigToProductionOutcome; typedef std::future PublishLiveStagingConfigToProductionOutcomeCallable; typedef std::function&)> PublishLiveStagingConfigToProductionAsyncHandler; @@ -1220,6 +1247,9 @@ namespace AlibabaCloud typedef Outcome RealTimeSnapshotCommandOutcome; typedef std::future RealTimeSnapshotCommandOutcomeCallable; typedef std::function&)> RealTimeSnapshotCommandAsyncHandler; + typedef Outcome RemoveShowFromShowListOutcome; + typedef std::future RemoveShowFromShowListOutcomeCallable; + typedef std::function&)> RemoveShowFromShowListAsyncHandler; typedef Outcome ResumeLiveStreamOutcome; typedef std::future ResumeLiveStreamOutcomeCallable; typedef std::function&)> ResumeLiveStreamAsyncHandler; @@ -1444,6 +1474,9 @@ namespace AlibabaCloud AddRtsLiveStreamTranscodeOutcome addRtsLiveStreamTranscode(const Model::AddRtsLiveStreamTranscodeRequest &request)const; void addRtsLiveStreamTranscodeAsync(const Model::AddRtsLiveStreamTranscodeRequest& request, const AddRtsLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddRtsLiveStreamTranscodeOutcomeCallable addRtsLiveStreamTranscodeCallable(const Model::AddRtsLiveStreamTranscodeRequest& request) const; + AddShowIntoShowListOutcome addShowIntoShowList(const Model::AddShowIntoShowListRequest &request)const; + void addShowIntoShowListAsync(const Model::AddShowIntoShowListRequest& request, const AddShowIntoShowListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddShowIntoShowListOutcomeCallable addShowIntoShowListCallable(const Model::AddShowIntoShowListRequest& request) const; AddStudioLayoutOutcome addStudioLayout(const Model::AddStudioLayoutRequest &request)const; void addStudioLayoutAsync(const Model::AddStudioLayoutRequest& request, const AddStudioLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddStudioLayoutOutcomeCallable addStudioLayoutCallable(const Model::AddStudioLayoutRequest& request) const; @@ -1774,6 +1807,9 @@ namespace AlibabaCloud DescribeLiveDomainStreamTranscodeDataOutcome describeLiveDomainStreamTranscodeData(const Model::DescribeLiveDomainStreamTranscodeDataRequest &request)const; void describeLiveDomainStreamTranscodeDataAsync(const Model::DescribeLiveDomainStreamTranscodeDataRequest& request, const DescribeLiveDomainStreamTranscodeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainStreamTranscodeDataOutcomeCallable describeLiveDomainStreamTranscodeDataCallable(const Model::DescribeLiveDomainStreamTranscodeDataRequest& request) const; + DescribeLiveDomainStreamWaterLevelOutcome describeLiveDomainStreamWaterLevel(const Model::DescribeLiveDomainStreamWaterLevelRequest &request)const; + void describeLiveDomainStreamWaterLevelAsync(const Model::DescribeLiveDomainStreamWaterLevelRequest& request, const DescribeLiveDomainStreamWaterLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainStreamWaterLevelOutcomeCallable describeLiveDomainStreamWaterLevelCallable(const Model::DescribeLiveDomainStreamWaterLevelRequest& request) const; DescribeLiveDomainTimeShiftDataOutcome describeLiveDomainTimeShiftData(const Model::DescribeLiveDomainTimeShiftDataRequest &request)const; void describeLiveDomainTimeShiftDataAsync(const Model::DescribeLiveDomainTimeShiftDataRequest& request, const DescribeLiveDomainTimeShiftDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainTimeShiftDataOutcomeCallable describeLiveDomainTimeShiftDataCallable(const Model::DescribeLiveDomainTimeShiftDataRequest& request) const; @@ -1912,6 +1948,9 @@ namespace AlibabaCloud DescribeRoomStatusOutcome describeRoomStatus(const Model::DescribeRoomStatusRequest &request)const; void describeRoomStatusAsync(const Model::DescribeRoomStatusRequest& request, const DescribeRoomStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRoomStatusOutcomeCallable describeRoomStatusCallable(const Model::DescribeRoomStatusRequest& request) const; + DescribeShowListOutcome describeShowList(const Model::DescribeShowListRequest &request)const; + void describeShowListAsync(const Model::DescribeShowListRequest& request, const DescribeShowListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeShowListOutcomeCallable describeShowListCallable(const Model::DescribeShowListRequest& request) const; DescribeStudioLayoutsOutcome describeStudioLayouts(const Model::DescribeStudioLayoutsRequest &request)const; void describeStudioLayoutsAsync(const Model::DescribeStudioLayoutsRequest& request, const DescribeStudioLayoutsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStudioLayoutsOutcomeCallable describeStudioLayoutsCallable(const Model::DescribeStudioLayoutsRequest& request) const; @@ -2008,12 +2047,18 @@ namespace AlibabaCloud ModifyLiveRealtimeLogDeliveryOutcome modifyLiveRealtimeLogDelivery(const Model::ModifyLiveRealtimeLogDeliveryRequest &request)const; void modifyLiveRealtimeLogDeliveryAsync(const Model::ModifyLiveRealtimeLogDeliveryRequest& request, const ModifyLiveRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLiveRealtimeLogDeliveryOutcomeCallable modifyLiveRealtimeLogDeliveryCallable(const Model::ModifyLiveRealtimeLogDeliveryRequest& request) const; + ModifyShowListOutcome modifyShowList(const Model::ModifyShowListRequest &request)const; + void modifyShowListAsync(const Model::ModifyShowListRequest& request, const ModifyShowListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyShowListOutcomeCallable modifyShowListCallable(const Model::ModifyShowListRequest& request) const; 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; 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; + PlayChoosenShowOutcome playChoosenShow(const Model::PlayChoosenShowRequest &request)const; + void playChoosenShowAsync(const Model::PlayChoosenShowRequest& request, const PlayChoosenShowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PlayChoosenShowOutcomeCallable playChoosenShowCallable(const Model::PlayChoosenShowRequest& request) const; PublishLiveStagingConfigToProductionOutcome publishLiveStagingConfigToProduction(const Model::PublishLiveStagingConfigToProductionRequest &request)const; void publishLiveStagingConfigToProductionAsync(const Model::PublishLiveStagingConfigToProductionRequest& request, const PublishLiveStagingConfigToProductionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishLiveStagingConfigToProductionOutcomeCallable publishLiveStagingConfigToProductionCallable(const Model::PublishLiveStagingConfigToProductionRequest& request) const; @@ -2023,6 +2068,9 @@ namespace AlibabaCloud RealTimeSnapshotCommandOutcome realTimeSnapshotCommand(const Model::RealTimeSnapshotCommandRequest &request)const; void realTimeSnapshotCommandAsync(const Model::RealTimeSnapshotCommandRequest& request, const RealTimeSnapshotCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RealTimeSnapshotCommandOutcomeCallable realTimeSnapshotCommandCallable(const Model::RealTimeSnapshotCommandRequest& request) const; + RemoveShowFromShowListOutcome removeShowFromShowList(const Model::RemoveShowFromShowListRequest &request)const; + void removeShowFromShowListAsync(const Model::RemoveShowFromShowListRequest& request, const RemoveShowFromShowListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveShowFromShowListOutcomeCallable removeShowFromShowListCallable(const Model::RemoveShowFromShowListRequest& request) const; ResumeLiveStreamOutcome resumeLiveStream(const Model::ResumeLiveStreamRequest &request)const; void resumeLiveStreamAsync(const Model::ResumeLiveStreamRequest& request, const ResumeLiveStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResumeLiveStreamOutcomeCallable resumeLiveStreamCallable(const Model::ResumeLiveStreamRequest& request) const; diff --git a/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h b/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h new file mode 100644 index 000000000..7f56ad877 --- /dev/null +++ b/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_ADDSHOWINTOSHOWLISTREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_ADDSHOWINTOSHOWLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT AddShowIntoShowListRequest : public RpcServiceRequest + { + + public: + AddShowIntoShowListRequest(); + ~AddShowIntoShowListRequest(); + + int getLiveInputType()const; + void setLiveInputType(int liveInputType); + long getDuration()const; + void setDuration(long duration); + int getRepeatTimes()const; + void setRepeatTimes(int repeatTimes); + std::string getShowName()const; + void setShowName(const std::string& showName); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + 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); + int getSpot()const; + void setSpot(int spot); + + private: + int liveInputType_; + long duration_; + int repeatTimes_; + std::string showName_; + std::string resourceId_; + std::string casterId_; + long ownerId_; + std::string resourceType_; + std::string resourceUrl_; + int spot_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_ADDSHOWINTOSHOWLISTREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h b/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h new file mode 100644 index 000000000..90b35b6fc --- /dev/null +++ b/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_ADDSHOWINTOSHOWLISTRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_ADDSHOWINTOSHOWLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT AddShowIntoShowListResult : public ServiceResult + { + public: + + + AddShowIntoShowListResult(); + explicit AddShowIntoShowListResult(const std::string &payload); + ~AddShowIntoShowListResult(); + std::string getShowId()const; + + protected: + void parse(const std::string &payload); + private: + std::string showId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_ADDSHOWINTOSHOWLISTRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/CreateCasterRequest.h b/live/include/alibabacloud/live/model/CreateCasterRequest.h index 644d8e7a8..49391221a 100644 --- a/live/include/alibabacloud/live/model/CreateCasterRequest.h +++ b/live/include/alibabacloud/live/model/CreateCasterRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getPurchaseTime()const; void setPurchaseTime(const std::string& purchaseTime); + int getMicMode()const; + void setMicMode(int micMode); std::string getChargeType()const; void setChargeType(const std::string& chargeType); @@ -60,6 +62,7 @@ namespace AlibabaCloud int normType_; long ownerId_; std::string purchaseTime_; + int micMode_; std::string chargeType_; }; diff --git a/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h b/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h index 4a13f508a..7de50a860 100644 --- a/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h +++ b/live/include/alibabacloud/live/model/DescribeCasterStreamUrlResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud }; std::string sceneId; std::vector streamInfos; + std::string rtsUrl; std::string streamUrl; std::string rtmpUrl; int outputType; diff --git a/live/include/alibabacloud/live/model/DescribeCastersRequest.h b/live/include/alibabacloud/live/model/DescribeCastersRequest.h index 0ff21ead8..4750f6ab6 100644 --- a/live/include/alibabacloud/live/model/DescribeCastersRequest.h +++ b/live/include/alibabacloud/live/model/DescribeCastersRequest.h @@ -49,6 +49,10 @@ namespace AlibabaCloud void setEndTime(const std::string& endTime); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getOrderByModifyAsc()const; + void setOrderByModifyAsc(const std::string& orderByModifyAsc); + int getChargeType()const; + void setChargeType(int chargeType); int getStatus()const; void setStatus(int status); @@ -60,6 +64,8 @@ namespace AlibabaCloud std::string casterId_; std::string endTime_; long ownerId_; + std::string orderByModifyAsc_; + int chargeType_; int status_; }; diff --git a/live/include/alibabacloud/live/model/DescribeCastersResult.h b/live/include/alibabacloud/live/model/DescribeCastersResult.h index 81ab07268..0f7f08ac9 100644 --- a/live/include/alibabacloud/live/model/DescribeCastersResult.h +++ b/live/include/alibabacloud/live/model/DescribeCastersResult.h @@ -35,14 +35,17 @@ namespace AlibabaCloud struct Caster { int status; - std::string purchaseTime; std::string casterTemplate; - std::string casterName; int channelEnable; - std::string chargeType; std::string createTime; std::string startTime; int normType; + std::string duration; + int roomId; + std::string lastModified; + std::string purchaseTime; + std::string casterName; + std::string chargeType; std::string expireTime; std::string casterId; }; diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelRequest.h new file mode 100644 index 000000000..a3fda35be --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINSTREAMWATERLEVELREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINSTREAMWATERLEVELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainStreamWaterLevelRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainStreamWaterLevelRequest(); + ~DescribeLiveDomainStreamWaterLevelRequest(); + + std::string getLiveRegion()const; + void setLiveRegion(const std::string& liveRegion); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string liveRegion_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINSTREAMWATERLEVELREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelResult.h new file mode 100644 index 000000000..8907402eb --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainStreamWaterLevelResult.h @@ -0,0 +1,69 @@ +/* + * 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_DESCRIBELIVEDOMAINSTREAMWATERLEVELRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINSTREAMWATERLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainStreamWaterLevelResult : public ServiceResult + { + public: + struct LiveUidWaterLevel + { + int uidRawLimit; + int uidTranscodeLimit; + int uidRawCount; + int uidTranscodeCount; + std::string aliUid; + }; + struct LiveDomainWaterLevel + { + std::string domainName; + int domainTranscodeCount; + int domainRawCount; + int domainTranscodeLimit; + int domainRawLimit; + }; + + + DescribeLiveDomainStreamWaterLevelResult(); + explicit DescribeLiveDomainStreamWaterLevelResult(const std::string &payload); + ~DescribeLiveDomainStreamWaterLevelResult(); + LiveUidWaterLevel getLiveUidWaterLevel()const; + std::vector getLiveDomainWaterLevelList()const; + + protected: + void parse(const std::string &payload); + private: + LiveUidWaterLevel liveUidWaterLevel_; + std::vector liveDomainWaterLevelList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINSTREAMWATERLEVELRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveShiftConfigsResult.h b/live/include/alibabacloud/live/model/DescribeLiveShiftConfigsResult.h index 2d377a40e..b8b551b6c 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveShiftConfigsResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveShiftConfigsResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct Config { + bool ignoreTranscode; std::string streamName; std::string domainName; int vision; diff --git a/live/include/alibabacloud/live/model/DescribeShowListRequest.h b/live/include/alibabacloud/live/model/DescribeShowListRequest.h new file mode 100644 index 000000000..4edebe1ba --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeShowListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBESHOWLISTREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBESHOWLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeShowListRequest : public RpcServiceRequest + { + + public: + DescribeShowListRequest(); + ~DescribeShowListRequest(); + + std::string getCasterId()const; + void setCasterId(const std::string& casterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string casterId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBESHOWLISTREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeShowListResult.h b/live/include/alibabacloud/live/model/DescribeShowListResult.h new file mode 100644 index 000000000..d28d572dc --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeShowListResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBESHOWLISTRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBESHOWLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeShowListResult : public ServiceResult + { + public: + + + DescribeShowListResult(); + explicit DescribeShowListResult(const std::string &payload); + ~DescribeShowListResult(); + std::string getShowList()const; + + protected: + void parse(const std::string &payload); + private: + std::string showList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBESHOWLISTRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeStudioLayoutsResult.h b/live/include/alibabacloud/live/model/DescribeStudioLayoutsResult.h index 861617fd5..022ef93f2 100644 --- a/live/include/alibabacloud/live/model/DescribeStudioLayoutsResult.h +++ b/live/include/alibabacloud/live/model/DescribeStudioLayoutsResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud struct BgImageConfig { std::string materialId; + std::string locationId; std::string imageUrl; std::string id; }; diff --git a/live/include/alibabacloud/live/model/ModifyShowListRequest.h b/live/include/alibabacloud/live/model/ModifyShowListRequest.h new file mode 100644 index 000000000..030fd4713 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyShowListRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_MODIFYSHOWLISTREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYSHOWLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyShowListRequest : public RpcServiceRequest + { + + public: + ModifyShowListRequest(); + ~ModifyShowListRequest(); + + int getRepeatTimes()const; + void setRepeatTimes(int repeatTimes); + std::string getHighPriorityShowStartTime()const; + void setHighPriorityShowStartTime(const std::string& highPriorityShowStartTime); + std::string getCasterId()const; + void setCasterId(const std::string& casterId); + std::string getHighPriorityShowId()const; + void setHighPriorityShowId(const std::string& highPriorityShowId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getShowId()const; + void setShowId(const std::string& showId); + int getSpot()const; + void setSpot(int spot); + + private: + int repeatTimes_; + std::string highPriorityShowStartTime_; + std::string casterId_; + std::string highPriorityShowId_; + long ownerId_; + std::string showId_; + int spot_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYSHOWLISTREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/ModifyShowListResult.h b/live/include/alibabacloud/live/model/ModifyShowListResult.h new file mode 100644 index 000000000..291c29141 --- /dev/null +++ b/live/include/alibabacloud/live/model/ModifyShowListResult.h @@ -0,0 +1,49 @@ +/* + * 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_MODIFYSHOWLISTRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_MODIFYSHOWLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT ModifyShowListResult : public ServiceResult + { + public: + + + ModifyShowListResult(); + explicit ModifyShowListResult(const std::string &payload); + ~ModifyShowListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_MODIFYSHOWLISTRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/OpenLiveShiftRequest.h b/live/include/alibabacloud/live/model/OpenLiveShiftRequest.h index ff469cde4..2c7f303e2 100644 --- a/live/include/alibabacloud/live/model/OpenLiveShiftRequest.h +++ b/live/include/alibabacloud/live/model/OpenLiveShiftRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setAppName(const std::string& appName); std::string getStreamName()const; void setStreamName(const std::string& streamName); + bool getIgnoreTranscode()const; + void setIgnoreTranscode(bool ignoreTranscode); std::string getDomainName()const; void setDomainName(const std::string& domainName); long getOwnerId()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud int duration_; std::string appName_; std::string streamName_; + bool ignoreTranscode_; std::string domainName_; long ownerId_; int vision_; diff --git a/live/include/alibabacloud/live/model/PlayChoosenShowRequest.h b/live/include/alibabacloud/live/model/PlayChoosenShowRequest.h new file mode 100644 index 000000000..e1cab6c61 --- /dev/null +++ b/live/include/alibabacloud/live/model/PlayChoosenShowRequest.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_PLAYCHOOSENSHOWREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_PLAYCHOOSENSHOWREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT PlayChoosenShowRequest : public RpcServiceRequest + { + + public: + PlayChoosenShowRequest(); + ~PlayChoosenShowRequest(); + + std::string getCasterId()const; + void setCasterId(const std::string& casterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getShowId()const; + void setShowId(const std::string& showId); + + private: + std::string casterId_; + long ownerId_; + std::string showId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_PLAYCHOOSENSHOWREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/PlayChoosenShowResult.h b/live/include/alibabacloud/live/model/PlayChoosenShowResult.h new file mode 100644 index 000000000..eb11847d7 --- /dev/null +++ b/live/include/alibabacloud/live/model/PlayChoosenShowResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_PLAYCHOOSENSHOWRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_PLAYCHOOSENSHOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT PlayChoosenShowResult : public ServiceResult + { + public: + + + PlayChoosenShowResult(); + explicit PlayChoosenShowResult(const std::string &payload); + ~PlayChoosenShowResult(); + std::string getShowId()const; + + protected: + void parse(const std::string &payload); + private: + std::string showId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_PLAYCHOOSENSHOWRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h b/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h new file mode 100644 index 000000000..055c04f14 --- /dev/null +++ b/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.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_REMOVESHOWFROMSHOWLISTREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_REMOVESHOWFROMSHOWLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT RemoveShowFromShowListRequest : public RpcServiceRequest + { + + public: + RemoveShowFromShowListRequest(); + ~RemoveShowFromShowListRequest(); + + std::string getCasterId()const; + void setCasterId(const std::string& casterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getShowId()const; + void setShowId(const std::string& showId); + + private: + std::string casterId_; + long ownerId_; + std::string showId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_REMOVESHOWFROMSHOWLISTREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h b/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h new file mode 100644 index 000000000..6315d1959 --- /dev/null +++ b/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_REMOVESHOWFROMSHOWLISTRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_REMOVESHOWFROMSHOWLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT RemoveShowFromShowListResult : public ServiceResult + { + public: + + + RemoveShowFromShowListResult(); + explicit RemoveShowFromShowListResult(const std::string &payload); + ~RemoveShowFromShowListResult(); + std::string getShowId()const; + + protected: + void parse(const std::string &payload); + private: + std::string showId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_REMOVESHOWFROMSHOWLISTRESULT_H_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index d917e3104..ba681efab 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -987,6 +987,42 @@ LiveClient::AddRtsLiveStreamTranscodeOutcomeCallable LiveClient::addRtsLiveStrea return task->get_future(); } +LiveClient::AddShowIntoShowListOutcome LiveClient::addShowIntoShowList(const AddShowIntoShowListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddShowIntoShowListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddShowIntoShowListOutcome(AddShowIntoShowListResult(outcome.result())); + else + return AddShowIntoShowListOutcome(outcome.error()); +} + +void LiveClient::addShowIntoShowListAsync(const AddShowIntoShowListRequest& request, const AddShowIntoShowListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addShowIntoShowList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::AddShowIntoShowListOutcomeCallable LiveClient::addShowIntoShowListCallable(const AddShowIntoShowListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addShowIntoShowList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AddStudioLayoutOutcome LiveClient::addStudioLayout(const AddStudioLayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4947,6 +4983,42 @@ LiveClient::DescribeLiveDomainStreamTranscodeDataOutcomeCallable LiveClient::des return task->get_future(); } +LiveClient::DescribeLiveDomainStreamWaterLevelOutcome LiveClient::describeLiveDomainStreamWaterLevel(const DescribeLiveDomainStreamWaterLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainStreamWaterLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainStreamWaterLevelOutcome(DescribeLiveDomainStreamWaterLevelResult(outcome.result())); + else + return DescribeLiveDomainStreamWaterLevelOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainStreamWaterLevelAsync(const DescribeLiveDomainStreamWaterLevelRequest& request, const DescribeLiveDomainStreamWaterLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainStreamWaterLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainStreamWaterLevelOutcomeCallable LiveClient::describeLiveDomainStreamWaterLevelCallable(const DescribeLiveDomainStreamWaterLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainStreamWaterLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveDomainTimeShiftDataOutcome LiveClient::describeLiveDomainTimeShiftData(const DescribeLiveDomainTimeShiftDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6603,6 +6675,42 @@ LiveClient::DescribeRoomStatusOutcomeCallable LiveClient::describeRoomStatusCall return task->get_future(); } +LiveClient::DescribeShowListOutcome LiveClient::describeShowList(const DescribeShowListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeShowListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeShowListOutcome(DescribeShowListResult(outcome.result())); + else + return DescribeShowListOutcome(outcome.error()); +} + +void LiveClient::describeShowListAsync(const DescribeShowListRequest& request, const DescribeShowListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeShowList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeShowListOutcomeCallable LiveClient::describeShowListCallable(const DescribeShowListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeShowList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeStudioLayoutsOutcome LiveClient::describeStudioLayouts(const DescribeStudioLayoutsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7755,6 +7863,42 @@ LiveClient::ModifyLiveRealtimeLogDeliveryOutcomeCallable LiveClient::modifyLiveR return task->get_future(); } +LiveClient::ModifyShowListOutcome LiveClient::modifyShowList(const ModifyShowListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyShowListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyShowListOutcome(ModifyShowListResult(outcome.result())); + else + return ModifyShowListOutcome(outcome.error()); +} + +void LiveClient::modifyShowListAsync(const ModifyShowListRequest& request, const ModifyShowListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyShowList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::ModifyShowListOutcomeCallable LiveClient::modifyShowListCallable(const ModifyShowListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyShowList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ModifyStudioLayoutOutcome LiveClient::modifyStudioLayout(const ModifyStudioLayoutRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7827,6 +7971,42 @@ LiveClient::OpenLiveShiftOutcomeCallable LiveClient::openLiveShiftCallable(const return task->get_future(); } +LiveClient::PlayChoosenShowOutcome LiveClient::playChoosenShow(const PlayChoosenShowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PlayChoosenShowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PlayChoosenShowOutcome(PlayChoosenShowResult(outcome.result())); + else + return PlayChoosenShowOutcome(outcome.error()); +} + +void LiveClient::playChoosenShowAsync(const PlayChoosenShowRequest& request, const PlayChoosenShowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, playChoosenShow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::PlayChoosenShowOutcomeCallable LiveClient::playChoosenShowCallable(const PlayChoosenShowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->playChoosenShow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::PublishLiveStagingConfigToProductionOutcome LiveClient::publishLiveStagingConfigToProduction(const PublishLiveStagingConfigToProductionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7935,6 +8115,42 @@ LiveClient::RealTimeSnapshotCommandOutcomeCallable LiveClient::realTimeSnapshotC return task->get_future(); } +LiveClient::RemoveShowFromShowListOutcome LiveClient::removeShowFromShowList(const RemoveShowFromShowListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveShowFromShowListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveShowFromShowListOutcome(RemoveShowFromShowListResult(outcome.result())); + else + return RemoveShowFromShowListOutcome(outcome.error()); +} + +void LiveClient::removeShowFromShowListAsync(const RemoveShowFromShowListRequest& request, const RemoveShowFromShowListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeShowFromShowList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::RemoveShowFromShowListOutcomeCallable LiveClient::removeShowFromShowListCallable(const RemoveShowFromShowListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeShowFromShowList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::ResumeLiveStreamOutcome LiveClient::resumeLiveStream(const ResumeLiveStreamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/AddShowIntoShowListRequest.cc b/live/src/model/AddShowIntoShowListRequest.cc new file mode 100644 index 000000000..e977c01df --- /dev/null +++ b/live/src/model/AddShowIntoShowListRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::AddShowIntoShowListRequest; + +AddShowIntoShowListRequest::AddShowIntoShowListRequest() : + RpcServiceRequest("live", "2016-11-01", "AddShowIntoShowList") +{ + setMethod(HttpRequest::Method::Post); +} + +AddShowIntoShowListRequest::~AddShowIntoShowListRequest() +{} + +int AddShowIntoShowListRequest::getLiveInputType()const +{ + return liveInputType_; +} + +void AddShowIntoShowListRequest::setLiveInputType(int liveInputType) +{ + liveInputType_ = liveInputType; + setParameter("LiveInputType", std::to_string(liveInputType)); +} + +long AddShowIntoShowListRequest::getDuration()const +{ + return duration_; +} + +void AddShowIntoShowListRequest::setDuration(long duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +int AddShowIntoShowListRequest::getRepeatTimes()const +{ + return repeatTimes_; +} + +void AddShowIntoShowListRequest::setRepeatTimes(int repeatTimes) +{ + repeatTimes_ = repeatTimes; + setParameter("RepeatTimes", std::to_string(repeatTimes)); +} + +std::string AddShowIntoShowListRequest::getShowName()const +{ + return showName_; +} + +void AddShowIntoShowListRequest::setShowName(const std::string& showName) +{ + showName_ = showName; + setParameter("ShowName", showName); +} + +std::string AddShowIntoShowListRequest::getResourceId()const +{ + return resourceId_; +} + +void AddShowIntoShowListRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string AddShowIntoShowListRequest::getCasterId()const +{ + return casterId_; +} + +void AddShowIntoShowListRequest::setCasterId(const std::string& casterId) +{ + casterId_ = casterId; + setParameter("CasterId", casterId); +} + +long AddShowIntoShowListRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddShowIntoShowListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddShowIntoShowListRequest::getResourceType()const +{ + return resourceType_; +} + +void AddShowIntoShowListRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string AddShowIntoShowListRequest::getResourceUrl()const +{ + return resourceUrl_; +} + +void AddShowIntoShowListRequest::setResourceUrl(const std::string& resourceUrl) +{ + resourceUrl_ = resourceUrl; + setParameter("ResourceUrl", resourceUrl); +} + +int AddShowIntoShowListRequest::getSpot()const +{ + return spot_; +} + +void AddShowIntoShowListRequest::setSpot(int spot) +{ + spot_ = spot; + setParameter("Spot", std::to_string(spot)); +} + diff --git a/live/src/model/AddShowIntoShowListResult.cc b/live/src/model/AddShowIntoShowListResult.cc new file mode 100644 index 000000000..738d43dbc --- /dev/null +++ b/live/src/model/AddShowIntoShowListResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +AddShowIntoShowListResult::AddShowIntoShowListResult() : + ServiceResult() +{} + +AddShowIntoShowListResult::AddShowIntoShowListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddShowIntoShowListResult::~AddShowIntoShowListResult() +{} + +void AddShowIntoShowListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ShowId"].isNull()) + showId_ = value["ShowId"].asString(); + +} + +std::string AddShowIntoShowListResult::getShowId()const +{ + return showId_; +} + diff --git a/live/src/model/CreateCasterRequest.cc b/live/src/model/CreateCasterRequest.cc index 38cee024f..490ac8ca5 100644 --- a/live/src/model/CreateCasterRequest.cc +++ b/live/src/model/CreateCasterRequest.cc @@ -104,6 +104,17 @@ void CreateCasterRequest::setPurchaseTime(const std::string& purchaseTime) setParameter("PurchaseTime", purchaseTime); } +int CreateCasterRequest::getMicMode()const +{ + return micMode_; +} + +void CreateCasterRequest::setMicMode(int micMode) +{ + micMode_ = micMode; + setParameter("MicMode", std::to_string(micMode)); +} + std::string CreateCasterRequest::getChargeType()const { return chargeType_; diff --git a/live/src/model/DescribeCasterStreamUrlResult.cc b/live/src/model/DescribeCasterStreamUrlResult.cc index 90573926d..8bf7d4a41 100644 --- a/live/src/model/DescribeCasterStreamUrlResult.cc +++ b/live/src/model/DescribeCasterStreamUrlResult.cc @@ -49,6 +49,8 @@ void DescribeCasterStreamUrlResult::parse(const std::string &payload) casterStreamsObject.streamUrl = valueCasterStreamsCasterStream["StreamUrl"].asString(); if(!valueCasterStreamsCasterStream["RtmpUrl"].isNull()) casterStreamsObject.rtmpUrl = valueCasterStreamsCasterStream["RtmpUrl"].asString(); + if(!valueCasterStreamsCasterStream["RtsUrl"].isNull()) + casterStreamsObject.rtsUrl = valueCasterStreamsCasterStream["RtsUrl"].asString(); if(!valueCasterStreamsCasterStream["OutputType"].isNull()) casterStreamsObject.outputType = std::stoi(valueCasterStreamsCasterStream["OutputType"].asString()); auto allStreamInfosNode = valueCasterStreamsCasterStream["StreamInfos"]["StreamInfo"]; diff --git a/live/src/model/DescribeCastersRequest.cc b/live/src/model/DescribeCastersRequest.cc index 3ed883a09..97332136f 100644 --- a/live/src/model/DescribeCastersRequest.cc +++ b/live/src/model/DescribeCastersRequest.cc @@ -104,6 +104,28 @@ void DescribeCastersRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string DescribeCastersRequest::getOrderByModifyAsc()const +{ + return orderByModifyAsc_; +} + +void DescribeCastersRequest::setOrderByModifyAsc(const std::string& orderByModifyAsc) +{ + orderByModifyAsc_ = orderByModifyAsc; + setParameter("OrderByModifyAsc", orderByModifyAsc); +} + +int DescribeCastersRequest::getChargeType()const +{ + return chargeType_; +} + +void DescribeCastersRequest::setChargeType(int chargeType) +{ + chargeType_ = chargeType; + setParameter("ChargeType", std::to_string(chargeType)); +} + int DescribeCastersRequest::getStatus()const { return status_; diff --git a/live/src/model/DescribeCastersResult.cc b/live/src/model/DescribeCastersResult.cc index ac2fff8e7..dbed47e8a 100644 --- a/live/src/model/DescribeCastersResult.cc +++ b/live/src/model/DescribeCastersResult.cc @@ -65,6 +65,12 @@ void DescribeCastersResult::parse(const std::string &payload) casterListObject.casterTemplate = valueCasterListCaster["CasterTemplate"].asString(); if(!valueCasterListCaster["ChannelEnable"].isNull()) casterListObject.channelEnable = std::stoi(valueCasterListCaster["ChannelEnable"].asString()); + if(!valueCasterListCaster["LastModified"].isNull()) + casterListObject.lastModified = valueCasterListCaster["LastModified"].asString(); + if(!valueCasterListCaster["Duration"].isNull()) + casterListObject.duration = valueCasterListCaster["Duration"].asString(); + if(!valueCasterListCaster["RoomId"].isNull()) + casterListObject.roomId = std::stoi(valueCasterListCaster["RoomId"].asString()); casterList_.push_back(casterListObject); } if(!value["Total"].isNull()) diff --git a/live/src/model/DescribeLiveDomainStreamWaterLevelRequest.cc b/live/src/model/DescribeLiveDomainStreamWaterLevelRequest.cc new file mode 100644 index 000000000..2476998a3 --- /dev/null +++ b/live/src/model/DescribeLiveDomainStreamWaterLevelRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeLiveDomainStreamWaterLevelRequest; + +DescribeLiveDomainStreamWaterLevelRequest::DescribeLiveDomainStreamWaterLevelRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainStreamWaterLevel") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeLiveDomainStreamWaterLevelRequest::~DescribeLiveDomainStreamWaterLevelRequest() +{} + +std::string DescribeLiveDomainStreamWaterLevelRequest::getLiveRegion()const +{ + return liveRegion_; +} + +void DescribeLiveDomainStreamWaterLevelRequest::setLiveRegion(const std::string& liveRegion) +{ + liveRegion_ = liveRegion; + setParameter("LiveRegion", liveRegion); +} + +long DescribeLiveDomainStreamWaterLevelRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveDomainStreamWaterLevelRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/live/src/model/DescribeLiveDomainStreamWaterLevelResult.cc b/live/src/model/DescribeLiveDomainStreamWaterLevelResult.cc new file mode 100644 index 000000000..db6d9aead --- /dev/null +++ b/live/src/model/DescribeLiveDomainStreamWaterLevelResult.cc @@ -0,0 +1,81 @@ +/* + * 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; + +DescribeLiveDomainStreamWaterLevelResult::DescribeLiveDomainStreamWaterLevelResult() : + ServiceResult() +{} + +DescribeLiveDomainStreamWaterLevelResult::DescribeLiveDomainStreamWaterLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveDomainStreamWaterLevelResult::~DescribeLiveDomainStreamWaterLevelResult() +{} + +void DescribeLiveDomainStreamWaterLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLiveDomainWaterLevelListNode = value["LiveDomainWaterLevelList"]["LiveDomainWaterLevel"]; + for (auto valueLiveDomainWaterLevelListLiveDomainWaterLevel : allLiveDomainWaterLevelListNode) + { + LiveDomainWaterLevel liveDomainWaterLevelListObject; + if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainName"].isNull()) + liveDomainWaterLevelListObject.domainName = valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainName"].asString(); + if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawCount"].isNull()) + liveDomainWaterLevelListObject.domainRawCount = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawCount"].asString()); + if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeCount"].isNull()) + liveDomainWaterLevelListObject.domainTranscodeCount = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeCount"].asString()); + if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawLimit"].isNull()) + liveDomainWaterLevelListObject.domainRawLimit = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawLimit"].asString()); + if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeLimit"].isNull()) + liveDomainWaterLevelListObject.domainTranscodeLimit = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeLimit"].asString()); + liveDomainWaterLevelList_.push_back(liveDomainWaterLevelListObject); + } + auto liveUidWaterLevelNode = value["LiveUidWaterLevel"]; + if(!liveUidWaterLevelNode["AliUid"].isNull()) + liveUidWaterLevel_.aliUid = liveUidWaterLevelNode["AliUid"].asString(); + if(!liveUidWaterLevelNode["UidRawCount"].isNull()) + liveUidWaterLevel_.uidRawCount = std::stoi(liveUidWaterLevelNode["UidRawCount"].asString()); + if(!liveUidWaterLevelNode["UidTranscodeCount"].isNull()) + liveUidWaterLevel_.uidTranscodeCount = std::stoi(liveUidWaterLevelNode["UidTranscodeCount"].asString()); + if(!liveUidWaterLevelNode["UidRawLimit"].isNull()) + liveUidWaterLevel_.uidRawLimit = std::stoi(liveUidWaterLevelNode["UidRawLimit"].asString()); + if(!liveUidWaterLevelNode["UidTranscodeLimit"].isNull()) + liveUidWaterLevel_.uidTranscodeLimit = std::stoi(liveUidWaterLevelNode["UidTranscodeLimit"].asString()); + +} + +DescribeLiveDomainStreamWaterLevelResult::LiveUidWaterLevel DescribeLiveDomainStreamWaterLevelResult::getLiveUidWaterLevel()const +{ + return liveUidWaterLevel_; +} + +std::vector DescribeLiveDomainStreamWaterLevelResult::getLiveDomainWaterLevelList()const +{ + return liveDomainWaterLevelList_; +} + diff --git a/live/src/model/DescribeLiveShiftConfigsResult.cc b/live/src/model/DescribeLiveShiftConfigsResult.cc index 6e9c94817..aa6d56a19 100644 --- a/live/src/model/DescribeLiveShiftConfigsResult.cc +++ b/live/src/model/DescribeLiveShiftConfigsResult.cc @@ -43,14 +43,16 @@ void DescribeLiveShiftConfigsResult::parse(const std::string &payload) for (auto valueContentConfig : allContentNode) { Config contentObject; - if(!valueContentConfig["DomainName"].isNull()) - contentObject.domainName = valueContentConfig["DomainName"].asString(); if(!valueContentConfig["AppName"].isNull()) contentObject.appName = valueContentConfig["AppName"].asString(); - if(!valueContentConfig["StreamName"].isNull()) - contentObject.streamName = valueContentConfig["StreamName"].asString(); if(!valueContentConfig["Vision"].isNull()) contentObject.vision = std::stoi(valueContentConfig["Vision"].asString()); + if(!valueContentConfig["DomainName"].isNull()) + contentObject.domainName = valueContentConfig["DomainName"].asString(); + if(!valueContentConfig["StreamName"].isNull()) + contentObject.streamName = valueContentConfig["StreamName"].asString(); + if(!valueContentConfig["IgnoreTranscode"].isNull()) + contentObject.ignoreTranscode = valueContentConfig["IgnoreTranscode"].asString() == "true"; content_.push_back(contentObject); } diff --git a/live/src/model/DescribeShowListRequest.cc b/live/src/model/DescribeShowListRequest.cc new file mode 100644 index 000000000..200581b08 --- /dev/null +++ b/live/src/model/DescribeShowListRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::DescribeShowListRequest; + +DescribeShowListRequest::DescribeShowListRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeShowList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeShowListRequest::~DescribeShowListRequest() +{} + +std::string DescribeShowListRequest::getCasterId()const +{ + return casterId_; +} + +void DescribeShowListRequest::setCasterId(const std::string& casterId) +{ + casterId_ = casterId; + setParameter("CasterId", casterId); +} + +long DescribeShowListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeShowListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/live/src/model/DescribeShowListResult.cc b/live/src/model/DescribeShowListResult.cc new file mode 100644 index 000000000..cd11761ef --- /dev/null +++ b/live/src/model/DescribeShowListResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeShowListResult::DescribeShowListResult() : + ServiceResult() +{} + +DescribeShowListResult::DescribeShowListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeShowListResult::~DescribeShowListResult() +{} + +void DescribeShowListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ShowList"].isNull()) + showList_ = value["ShowList"].asString(); + +} + +std::string DescribeShowListResult::getShowList()const +{ + return showList_; +} + diff --git a/live/src/model/DescribeStudioLayoutsResult.cc b/live/src/model/DescribeStudioLayoutsResult.cc index 7e73a96da..8e5e87dbf 100644 --- a/live/src/model/DescribeStudioLayoutsResult.cc +++ b/live/src/model/DescribeStudioLayoutsResult.cc @@ -122,6 +122,8 @@ void DescribeStudioLayoutsResult::parse(const std::string &payload) studioLayoutsObject.bgImageConfig.materialId = bgImageConfigNode["MaterialId"].asString(); if(!bgImageConfigNode["ImageUrl"].isNull()) studioLayoutsObject.bgImageConfig.imageUrl = bgImageConfigNode["ImageUrl"].asString(); + if(!bgImageConfigNode["LocationId"].isNull()) + studioLayoutsObject.bgImageConfig.locationId = bgImageConfigNode["LocationId"].asString(); studioLayouts_.push_back(studioLayoutsObject); } if(!value["Total"].isNull()) diff --git a/live/src/model/ModifyShowListRequest.cc b/live/src/model/ModifyShowListRequest.cc new file mode 100644 index 000000000..b377023eb --- /dev/null +++ b/live/src/model/ModifyShowListRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::ModifyShowListRequest; + +ModifyShowListRequest::ModifyShowListRequest() : + RpcServiceRequest("live", "2016-11-01", "ModifyShowList") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyShowListRequest::~ModifyShowListRequest() +{} + +int ModifyShowListRequest::getRepeatTimes()const +{ + return repeatTimes_; +} + +void ModifyShowListRequest::setRepeatTimes(int repeatTimes) +{ + repeatTimes_ = repeatTimes; + setParameter("RepeatTimes", std::to_string(repeatTimes)); +} + +std::string ModifyShowListRequest::getHighPriorityShowStartTime()const +{ + return highPriorityShowStartTime_; +} + +void ModifyShowListRequest::setHighPriorityShowStartTime(const std::string& highPriorityShowStartTime) +{ + highPriorityShowStartTime_ = highPriorityShowStartTime; + setParameter("HighPriorityShowStartTime", highPriorityShowStartTime); +} + +std::string ModifyShowListRequest::getCasterId()const +{ + return casterId_; +} + +void ModifyShowListRequest::setCasterId(const std::string& casterId) +{ + casterId_ = casterId; + setParameter("CasterId", casterId); +} + +std::string ModifyShowListRequest::getHighPriorityShowId()const +{ + return highPriorityShowId_; +} + +void ModifyShowListRequest::setHighPriorityShowId(const std::string& highPriorityShowId) +{ + highPriorityShowId_ = highPriorityShowId; + setParameter("HighPriorityShowId", highPriorityShowId); +} + +long ModifyShowListRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyShowListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyShowListRequest::getShowId()const +{ + return showId_; +} + +void ModifyShowListRequest::setShowId(const std::string& showId) +{ + showId_ = showId; + setParameter("ShowId", showId); +} + +int ModifyShowListRequest::getSpot()const +{ + return spot_; +} + +void ModifyShowListRequest::setSpot(int spot) +{ + spot_ = spot; + setParameter("Spot", std::to_string(spot)); +} + diff --git a/live/src/model/ModifyShowListResult.cc b/live/src/model/ModifyShowListResult.cc new file mode 100644 index 000000000..473e22da0 --- /dev/null +++ b/live/src/model/ModifyShowListResult.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; + +ModifyShowListResult::ModifyShowListResult() : + ServiceResult() +{} + +ModifyShowListResult::ModifyShowListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyShowListResult::~ModifyShowListResult() +{} + +void ModifyShowListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/OpenLiveShiftRequest.cc b/live/src/model/OpenLiveShiftRequest.cc index 6d6916977..31ae518eb 100644 --- a/live/src/model/OpenLiveShiftRequest.cc +++ b/live/src/model/OpenLiveShiftRequest.cc @@ -60,6 +60,17 @@ void OpenLiveShiftRequest::setStreamName(const std::string& streamName) setParameter("StreamName", streamName); } +bool OpenLiveShiftRequest::getIgnoreTranscode()const +{ + return ignoreTranscode_; +} + +void OpenLiveShiftRequest::setIgnoreTranscode(bool ignoreTranscode) +{ + ignoreTranscode_ = ignoreTranscode; + setParameter("IgnoreTranscode", ignoreTranscode ? "true" : "false"); +} + std::string OpenLiveShiftRequest::getDomainName()const { return domainName_; diff --git a/live/src/model/PlayChoosenShowRequest.cc b/live/src/model/PlayChoosenShowRequest.cc new file mode 100644 index 000000000..b36df46ff --- /dev/null +++ b/live/src/model/PlayChoosenShowRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::PlayChoosenShowRequest; + +PlayChoosenShowRequest::PlayChoosenShowRequest() : + RpcServiceRequest("live", "2016-11-01", "PlayChoosenShow") +{ + setMethod(HttpRequest::Method::Post); +} + +PlayChoosenShowRequest::~PlayChoosenShowRequest() +{} + +std::string PlayChoosenShowRequest::getCasterId()const +{ + return casterId_; +} + +void PlayChoosenShowRequest::setCasterId(const std::string& casterId) +{ + casterId_ = casterId; + setParameter("CasterId", casterId); +} + +long PlayChoosenShowRequest::getOwnerId()const +{ + return ownerId_; +} + +void PlayChoosenShowRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PlayChoosenShowRequest::getShowId()const +{ + return showId_; +} + +void PlayChoosenShowRequest::setShowId(const std::string& showId) +{ + showId_ = showId; + setParameter("ShowId", showId); +} + diff --git a/live/src/model/PlayChoosenShowResult.cc b/live/src/model/PlayChoosenShowResult.cc new file mode 100644 index 000000000..8b2e43e17 --- /dev/null +++ b/live/src/model/PlayChoosenShowResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +PlayChoosenShowResult::PlayChoosenShowResult() : + ServiceResult() +{} + +PlayChoosenShowResult::PlayChoosenShowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PlayChoosenShowResult::~PlayChoosenShowResult() +{} + +void PlayChoosenShowResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ShowId"].isNull()) + showId_ = value["ShowId"].asString(); + +} + +std::string PlayChoosenShowResult::getShowId()const +{ + return showId_; +} + diff --git a/live/src/model/RemoveShowFromShowListRequest.cc b/live/src/model/RemoveShowFromShowListRequest.cc new file mode 100644 index 000000000..111ece17f --- /dev/null +++ b/live/src/model/RemoveShowFromShowListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::RemoveShowFromShowListRequest; + +RemoveShowFromShowListRequest::RemoveShowFromShowListRequest() : + RpcServiceRequest("live", "2016-11-01", "RemoveShowFromShowList") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveShowFromShowListRequest::~RemoveShowFromShowListRequest() +{} + +std::string RemoveShowFromShowListRequest::getCasterId()const +{ + return casterId_; +} + +void RemoveShowFromShowListRequest::setCasterId(const std::string& casterId) +{ + casterId_ = casterId; + setParameter("CasterId", casterId); +} + +long RemoveShowFromShowListRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveShowFromShowListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RemoveShowFromShowListRequest::getShowId()const +{ + return showId_; +} + +void RemoveShowFromShowListRequest::setShowId(const std::string& showId) +{ + showId_ = showId; + setParameter("ShowId", showId); +} + diff --git a/live/src/model/RemoveShowFromShowListResult.cc b/live/src/model/RemoveShowFromShowListResult.cc new file mode 100644 index 000000000..719ebff91 --- /dev/null +++ b/live/src/model/RemoveShowFromShowListResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +RemoveShowFromShowListResult::RemoveShowFromShowListResult() : + ServiceResult() +{} + +RemoveShowFromShowListResult::RemoveShowFromShowListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveShowFromShowListResult::~RemoveShowFromShowListResult() +{} + +void RemoveShowFromShowListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ShowId"].isNull()) + showId_ = value["ShowId"].asString(); + +} + +std::string RemoveShowFromShowListResult::getShowId()const +{ + return showId_; +} +