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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-04-24 11:21:28 +08:00
parent 482abf2f25
commit 1c441b53f5
9 changed files with 420 additions and 1 deletions

View File

@@ -76,6 +76,8 @@
#include "model/RemoveAlbumPhotosResult.h"
#include "model/ListAlbumsRequest.h"
#include "model/ListAlbumsResult.h"
#include "model/FetchPhotosRequest.h"
#include "model/FetchPhotosResult.h"
#include "model/ListPhotoFacesRequest.h"
#include "model/ListPhotoFacesResult.h"
#include "model/RenameAlbumRequest.h"
@@ -250,6 +252,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListAlbumsResult> ListAlbumsOutcome;
typedef std::future<ListAlbumsOutcome> ListAlbumsOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListAlbumsRequest&, const ListAlbumsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlbumsAsyncHandler;
typedef Outcome<Error, Model::FetchPhotosResult> FetchPhotosOutcome;
typedef std::future<FetchPhotosOutcome> FetchPhotosOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::FetchPhotosRequest&, const FetchPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FetchPhotosAsyncHandler;
typedef Outcome<Error, Model::ListPhotoFacesResult> ListPhotoFacesOutcome;
typedef std::future<ListPhotoFacesOutcome> ListPhotoFacesOutcomeCallable;
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoFacesRequest&, const ListPhotoFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoFacesAsyncHandler;
@@ -462,6 +467,9 @@ namespace AlibabaCloud
ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const;
void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const;
FetchPhotosOutcome fetchPhotos(const Model::FetchPhotosRequest &request)const;
void fetchPhotosAsync(const Model::FetchPhotosRequest& request, const FetchPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FetchPhotosOutcomeCallable fetchPhotosCallable(const Model::FetchPhotosRequest& request) const;
ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const;
void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const;

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHPHOTOSREQUEST_H_
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHPHOTOSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudphoto/CloudPhotoExport.h>
namespace AlibabaCloud
{
namespace CloudPhoto
{
namespace Model
{
class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchPhotosRequest : public RpcServiceRequest
{
public:
FetchPhotosRequest();
~FetchPhotosRequest();
int getSize()const;
void setSize(int size);
std::string getLibraryId()const;
void setLibraryId(const std::string& libraryId);
std::string getOrderBy()const;
void setOrderBy(const std::string& orderBy);
std::string getStoreName()const;
void setStoreName(const std::string& storeName);
std::string getState()const;
void setState(const std::string& state);
int getPage()const;
void setPage(int page);
std::string getOrder()const;
void setOrder(const std::string& order);
private:
int size_;
std::string libraryId_;
std::string orderBy_;
std::string storeName_;
std::string state_;
int page_;
std::string order_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHPHOTOSREQUEST_H_

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHPHOTOSRESULT_H_
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHPHOTOSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudphoto/CloudPhotoExport.h>
namespace AlibabaCloud
{
namespace CloudPhoto
{
namespace Model
{
class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchPhotosResult : public ServiceResult
{
public:
struct Photo
{
bool isVideo;
long shareExpireTime;
std::string idStr;
long size;
std::string title;
long mtime;
std::string remark;
std::string state;
long ctime;
long inactiveTime;
std::string fileId;
long height;
long id;
long width;
long takenAt;
std::string location;
std::string md5;
};
FetchPhotosResult();
explicit FetchPhotosResult(const std::string &payload);
~FetchPhotosResult();
std::vector<Photo> getPhotos()const;
int getTotalCount()const;
std::string getAction()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Photo> photos_;
int totalCount_;
std::string action_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHPHOTOSRESULT_H_