由廷诚发起的CLOUDPHOTO SDK自动发布, 版本号:1.3.7

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-03-29 22:29:52 +08:00
parent a1ba8b4381
commit 9c389f5683
4 changed files with 20 additions and 8 deletions

View File

@@ -1,3 +1,6 @@
2018-03-29 Version: 1.3.7
1, edit FetchLibraries return param format
2018-03-27 Version: 1.3.6
1, Rename QueryCustomerSaleInfo to RegionName.

View File

@@ -1 +1 @@
1.3.6
1.3.7

View File

@@ -32,6 +32,10 @@ namespace AlibabaCloud
class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchLibrariesResult : public ServiceResult
{
public:
struct Library
{
std::string libraryId;
};
FetchLibrariesResult();
@@ -40,7 +44,7 @@ namespace AlibabaCloud
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::vector<std::string> getLibrary()const;
std::vector<Library> getLibraries()const;
std::string getCode()const;
protected:
@@ -49,7 +53,7 @@ namespace AlibabaCloud
int totalCount_;
std::string action_;
std::string message_;
std::vector<std::string> library_;
std::vector<Library> libraries_;
std::string code_;
};

View File

@@ -40,9 +40,14 @@ void FetchLibrariesResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLibrary = value["Library"]["Library"];
for (const auto &item : allLibrary)
library_.push_back(item.asString());
auto allLibraries = value["Libraries"]["Library"];
for (auto value : allLibraries)
{
Library librariesObject;
if(!value["LibraryId"].isNull())
librariesObject.libraryId = value["LibraryId"].asString();
libraries_.push_back(librariesObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
@@ -69,9 +74,9 @@ std::string FetchLibrariesResult::getMessage()const
return message_;
}
std::vector<std::string> FetchLibrariesResult::getLibrary()const
std::vector<FetchLibrariesResult::Library> FetchLibrariesResult::getLibraries()const
{
return library_;
return libraries_;
}
std::string FetchLibrariesResult::getCode()const