Modify DescribeVodUserDomains api.
This commit is contained in:
@@ -43,15 +43,6 @@ void ListAppInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
int ListAppInfoRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void ListAppInfoRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int ListAppInfoRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -61,6 +52,25 @@ void ListAppInfoRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
ListAppInfoRequest::Tag ListAppInfoRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListAppInfoRequest::setTag(const ListAppInfoRequest::Tag &tag) {
|
||||
tag_ = tag;
|
||||
setParameter(std::string("Tag") + ".Value", tag.value);
|
||||
setParameter(std::string("Tag") + ".Key", tag.key);
|
||||
}
|
||||
|
||||
int ListAppInfoRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void ListAppInfoRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string ListAppInfoRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -57,6 +57,16 @@ void ListAppInfoResult::parse(const std::string &payload)
|
||||
appInfoListObject.appId = valueAppInfoListAppInfo["AppId"].asString();
|
||||
if(!valueAppInfoListAppInfo["ModificationTime"].isNull())
|
||||
appInfoListObject.modificationTime = valueAppInfoListAppInfo["ModificationTime"].asString();
|
||||
auto allTagsNode = valueAppInfoListAppInfo["Tags"]["tagsItem"];
|
||||
for (auto valueAppInfoListAppInfoTagstagsItem : allTagsNode)
|
||||
{
|
||||
AppInfo::TagsItem tagsObject;
|
||||
if(!valueAppInfoListAppInfoTagstagsItem["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueAppInfoListAppInfoTagstagsItem["TagKey"].asString();
|
||||
if(!valueAppInfoListAppInfoTagstagsItem["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueAppInfoListAppInfoTagstagsItem["TagValue"].asString();
|
||||
appInfoListObject.tags.push_back(tagsObject);
|
||||
}
|
||||
appInfoList_.push_back(appInfoListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user