Browse Source

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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 8 years ago
parent
commit
ff129e3660

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+2018-04-11 Version: 1.6.1
+1, GetLibrary/FetchLibraries add return ctime
+2, Editphotos add input param takenAt
+
 2018-04-10 Version: 1.6.0
 1, Add three interfaces CreateNetworkInterfacePermission DeleteNetworkInterfacePermission DescribeNetworkInterfacePermissions.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.6.0
+1.6.1

+ 3 - 0
cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosRequest.h

@@ -35,6 +35,8 @@ namespace AlibabaCloud
 				EditPhotosRequest();
 				~EditPhotosRequest();
 
+				long getTakenAt()const;
+				void setTakenAt(long takenAt);
 				std::string getLibraryId()const;
 				void setLibraryId(const std::string& libraryId);
 				long getShareExpireTime()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
 				void setTitle(const std::string& title);
 
             private:
+				long takenAt_;
 				std::string libraryId_;
 				long shareExpireTime_;
 				std::vector<long> photoId_;

+ 1 - 0
cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h

@@ -35,6 +35,7 @@ namespace AlibabaCloud
 				struct Library
 				{
 					std::string libraryId;
+					long ctime;
 				};
 
 

+ 1 - 0
cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryResult.h

@@ -51,6 +51,7 @@ namespace AlibabaCloud
 						bool autoCleanEnabled;
 					};
 					Quota quota;
+					long ctime;
 					AutoCleanConfig autoCleanConfig;
 				};
 

+ 11 - 0
cloudphoto/src/model/EditPhotosRequest.cc

@@ -25,6 +25,17 @@ EditPhotosRequest::EditPhotosRequest() :
 EditPhotosRequest::~EditPhotosRequest()
 {}
 
+long EditPhotosRequest::getTakenAt()const
+{
+	return takenAt_;
+}
+
+void EditPhotosRequest::setTakenAt(long takenAt)
+{
+	takenAt_ = takenAt;
+	setParameter("TakenAt", std::to_string(takenAt));
+}
+
 std::string EditPhotosRequest::getLibraryId()const
 {
 	return libraryId_;

+ 2 - 0
cloudphoto/src/model/FetchLibrariesResult.cc

@@ -46,6 +46,8 @@ void FetchLibrariesResult::parse(const std::string &payload)
 		Library librariesObject;
 		if(!value["LibraryId"].isNull())
 			librariesObject.libraryId = value["LibraryId"].asString();
+		if(!value["Ctime"].isNull())
+			librariesObject.ctime = std::stol(value["Ctime"].asString());
 		libraries_.push_back(librariesObject);
 	}
 	if(!value["Code"].isNull())

+ 2 - 0
cloudphoto/src/model/GetLibraryResult.cc

@@ -41,6 +41,8 @@ void GetLibraryResult::parse(const std::string &payload)
 
 	setRequestId(value["RequestId"].asString());
 	auto libraryNode = value["Library"];
+	if(!libraryNode["Ctime"].isNull())
+		library_.ctime = std::stol(libraryNode["Ctime"].asString());
 	auto quotaNode = libraryNode["Quota"];
 	if(!quotaNode["TotalQuota"].isNull())
 		library_.quota.totalQuota = std::stol(quotaNode["TotalQuota"].asString());