Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2022-09-15 08:18:20 +00:00
parent 587e1e512e
commit aa1a6d2362
9 changed files with 103 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1258
1.36.1259

View File

@@ -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<ShowList> getShowList() const;
void setShowList(const std::vector<ShowList> &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> showList_;
int liveInputType_;
bool isBatchMode_;
long duration_;
int repeatTimes_;
std::string showName_;

View File

@@ -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_;
};

View File

@@ -30,6 +30,10 @@ class ALIBABACLOUD_LIVE_EXPORT RemoveShowFromShowListRequest : public RpcService
public:
RemoveShowFromShowListRequest();
~RemoveShowFromShowListRequest();
bool getIsBatchMode() const;
void setIsBatchMode(bool isBatchMode);
std::vector<std::string> getShowIdList() const;
void setShowIdList(const std::vector<std::string> &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<std::string> showIdList_;
std::string casterId_;
long ownerId_;
std::string showId_;

View File

@@ -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_;
};

View File

@@ -25,6 +25,25 @@ AddShowIntoShowListRequest::AddShowIntoShowListRequest()
AddShowIntoShowListRequest::~AddShowIntoShowListRequest() {}
std::vector<AddShowIntoShowListRequest::ShowList> AddShowIntoShowListRequest::getShowList() const {
return showList_;
}
void AddShowIntoShowListRequest::setShowList(const std::vector<AddShowIntoShowListRequest::ShowList> &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_;
}

View File

@@ -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_;

View File

@@ -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<std::string> RemoveShowFromShowListRequest::getShowIdList() const {
return showIdList_;
}
void RemoveShowFromShowListRequest::setShowIdList(const std::vector<std::string> &showIdList) {
showIdList_ = showIdList;
}
std::string RemoveShowFromShowListRequest::getCasterId() const {
return casterId_;
}

View File

@@ -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_;