From 9df24cf9ebcb39b5e684550dfd74101c99eb0f07 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 10 Feb 2020 11:12:38 +0800 Subject: [PATCH] Supported address for GetMediaMeta. --- CHANGELOG | 3 +++ VERSION | 2 +- .../alibabacloud/imm/model/GetMediaMetaResult.h | 10 ++++++++++ imm/src/model/GetMediaMetaResult.cc | 13 +++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 9e1fc4673..823993a08 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-02-10 Version 1.36.251 +- Supported address for GetMediaMeta. + 2020-02-07 Version 1.36.250 - Fix bug for DescribeZoneInfo, delete return result of reionId. - Fix bug for DeleteZone, parameter zoneId change to compulsory. diff --git a/VERSION b/VERSION index 057331dff..0854d2673 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.250 \ No newline at end of file +1.36.251 \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h index 19e645e18..883cc9741 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h @@ -36,6 +36,16 @@ namespace AlibabaCloud { struct MediaFormat { + struct Address + { + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + Address address; int numberStreams; std::string size; std::string formatLongName; diff --git a/imm/src/model/GetMediaMetaResult.cc b/imm/src/model/GetMediaMetaResult.cc index 09f85fcef..9fafa5656 100644 --- a/imm/src/model/GetMediaMetaResult.cc +++ b/imm/src/model/GetMediaMetaResult.cc @@ -61,6 +61,19 @@ void GetMediaMetaResult::parse(const std::string &payload) mediaMeta_.mediaFormat.creationTime = mediaFormatNode["CreationTime"].asString(); if(!mediaFormatNode["Location"].isNull()) mediaMeta_.mediaFormat.location = mediaFormatNode["Location"].asString(); + auto addressNode = mediaFormatNode["Address"]; + if(!addressNode["AddressLine"].isNull()) + mediaMeta_.mediaFormat.address.addressLine = addressNode["AddressLine"].asString(); + if(!addressNode["Country"].isNull()) + mediaMeta_.mediaFormat.address.country = addressNode["Country"].asString(); + if(!addressNode["Province"].isNull()) + mediaMeta_.mediaFormat.address.province = addressNode["Province"].asString(); + if(!addressNode["City"].isNull()) + mediaMeta_.mediaFormat.address.city = addressNode["City"].asString(); + if(!addressNode["District"].isNull()) + mediaMeta_.mediaFormat.address.district = addressNode["District"].asString(); + if(!addressNode["Township"].isNull()) + mediaMeta_.mediaFormat.address.township = addressNode["Township"].asString(); auto mediaStreamsNode = mediaMetaNode["MediaStreams"]; auto allVideoStreamsNode = mediaStreamsNode["VideoStreams"]["VideoStream"]; for (auto mediaStreamsNodeVideoStreamsVideoStream : allVideoStreamsNode)