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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-04-11 14:12:59 +08:00
parent 3ea4f50703
commit ff129e3660
8 changed files with 25 additions and 1 deletions

View File

@@ -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_;

View File

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

View File

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

View File

@@ -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_;

View File

@@ -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())

View File

@@ -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());