由廷诚发起的CLOUDPHOTO SDK自动发布, 版本号:1.6.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Library
|
||||
{
|
||||
std::string libraryId;
|
||||
long ctime;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
bool autoCleanEnabled;
|
||||
};
|
||||
Quota quota;
|
||||
long ctime;
|
||||
AutoCleanConfig autoCleanConfig;
|
||||
};
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user