From aa1a6d2362a9eba63e6943c1a3f1a5a556f4caea Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 15 Sep 2022 08:18:20 +0000 Subject: [PATCH] Generated 2016-11-01 for live. --- VERSION | 2 +- .../live/model/AddShowIntoShowListRequest.h | 15 ++++++++++ .../live/model/AddShowIntoShowListResult.h | 4 +++ .../model/RemoveShowFromShowListRequest.h | 6 ++++ .../live/model/RemoveShowFromShowListResult.h | 4 +++ live/src/model/AddShowIntoShowListRequest.cc | 28 +++++++++++++++++++ live/src/model/AddShowIntoShowListResult.cc | 14 ++++++++++ .../model/RemoveShowFromShowListRequest.cc | 17 +++++++++++ .../src/model/RemoveShowFromShowListResult.cc | 14 ++++++++++ 9 files changed, 103 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 2a91ce00c..a88207a6a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1258 \ No newline at end of file +1.36.1259 \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h b/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h index 9acbc2601..2354ca816 100644 --- a/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h +++ b/live/include/alibabacloud/live/model/AddShowIntoShowListRequest.h @@ -28,10 +28,23 @@ namespace Live { namespace Model { class ALIBABACLOUD_LIVE_EXPORT AddShowIntoShowListRequest : public RpcServiceRequest { public: + struct ShowList { + std::string showName; + int repeatTimes; + std::string resourceType; + std::string resourceUrl; + int liveInputType; + long duration; + std::string resourceId; + }; AddShowIntoShowListRequest(); ~AddShowIntoShowListRequest(); + std::vector getShowList() const; + void setShowList(const std::vector &showList); int getLiveInputType() const; void setLiveInputType(int liveInputType); + bool getIsBatchMode() const; + void setIsBatchMode(bool isBatchMode); long getDuration() const; void setDuration(long duration); int getRepeatTimes() const; @@ -52,7 +65,9 @@ public: void setSpot(int spot); private: + std::vector showList_; int liveInputType_; + bool isBatchMode_; long duration_; int repeatTimes_; std::string showName_; diff --git a/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h b/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h index 90b35b6fc..228b4108a 100644 --- a/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h +++ b/live/include/alibabacloud/live/model/AddShowIntoShowListResult.h @@ -37,11 +37,15 @@ namespace AlibabaCloud AddShowIntoShowListResult(); explicit AddShowIntoShowListResult(const std::string &payload); ~AddShowIntoShowListResult(); + std::string getSuccessfulShowIds()const; + std::string getFailedList()const; std::string getShowId()const; protected: void parse(const std::string &payload); private: + std::string successfulShowIds_; + std::string failedList_; std::string showId_; }; diff --git a/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h b/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h index 542e31eca..9083d6f8d 100644 --- a/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h +++ b/live/include/alibabacloud/live/model/RemoveShowFromShowListRequest.h @@ -30,6 +30,10 @@ class ALIBABACLOUD_LIVE_EXPORT RemoveShowFromShowListRequest : public RpcService public: RemoveShowFromShowListRequest(); ~RemoveShowFromShowListRequest(); + bool getIsBatchMode() const; + void setIsBatchMode(bool isBatchMode); + std::vector getShowIdList() const; + void setShowIdList(const std::vector &showIdList); std::string getCasterId() const; void setCasterId(const std::string &casterId); long getOwnerId() const; @@ -38,6 +42,8 @@ public: void setShowId(const std::string &showId); private: + bool isBatchMode_; + std::vector showIdList_; std::string casterId_; long ownerId_; std::string showId_; diff --git a/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h b/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h index 6315d1959..182e98738 100644 --- a/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h +++ b/live/include/alibabacloud/live/model/RemoveShowFromShowListResult.h @@ -37,11 +37,15 @@ namespace AlibabaCloud RemoveShowFromShowListResult(); explicit RemoveShowFromShowListResult(const std::string &payload); ~RemoveShowFromShowListResult(); + std::string getSuccessfulShowIds()const; + std::string getFailedList()const; std::string getShowId()const; protected: void parse(const std::string &payload); private: + std::string successfulShowIds_; + std::string failedList_; std::string showId_; }; diff --git a/live/src/model/AddShowIntoShowListRequest.cc b/live/src/model/AddShowIntoShowListRequest.cc index d891d0dfc..2f48dbf75 100644 --- a/live/src/model/AddShowIntoShowListRequest.cc +++ b/live/src/model/AddShowIntoShowListRequest.cc @@ -25,6 +25,25 @@ AddShowIntoShowListRequest::AddShowIntoShowListRequest() AddShowIntoShowListRequest::~AddShowIntoShowListRequest() {} +std::vector AddShowIntoShowListRequest::getShowList() const { + return showList_; +} + +void AddShowIntoShowListRequest::setShowList(const std::vector &showList) { + showList_ = showList; + for(int dep1 = 0; dep1 != showList.size(); dep1++) { + auto showListObj = showList.at(dep1); + std::string showListObjStr = std::string("showList") + "." + std::to_string(dep1 + 1); + setParameter(showListObjStr + ".showName", showListObj.showName); + setParameter(showListObjStr + ".repeatTimes", std::to_string(showListObj.repeatTimes)); + setParameter(showListObjStr + ".resourceType", showListObj.resourceType); + setParameter(showListObjStr + ".resourceUrl", showListObj.resourceUrl); + setParameter(showListObjStr + ".liveInputType", std::to_string(showListObj.liveInputType)); + setParameter(showListObjStr + ".duration", std::to_string(showListObj.duration)); + setParameter(showListObjStr + ".resourceId", showListObj.resourceId); + } +} + int AddShowIntoShowListRequest::getLiveInputType() const { return liveInputType_; } @@ -34,6 +53,15 @@ void AddShowIntoShowListRequest::setLiveInputType(int liveInputType) { setParameter(std::string("LiveInputType"), std::to_string(liveInputType)); } +bool AddShowIntoShowListRequest::getIsBatchMode() const { + return isBatchMode_; +} + +void AddShowIntoShowListRequest::setIsBatchMode(bool isBatchMode) { + isBatchMode_ = isBatchMode; + setParameter(std::string("isBatchMode"), isBatchMode ? "true" : "false"); +} + long AddShowIntoShowListRequest::getDuration() const { return duration_; } diff --git a/live/src/model/AddShowIntoShowListResult.cc b/live/src/model/AddShowIntoShowListResult.cc index 738d43dbc..6e0bb90c2 100644 --- a/live/src/model/AddShowIntoShowListResult.cc +++ b/live/src/model/AddShowIntoShowListResult.cc @@ -41,9 +41,23 @@ void AddShowIntoShowListResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["ShowId"].isNull()) showId_ = value["ShowId"].asString(); + if(!value["successfulShowIds"].isNull()) + successfulShowIds_ = value["successfulShowIds"].asString(); + if(!value["failedList"].isNull()) + failedList_ = value["failedList"].asString(); } +std::string AddShowIntoShowListResult::getSuccessfulShowIds()const +{ + return successfulShowIds_; +} + +std::string AddShowIntoShowListResult::getFailedList()const +{ + return failedList_; +} + std::string AddShowIntoShowListResult::getShowId()const { return showId_; diff --git a/live/src/model/RemoveShowFromShowListRequest.cc b/live/src/model/RemoveShowFromShowListRequest.cc index d113cb474..0e7765635 100644 --- a/live/src/model/RemoveShowFromShowListRequest.cc +++ b/live/src/model/RemoveShowFromShowListRequest.cc @@ -25,6 +25,23 @@ RemoveShowFromShowListRequest::RemoveShowFromShowListRequest() RemoveShowFromShowListRequest::~RemoveShowFromShowListRequest() {} +bool RemoveShowFromShowListRequest::getIsBatchMode() const { + return isBatchMode_; +} + +void RemoveShowFromShowListRequest::setIsBatchMode(bool isBatchMode) { + isBatchMode_ = isBatchMode; + setParameter(std::string("isBatchMode"), isBatchMode ? "true" : "false"); +} + +std::vector RemoveShowFromShowListRequest::getShowIdList() const { + return showIdList_; +} + +void RemoveShowFromShowListRequest::setShowIdList(const std::vector &showIdList) { + showIdList_ = showIdList; +} + std::string RemoveShowFromShowListRequest::getCasterId() const { return casterId_; } diff --git a/live/src/model/RemoveShowFromShowListResult.cc b/live/src/model/RemoveShowFromShowListResult.cc index 719ebff91..015f1e0db 100644 --- a/live/src/model/RemoveShowFromShowListResult.cc +++ b/live/src/model/RemoveShowFromShowListResult.cc @@ -41,9 +41,23 @@ void RemoveShowFromShowListResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["ShowId"].isNull()) showId_ = value["ShowId"].asString(); + if(!value["successfulShowIds"].isNull()) + successfulShowIds_ = value["successfulShowIds"].asString(); + if(!value["failedList"].isNull()) + failedList_ = value["failedList"].asString(); } +std::string RemoveShowFromShowListResult::getSuccessfulShowIds()const +{ + return successfulShowIds_; +} + +std::string RemoveShowFromShowListResult::getFailedList()const +{ + return failedList_; +} + std::string RemoveShowFromShowListResult::getShowId()const { return showId_;