Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2022-03-30 03:25:31 +00:00
parent 7052337f54
commit f3e4ab14ee
770 changed files with 22948 additions and 36846 deletions

View File

@@ -43,46 +43,46 @@ void DescribeLiveStreamRecordIndexFilesResult::parse(const std::string &payload)
for (auto valueRecordIndexInfoListRecordIndexInfo : allRecordIndexInfoListNode)
{
RecordIndexInfo recordIndexInfoListObject;
if(!valueRecordIndexInfoListRecordIndexInfo["RecordId"].isNull())
recordIndexInfoListObject.recordId = valueRecordIndexInfoListRecordIndexInfo["RecordId"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["RecordUrl"].isNull())
recordIndexInfoListObject.recordUrl = valueRecordIndexInfoListRecordIndexInfo["RecordUrl"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["DomainName"].isNull())
recordIndexInfoListObject.domainName = valueRecordIndexInfoListRecordIndexInfo["DomainName"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["AppName"].isNull())
recordIndexInfoListObject.appName = valueRecordIndexInfoListRecordIndexInfo["AppName"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["StreamName"].isNull())
recordIndexInfoListObject.streamName = valueRecordIndexInfoListRecordIndexInfo["StreamName"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["OssBucket"].isNull())
recordIndexInfoListObject.ossBucket = valueRecordIndexInfoListRecordIndexInfo["OssBucket"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["OssEndpoint"].isNull())
recordIndexInfoListObject.ossEndpoint = valueRecordIndexInfoListRecordIndexInfo["OssEndpoint"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["OssObject"].isNull())
recordIndexInfoListObject.ossObject = valueRecordIndexInfoListRecordIndexInfo["OssObject"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["StartTime"].isNull())
recordIndexInfoListObject.startTime = valueRecordIndexInfoListRecordIndexInfo["StartTime"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["EndTime"].isNull())
recordIndexInfoListObject.endTime = valueRecordIndexInfoListRecordIndexInfo["EndTime"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["Duration"].isNull())
recordIndexInfoListObject.duration = std::stof(valueRecordIndexInfoListRecordIndexInfo["Duration"].asString());
if(!valueRecordIndexInfoListRecordIndexInfo["Height"].isNull())
recordIndexInfoListObject.height = std::stoi(valueRecordIndexInfoListRecordIndexInfo["Height"].asString());
if(!valueRecordIndexInfoListRecordIndexInfo["Width"].isNull())
recordIndexInfoListObject.width = std::stoi(valueRecordIndexInfoListRecordIndexInfo["Width"].asString());
if(!valueRecordIndexInfoListRecordIndexInfo["CreateTime"].isNull())
recordIndexInfoListObject.createTime = valueRecordIndexInfoListRecordIndexInfo["CreateTime"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["RecordId"].isNull())
recordIndexInfoListObject.recordId = valueRecordIndexInfoListRecordIndexInfo["RecordId"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["Height"].isNull())
recordIndexInfoListObject.height = std::stoi(valueRecordIndexInfoListRecordIndexInfo["Height"].asString());
if(!valueRecordIndexInfoListRecordIndexInfo["OssBucket"].isNull())
recordIndexInfoListObject.ossBucket = valueRecordIndexInfoListRecordIndexInfo["OssBucket"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["DomainName"].isNull())
recordIndexInfoListObject.domainName = valueRecordIndexInfoListRecordIndexInfo["DomainName"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["OssObject"].isNull())
recordIndexInfoListObject.ossObject = valueRecordIndexInfoListRecordIndexInfo["OssObject"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["EndTime"].isNull())
recordIndexInfoListObject.endTime = valueRecordIndexInfoListRecordIndexInfo["EndTime"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["AppName"].isNull())
recordIndexInfoListObject.appName = valueRecordIndexInfoListRecordIndexInfo["AppName"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["StartTime"].isNull())
recordIndexInfoListObject.startTime = valueRecordIndexInfoListRecordIndexInfo["StartTime"].asString();
if(!valueRecordIndexInfoListRecordIndexInfo["Width"].isNull())
recordIndexInfoListObject.width = std::stoi(valueRecordIndexInfoListRecordIndexInfo["Width"].asString());
if(!valueRecordIndexInfoListRecordIndexInfo["Duration"].isNull())
recordIndexInfoListObject.duration = std::stof(valueRecordIndexInfoListRecordIndexInfo["Duration"].asString());
if(!valueRecordIndexInfoListRecordIndexInfo["OssEndpoint"].isNull())
recordIndexInfoListObject.ossEndpoint = valueRecordIndexInfoListRecordIndexInfo["OssEndpoint"].asString();
recordIndexInfoList_.push_back(recordIndexInfoListObject);
}
if(!value["PageNum"].isNull())
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Order"].isNull())
order_ = value["Order"].asString();
if(!value["TotalNum"].isNull())
totalNum_ = std::stoi(value["TotalNum"].asString());
if(!value["TotalPage"].isNull())
totalPage_ = std::stoi(value["TotalPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalNum"].isNull())
totalNum_ = std::stoi(value["TotalNum"].asString());
}
@@ -101,16 +101,16 @@ int DescribeLiveStreamRecordIndexFilesResult::getPageNum()const
return pageNum_;
}
int DescribeLiveStreamRecordIndexFilesResult::getPageSize()const
{
return pageSize_;
}
int DescribeLiveStreamRecordIndexFilesResult::getTotalPage()const
{
return totalPage_;
}
int DescribeLiveStreamRecordIndexFilesResult::getPageSize()const
{
return pageSize_;
}
std::vector<DescribeLiveStreamRecordIndexFilesResult::RecordIndexInfo> DescribeLiveStreamRecordIndexFilesResult::getRecordIndexInfoList()const
{
return recordIndexInfoList_;