Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b7af1732d | ||
|
|
f725320265 | ||
|
|
728ece9cd1 | ||
|
|
dd93fdf1c5 | ||
|
|
78ee1b30bd | ||
|
|
96d9eb7efd |
26
CHANGELOG
26
CHANGELOG
@@ -1,3 +1,29 @@
|
||||
2018-03-13 Version: 1.2.8
|
||||
1, API GetQuotaHistoryInfo fix field error.
|
||||
|
||||
2018-03-07 Version: 1.2.7
|
||||
1, add GetAlbumsByNames
|
||||
2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
|
||||
3, add return IdStr for string
|
||||
|
||||
2018-03-06 Version: 1.2.6
|
||||
1, add GetAlbumsByNames
|
||||
2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
|
||||
3, add return IdStr for string
|
||||
|
||||
|
||||
2018-03-06 Version: 1.2.5
|
||||
1, add GetAlbumsByNames
|
||||
2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
|
||||
3, add return IdStr for string
|
||||
|
||||
2018-02-28 Version: 1.2.4
|
||||
1, Add query resource inventory API.
|
||||
2, Add query topology API.
|
||||
|
||||
2018-02-27 Version: 1.2.3
|
||||
1, Add query topology API.
|
||||
|
||||
2018-02-27 Version: 1.2.2
|
||||
1, Add new API: ListRecordingsByContactId.
|
||||
|
||||
|
||||
@@ -63,4 +63,5 @@ add_subdirectory(afs)
|
||||
add_subdirectory(aegis)
|
||||
add_subdirectory(ehpc)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ccc)
|
||||
add_subdirectory(ccc)
|
||||
add_subdirectory(teslamaxcompute)
|
||||
@@ -37,6 +37,8 @@ set(cloudphoto_public_header_model
|
||||
include/alibabacloud/cloudphoto/model/ListFacesResult.h
|
||||
include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h
|
||||
include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h
|
||||
include/alibabacloud/cloudphoto/model/DeleteEventRequest.h
|
||||
include/alibabacloud/cloudphoto/model/DeleteEventResult.h
|
||||
include/alibabacloud/cloudphoto/model/ListPhotosRequest.h
|
||||
include/alibabacloud/cloudphoto/model/ListPhotosResult.h
|
||||
include/alibabacloud/cloudphoto/model/RegisterTagRequest.h
|
||||
@@ -77,10 +79,14 @@ set(cloudphoto_public_header_model
|
||||
include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h
|
||||
include/alibabacloud/cloudphoto/model/ListEventsRequest.h
|
||||
include/alibabacloud/cloudphoto/model/ListEventsResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetEventRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetEventResult.h
|
||||
include/alibabacloud/cloudphoto/model/SetMeRequest.h
|
||||
include/alibabacloud/cloudphoto/model/SetMeResult.h
|
||||
include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h
|
||||
@@ -105,6 +111,8 @@ set(cloudphoto_public_header_model
|
||||
include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h
|
||||
include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h
|
||||
include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h
|
||||
include/alibabacloud/cloudphoto/model/CreateEventRequest.h
|
||||
include/alibabacloud/cloudphoto/model/CreateEventResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h
|
||||
include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h
|
||||
@@ -117,6 +125,8 @@ set(cloudphoto_public_header_model
|
||||
include/alibabacloud/cloudphoto/model/CreatePhotoResult.h
|
||||
include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h
|
||||
include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h
|
||||
include/alibabacloud/cloudphoto/model/EditEventRequest.h
|
||||
include/alibabacloud/cloudphoto/model/EditEventResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h
|
||||
include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h
|
||||
@@ -127,6 +137,8 @@ set(cloudphoto_public_header_model
|
||||
include/alibabacloud/cloudphoto/model/LikePhotoResult.h
|
||||
include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h
|
||||
include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetAlbumsByNamesRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetAlbumsByNamesResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h
|
||||
include/alibabacloud/cloudphoto/model/EditPhotosRequest.h
|
||||
@@ -160,6 +172,8 @@ set(cloudphoto_src
|
||||
src/model/ListFacesResult.cc
|
||||
src/model/MoveFacePhotosRequest.cc
|
||||
src/model/MoveFacePhotosResult.cc
|
||||
src/model/DeleteEventRequest.cc
|
||||
src/model/DeleteEventResult.cc
|
||||
src/model/ListPhotosRequest.cc
|
||||
src/model/ListPhotosResult.cc
|
||||
src/model/RegisterTagRequest.cc
|
||||
@@ -200,10 +214,14 @@ set(cloudphoto_src
|
||||
src/model/GetPrivateAccessUrlsResult.cc
|
||||
src/model/GetSimilarPhotosRequest.cc
|
||||
src/model/GetSimilarPhotosResult.cc
|
||||
src/model/ListEventsRequest.cc
|
||||
src/model/ListEventsResult.cc
|
||||
src/model/GetVideoCoverRequest.cc
|
||||
src/model/GetVideoCoverResult.cc
|
||||
src/model/GetFramedPhotoUrlsRequest.cc
|
||||
src/model/GetFramedPhotoUrlsResult.cc
|
||||
src/model/GetEventRequest.cc
|
||||
src/model/GetEventResult.cc
|
||||
src/model/SetMeRequest.cc
|
||||
src/model/SetMeResult.cc
|
||||
src/model/ListTagPhotosRequest.cc
|
||||
@@ -228,6 +246,8 @@ set(cloudphoto_src
|
||||
src/model/ListRegisteredTagsResult.cc
|
||||
src/model/DeletePhotoStoreRequest.cc
|
||||
src/model/DeletePhotoStoreResult.cc
|
||||
src/model/CreateEventRequest.cc
|
||||
src/model/CreateEventResult.cc
|
||||
src/model/GetPhotoStoreRequest.cc
|
||||
src/model/GetPhotoStoreResult.cc
|
||||
src/model/ListMomentPhotosRequest.cc
|
||||
@@ -240,6 +260,8 @@ set(cloudphoto_src
|
||||
src/model/CreatePhotoResult.cc
|
||||
src/model/MoveAlbumPhotosRequest.cc
|
||||
src/model/MoveAlbumPhotosResult.cc
|
||||
src/model/EditEventRequest.cc
|
||||
src/model/EditEventResult.cc
|
||||
src/model/GetDownloadUrlRequest.cc
|
||||
src/model/GetDownloadUrlResult.cc
|
||||
src/model/CreateAlbumRequest.cc
|
||||
@@ -250,6 +272,8 @@ set(cloudphoto_src
|
||||
src/model/LikePhotoResult.cc
|
||||
src/model/ListPhotoStoresRequest.cc
|
||||
src/model/ListPhotoStoresResult.cc
|
||||
src/model/GetAlbumsByNamesRequest.cc
|
||||
src/model/GetAlbumsByNamesResult.cc
|
||||
src/model/GetPublicAccessUrlsRequest.cc
|
||||
src/model/GetPublicAccessUrlsResult.cc
|
||||
src/model/EditPhotosRequest.cc
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include "model/ListFacesResult.h"
|
||||
#include "model/MoveFacePhotosRequest.h"
|
||||
#include "model/MoveFacePhotosResult.h"
|
||||
#include "model/DeleteEventRequest.h"
|
||||
#include "model/DeleteEventResult.h"
|
||||
#include "model/ListPhotosRequest.h"
|
||||
#include "model/ListPhotosResult.h"
|
||||
#include "model/RegisterTagRequest.h"
|
||||
@@ -78,10 +80,14 @@
|
||||
#include "model/GetPrivateAccessUrlsResult.h"
|
||||
#include "model/GetSimilarPhotosRequest.h"
|
||||
#include "model/GetSimilarPhotosResult.h"
|
||||
#include "model/ListEventsRequest.h"
|
||||
#include "model/ListEventsResult.h"
|
||||
#include "model/GetVideoCoverRequest.h"
|
||||
#include "model/GetVideoCoverResult.h"
|
||||
#include "model/GetFramedPhotoUrlsRequest.h"
|
||||
#include "model/GetFramedPhotoUrlsResult.h"
|
||||
#include "model/GetEventRequest.h"
|
||||
#include "model/GetEventResult.h"
|
||||
#include "model/SetMeRequest.h"
|
||||
#include "model/SetMeResult.h"
|
||||
#include "model/ListTagPhotosRequest.h"
|
||||
@@ -106,6 +112,8 @@
|
||||
#include "model/ListRegisteredTagsResult.h"
|
||||
#include "model/DeletePhotoStoreRequest.h"
|
||||
#include "model/DeletePhotoStoreResult.h"
|
||||
#include "model/CreateEventRequest.h"
|
||||
#include "model/CreateEventResult.h"
|
||||
#include "model/GetPhotoStoreRequest.h"
|
||||
#include "model/GetPhotoStoreResult.h"
|
||||
#include "model/ListMomentPhotosRequest.h"
|
||||
@@ -118,6 +126,8 @@
|
||||
#include "model/CreatePhotoResult.h"
|
||||
#include "model/MoveAlbumPhotosRequest.h"
|
||||
#include "model/MoveAlbumPhotosResult.h"
|
||||
#include "model/EditEventRequest.h"
|
||||
#include "model/EditEventResult.h"
|
||||
#include "model/GetDownloadUrlRequest.h"
|
||||
#include "model/GetDownloadUrlResult.h"
|
||||
#include "model/CreateAlbumRequest.h"
|
||||
@@ -128,6 +138,8 @@
|
||||
#include "model/LikePhotoResult.h"
|
||||
#include "model/ListPhotoStoresRequest.h"
|
||||
#include "model/ListPhotoStoresResult.h"
|
||||
#include "model/GetAlbumsByNamesRequest.h"
|
||||
#include "model/GetAlbumsByNamesResult.h"
|
||||
#include "model/GetPublicAccessUrlsRequest.h"
|
||||
#include "model/GetPublicAccessUrlsResult.h"
|
||||
#include "model/EditPhotosRequest.h"
|
||||
@@ -175,6 +187,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::MoveFacePhotosResult> MoveFacePhotosOutcome;
|
||||
typedef std::future<MoveFacePhotosOutcome> MoveFacePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::MoveFacePhotosRequest&, const MoveFacePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveFacePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteEventResult> DeleteEventOutcome;
|
||||
typedef std::future<DeleteEventOutcome> DeleteEventOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::DeleteEventRequest&, const DeleteEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPhotosResult> ListPhotosOutcome;
|
||||
typedef std::future<ListPhotosOutcome> ListPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotosRequest&, const ListPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotosAsyncHandler;
|
||||
@@ -235,12 +250,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetSimilarPhotosResult> GetSimilarPhotosOutcome;
|
||||
typedef std::future<GetSimilarPhotosOutcome> GetSimilarPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetSimilarPhotosRequest&, const GetSimilarPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSimilarPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListEventsResult> ListEventsOutcome;
|
||||
typedef std::future<ListEventsOutcome> ListEventsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListEventsRequest&, const ListEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetVideoCoverResult> GetVideoCoverOutcome;
|
||||
typedef std::future<GetVideoCoverOutcome> GetVideoCoverOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetVideoCoverRequest&, const GetVideoCoverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVideoCoverAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFramedPhotoUrlsResult> GetFramedPhotoUrlsOutcome;
|
||||
typedef std::future<GetFramedPhotoUrlsOutcome> GetFramedPhotoUrlsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetFramedPhotoUrlsRequest&, const GetFramedPhotoUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFramedPhotoUrlsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEventResult> GetEventOutcome;
|
||||
typedef std::future<GetEventOutcome> GetEventOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetEventRequest&, const GetEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetMeResult> SetMeOutcome;
|
||||
typedef std::future<SetMeOutcome> SetMeOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::SetMeRequest&, const SetMeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetMeAsyncHandler;
|
||||
@@ -277,6 +298,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeletePhotoStoreResult> DeletePhotoStoreOutcome;
|
||||
typedef std::future<DeletePhotoStoreOutcome> DeletePhotoStoreOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::DeletePhotoStoreRequest&, const DeletePhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePhotoStoreAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateEventResult> CreateEventOutcome;
|
||||
typedef std::future<CreateEventOutcome> CreateEventOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::CreateEventRequest&, const CreateEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPhotoStoreResult> GetPhotoStoreOutcome;
|
||||
typedef std::future<GetPhotoStoreOutcome> GetPhotoStoreOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetPhotoStoreRequest&, const GetPhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhotoStoreAsyncHandler;
|
||||
@@ -295,6 +319,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::MoveAlbumPhotosResult> MoveAlbumPhotosOutcome;
|
||||
typedef std::future<MoveAlbumPhotosOutcome> MoveAlbumPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::MoveAlbumPhotosRequest&, const MoveAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveAlbumPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::EditEventResult> EditEventOutcome;
|
||||
typedef std::future<EditEventOutcome> EditEventOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::EditEventRequest&, const EditEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDownloadUrlResult> GetDownloadUrlOutcome;
|
||||
typedef std::future<GetDownloadUrlOutcome> GetDownloadUrlOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetDownloadUrlRequest&, const GetDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDownloadUrlAsyncHandler;
|
||||
@@ -310,6 +337,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPhotoStoresResult> ListPhotoStoresOutcome;
|
||||
typedef std::future<ListPhotoStoresOutcome> ListPhotoStoresOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoStoresRequest&, const ListPhotoStoresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoStoresAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAlbumsByNamesResult> GetAlbumsByNamesOutcome;
|
||||
typedef std::future<GetAlbumsByNamesOutcome> GetAlbumsByNamesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetAlbumsByNamesRequest&, const GetAlbumsByNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAlbumsByNamesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPublicAccessUrlsResult> GetPublicAccessUrlsOutcome;
|
||||
typedef std::future<GetPublicAccessUrlsOutcome> GetPublicAccessUrlsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetPublicAccessUrlsRequest&, const GetPublicAccessUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPublicAccessUrlsAsyncHandler;
|
||||
@@ -360,6 +390,9 @@ namespace AlibabaCloud
|
||||
MoveFacePhotosOutcome moveFacePhotos(const Model::MoveFacePhotosRequest &request)const;
|
||||
void moveFacePhotosAsync(const Model::MoveFacePhotosRequest& request, const MoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MoveFacePhotosOutcomeCallable moveFacePhotosCallable(const Model::MoveFacePhotosRequest& request) const;
|
||||
DeleteEventOutcome deleteEvent(const Model::DeleteEventRequest &request)const;
|
||||
void deleteEventAsync(const Model::DeleteEventRequest& request, const DeleteEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteEventOutcomeCallable deleteEventCallable(const Model::DeleteEventRequest& request) const;
|
||||
ListPhotosOutcome listPhotos(const Model::ListPhotosRequest &request)const;
|
||||
void listPhotosAsync(const Model::ListPhotosRequest& request, const ListPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhotosOutcomeCallable listPhotosCallable(const Model::ListPhotosRequest& request) const;
|
||||
@@ -420,12 +453,18 @@ namespace AlibabaCloud
|
||||
GetSimilarPhotosOutcome getSimilarPhotos(const Model::GetSimilarPhotosRequest &request)const;
|
||||
void getSimilarPhotosAsync(const Model::GetSimilarPhotosRequest& request, const GetSimilarPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSimilarPhotosOutcomeCallable getSimilarPhotosCallable(const Model::GetSimilarPhotosRequest& request) const;
|
||||
ListEventsOutcome listEvents(const Model::ListEventsRequest &request)const;
|
||||
void listEventsAsync(const Model::ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListEventsOutcomeCallable listEventsCallable(const Model::ListEventsRequest& request) const;
|
||||
GetVideoCoverOutcome getVideoCover(const Model::GetVideoCoverRequest &request)const;
|
||||
void getVideoCoverAsync(const Model::GetVideoCoverRequest& request, const GetVideoCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVideoCoverOutcomeCallable getVideoCoverCallable(const Model::GetVideoCoverRequest& request) const;
|
||||
GetFramedPhotoUrlsOutcome getFramedPhotoUrls(const Model::GetFramedPhotoUrlsRequest &request)const;
|
||||
void getFramedPhotoUrlsAsync(const Model::GetFramedPhotoUrlsRequest& request, const GetFramedPhotoUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFramedPhotoUrlsOutcomeCallable getFramedPhotoUrlsCallable(const Model::GetFramedPhotoUrlsRequest& request) const;
|
||||
GetEventOutcome getEvent(const Model::GetEventRequest &request)const;
|
||||
void getEventAsync(const Model::GetEventRequest& request, const GetEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEventOutcomeCallable getEventCallable(const Model::GetEventRequest& request) const;
|
||||
SetMeOutcome setMe(const Model::SetMeRequest &request)const;
|
||||
void setMeAsync(const Model::SetMeRequest& request, const SetMeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetMeOutcomeCallable setMeCallable(const Model::SetMeRequest& request) const;
|
||||
@@ -462,6 +501,9 @@ namespace AlibabaCloud
|
||||
DeletePhotoStoreOutcome deletePhotoStore(const Model::DeletePhotoStoreRequest &request)const;
|
||||
void deletePhotoStoreAsync(const Model::DeletePhotoStoreRequest& request, const DeletePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePhotoStoreOutcomeCallable deletePhotoStoreCallable(const Model::DeletePhotoStoreRequest& request) const;
|
||||
CreateEventOutcome createEvent(const Model::CreateEventRequest &request)const;
|
||||
void createEventAsync(const Model::CreateEventRequest& request, const CreateEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateEventOutcomeCallable createEventCallable(const Model::CreateEventRequest& request) const;
|
||||
GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const;
|
||||
void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const;
|
||||
@@ -480,6 +522,9 @@ namespace AlibabaCloud
|
||||
MoveAlbumPhotosOutcome moveAlbumPhotos(const Model::MoveAlbumPhotosRequest &request)const;
|
||||
void moveAlbumPhotosAsync(const Model::MoveAlbumPhotosRequest& request, const MoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MoveAlbumPhotosOutcomeCallable moveAlbumPhotosCallable(const Model::MoveAlbumPhotosRequest& request) const;
|
||||
EditEventOutcome editEvent(const Model::EditEventRequest &request)const;
|
||||
void editEventAsync(const Model::EditEventRequest& request, const EditEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EditEventOutcomeCallable editEventCallable(const Model::EditEventRequest& request) const;
|
||||
GetDownloadUrlOutcome getDownloadUrl(const Model::GetDownloadUrlRequest &request)const;
|
||||
void getDownloadUrlAsync(const Model::GetDownloadUrlRequest& request, const GetDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDownloadUrlOutcomeCallable getDownloadUrlCallable(const Model::GetDownloadUrlRequest& request) const;
|
||||
@@ -495,6 +540,9 @@ namespace AlibabaCloud
|
||||
ListPhotoStoresOutcome listPhotoStores(const Model::ListPhotoStoresRequest &request)const;
|
||||
void listPhotoStoresAsync(const Model::ListPhotoStoresRequest& request, const ListPhotoStoresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhotoStoresOutcomeCallable listPhotoStoresCallable(const Model::ListPhotoStoresRequest& request) const;
|
||||
GetAlbumsByNamesOutcome getAlbumsByNames(const Model::GetAlbumsByNamesRequest &request)const;
|
||||
void getAlbumsByNamesAsync(const Model::GetAlbumsByNamesRequest& request, const GetAlbumsByNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAlbumsByNamesOutcomeCallable getAlbumsByNamesCallable(const Model::GetAlbumsByNamesRequest& request) const;
|
||||
GetPublicAccessUrlsOutcome getPublicAccessUrls(const Model::GetPublicAccessUrlsRequest &request)const;
|
||||
void getPublicAccessUrlsAsync(const Model::GetPublicAccessUrlsRequest& request, const GetPublicAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPublicAccessUrlsOutcomeCallable getPublicAccessUrlsCallable(const Model::GetPublicAccessUrlsRequest& request) const;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string title;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string remark;
|
||||
};
|
||||
std::vector<Cover> cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_CREATEEVENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_CREATEEVENTREQUEST_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 CreateEventRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateEventRequest();
|
||||
~CreateEventRequest();
|
||||
|
||||
std::string getBannerPhotoId()const;
|
||||
void setBannerPhotoId(const std::string& bannerPhotoId);
|
||||
std::string getWatermarkPhotoId()const;
|
||||
void setWatermarkPhotoId(const std::string& watermarkPhotoId);
|
||||
std::string getIdentity()const;
|
||||
void setIdentity(const std::string& identity);
|
||||
std::string getSplashPhotoId()const;
|
||||
void setSplashPhotoId(const std::string& splashPhotoId);
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
std::string getWeixinTitle()const;
|
||||
void setWeixinTitle(const std::string& weixinTitle);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
std::string getRemark()const;
|
||||
void setRemark(const std::string& remark);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
long getEndAt()const;
|
||||
void setEndAt(long endAt);
|
||||
long getStartAt()const;
|
||||
void setStartAt(long startAt);
|
||||
|
||||
private:
|
||||
std::string bannerPhotoId_;
|
||||
std::string watermarkPhotoId_;
|
||||
std::string identity_;
|
||||
std::string splashPhotoId_;
|
||||
std::string libraryId_;
|
||||
std::string weixinTitle_;
|
||||
std::string storeName_;
|
||||
std::string remark_;
|
||||
std::string title_;
|
||||
long endAt_;
|
||||
long startAt_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_CREATEEVENTREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_CREATEEVENTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_CREATEEVENTRESULT_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 CreateEventResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Event
|
||||
{
|
||||
std::string idStr1;
|
||||
std::string watermarkPhotoId;
|
||||
std::string idStr;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string bannerPhotoId;
|
||||
std::string splashPhotoId;
|
||||
long endAt;
|
||||
std::string libraryId;
|
||||
std::string weixinTitle;
|
||||
std::string state;
|
||||
long startAt;
|
||||
long ctime;
|
||||
long viewsCount;
|
||||
long id;
|
||||
std::string identity;
|
||||
};
|
||||
|
||||
|
||||
CreateEventResult();
|
||||
explicit CreateEventResult(const std::string &payload);
|
||||
~CreateEventResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Event> getEvent()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Event> event_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_CREATEEVENTRESULT_H_
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DELETEEVENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_DELETEEVENTREQUEST_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 DeleteEventRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteEventRequest();
|
||||
~DeleteEventRequest();
|
||||
|
||||
long getEventId()const;
|
||||
void setEventId(long eventId);
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
|
||||
private:
|
||||
long eventId_;
|
||||
std::string libraryId_;
|
||||
std::string storeName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_DELETEEVENTREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_DELETEEVENTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_DELETEEVENTRESULT_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 DeleteEventResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteEventResult();
|
||||
explicit DeleteEventResult(const std::string &payload);
|
||||
~DeleteEventResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_DELETEEVENTRESULT_H_
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -37,15 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
std::vector<long> getPhotoId()const;
|
||||
void setPhotoId(const std::vector<long>& photoId);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
std::vector<long> getPhotoId()const;
|
||||
void setPhotoId(const std::vector<long>& photoId);
|
||||
|
||||
private:
|
||||
std::string libraryId_;
|
||||
std::vector<long> photoId_;
|
||||
std::string storeName_;
|
||||
std::vector<long> photoId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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_EDITEVENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_EDITEVENTREQUEST_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 EditEventRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EditEventRequest();
|
||||
~EditEventRequest();
|
||||
|
||||
std::string getEventId()const;
|
||||
void setEventId(const std::string& eventId);
|
||||
std::string getBannerPhotoId()const;
|
||||
void setBannerPhotoId(const std::string& bannerPhotoId);
|
||||
std::string getWatermarkPhotoId()const;
|
||||
void setWatermarkPhotoId(const std::string& watermarkPhotoId);
|
||||
std::string getIdentity()const;
|
||||
void setIdentity(const std::string& identity);
|
||||
std::string getSplashPhotoId()const;
|
||||
void setSplashPhotoId(const std::string& splashPhotoId);
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
std::string getWeixinTitle()const;
|
||||
void setWeixinTitle(const std::string& weixinTitle);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
std::string getRemark()const;
|
||||
void setRemark(const std::string& remark);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
long getEndAt()const;
|
||||
void setEndAt(long endAt);
|
||||
long getStartAt()const;
|
||||
void setStartAt(long startAt);
|
||||
|
||||
private:
|
||||
std::string eventId_;
|
||||
std::string bannerPhotoId_;
|
||||
std::string watermarkPhotoId_;
|
||||
std::string identity_;
|
||||
std::string splashPhotoId_;
|
||||
std::string libraryId_;
|
||||
std::string weixinTitle_;
|
||||
std::string storeName_;
|
||||
std::string remark_;
|
||||
std::string title_;
|
||||
long endAt_;
|
||||
long startAt_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_EDITEVENTREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_EDITEVENTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_EDITEVENTRESULT_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 EditEventResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Event
|
||||
{
|
||||
std::string idStr1;
|
||||
std::string watermarkPhotoId;
|
||||
std::string idStr;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string bannerPhotoId;
|
||||
std::string splashPhotoId;
|
||||
long endAt;
|
||||
std::string libraryId;
|
||||
std::string weixinTitle;
|
||||
std::string state;
|
||||
long startAt;
|
||||
long ctime;
|
||||
long viewsCount;
|
||||
long id;
|
||||
std::string identity;
|
||||
};
|
||||
|
||||
|
||||
EditEventResult();
|
||||
explicit EditEventResult(const std::string &payload);
|
||||
~EditEventResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Event> getEvent()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Event> event_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_EDITEVENTRESULT_H_
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_GETALBUMSBYNAMESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_GETALBUMSBYNAMESREQUEST_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 GetAlbumsByNamesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAlbumsByNamesRequest();
|
||||
~GetAlbumsByNamesRequest();
|
||||
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
std::vector<std::string> getName()const;
|
||||
void setName(const std::vector<std::string>& name);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
|
||||
private:
|
||||
std::string libraryId_;
|
||||
std::vector<std::string> name_;
|
||||
std::string storeName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_GETALBUMSBYNAMESREQUEST_H_
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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_GETALBUMSBYNAMESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_GETALBUMSBYNAMESRESULT_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 GetAlbumsByNamesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Album
|
||||
{
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
std::string md5;
|
||||
std::string remark;
|
||||
};
|
||||
std::vector<Cover> cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetAlbumsByNamesResult();
|
||||
explicit GetAlbumsByNamesResult(const std::string &payload);
|
||||
~GetAlbumsByNamesResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Album> getAlbums()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Album> albums_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_GETALBUMSBYNAMESRESULT_H_
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string code;
|
||||
std::string downloadUrl;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_GETEVENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_GETEVENTREQUEST_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 GetEventRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetEventRequest();
|
||||
~GetEventRequest();
|
||||
|
||||
long getEventId()const;
|
||||
void setEventId(long eventId);
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
|
||||
private:
|
||||
long eventId_;
|
||||
std::string libraryId_;
|
||||
std::string storeName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_GETEVENTREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_GETEVENTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_GETEVENTRESULT_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 GetEventResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Event
|
||||
{
|
||||
std::string idStr1;
|
||||
std::string watermarkPhotoId;
|
||||
std::string idStr;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string bannerPhotoId;
|
||||
std::string splashPhotoId;
|
||||
long endAt;
|
||||
std::string libraryId;
|
||||
std::string weixinTitle;
|
||||
std::string state;
|
||||
long startAt;
|
||||
long ctime;
|
||||
long viewsCount;
|
||||
long id;
|
||||
std::string identity;
|
||||
};
|
||||
|
||||
|
||||
GetEventResult();
|
||||
explicit GetEventResult(const std::string &payload);
|
||||
~GetEventResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Event> getEvent()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Event> event_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_GETEVENTRESULT_H_
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string code;
|
||||
std::string framedPhotoUrl;
|
||||
};
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
int autoCleanDays;
|
||||
long defaultQuota;
|
||||
std::string idStr;
|
||||
long ctime;
|
||||
long mtime;
|
||||
long defaultTrashQuota;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string accessUrl;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string accessUrl;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string thumbnailUrl;
|
||||
std::string photoIdStr;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string title;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string remark;
|
||||
};
|
||||
std::vector<Cover> cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_LISTEVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_LISTEVENTSREQUEST_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 ListEventsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListEventsRequest();
|
||||
~ListEventsRequest();
|
||||
|
||||
std::string getCursor()const;
|
||||
void setCursor(const std::string& cursor);
|
||||
int getSize()const;
|
||||
void setSize(int size);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
std::string getState()const;
|
||||
void setState(const std::string& state);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
|
||||
private:
|
||||
std::string cursor_;
|
||||
int size_;
|
||||
std::string storeName_;
|
||||
std::string state_;
|
||||
std::string direction_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_LISTEVENTSREQUEST_H_
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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_LISTEVENTSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_LISTEVENTSRESULT_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 ListEventsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Event
|
||||
{
|
||||
std::string idStr1;
|
||||
std::string watermarkPhotoId;
|
||||
std::string idStr;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string bannerPhotoId;
|
||||
std::string splashPhotoId;
|
||||
long endAt;
|
||||
std::string libraryId;
|
||||
std::string weixinTitle;
|
||||
std::string state;
|
||||
long startAt;
|
||||
long ctime;
|
||||
long viewsCount;
|
||||
long id;
|
||||
std::string identity;
|
||||
};
|
||||
|
||||
|
||||
ListEventsResult();
|
||||
explicit ListEventsResult(const std::string &payload);
|
||||
~ListEventsResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Event> getEvents()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Event> events_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_LISTEVENTSRESULT_H_
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string title;
|
||||
@@ -50,6 +51,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
bool isMe;
|
||||
std::vector<Cover> cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
int photosCount;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Moment
|
||||
{
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
int photosCount;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Face
|
||||
{
|
||||
long faceId;
|
||||
std::string faceIdStr;
|
||||
std::string faceName;
|
||||
std::vector<std::string> axis;
|
||||
};
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
int autoCleanDays;
|
||||
long defaultQuota;
|
||||
std::string idStr;
|
||||
long ctime;
|
||||
long mtime;
|
||||
long id;
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string idStr;
|
||||
bool isSubTag;
|
||||
std::string parentTag;
|
||||
long id;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string title;
|
||||
@@ -49,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string remark;
|
||||
};
|
||||
std::vector<Cover> cover;
|
||||
std::string idStr;
|
||||
bool isSubTag;
|
||||
std::string parentTag;
|
||||
long id;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
|
||||
@@ -347,6 +347,42 @@ CloudPhotoClient::MoveFacePhotosOutcomeCallable CloudPhotoClient::moveFacePhotos
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::DeleteEventOutcome CloudPhotoClient::deleteEvent(const DeleteEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteEventOutcome(DeleteEventResult(outcome.result()));
|
||||
else
|
||||
return DeleteEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::deleteEventAsync(const DeleteEventRequest& request, const DeleteEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::DeleteEventOutcomeCallable CloudPhotoClient::deleteEventCallable(const DeleteEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::ListPhotosOutcome CloudPhotoClient::listPhotos(const ListPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -1067,6 +1103,42 @@ CloudPhotoClient::GetSimilarPhotosOutcomeCallable CloudPhotoClient::getSimilarPh
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::ListEventsOutcome CloudPhotoClient::listEvents(const ListEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListEventsOutcome(ListEventsResult(outcome.result()));
|
||||
else
|
||||
return ListEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::listEventsAsync(const ListEventsRequest& request, const ListEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::ListEventsOutcomeCallable CloudPhotoClient::listEventsCallable(const ListEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetVideoCoverOutcome CloudPhotoClient::getVideoCover(const GetVideoCoverRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -1139,6 +1211,42 @@ CloudPhotoClient::GetFramedPhotoUrlsOutcomeCallable CloudPhotoClient::getFramedP
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetEventOutcome CloudPhotoClient::getEvent(const GetEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetEventOutcome(GetEventResult(outcome.result()));
|
||||
else
|
||||
return GetEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::getEventAsync(const GetEventRequest& request, const GetEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetEventOutcomeCallable CloudPhotoClient::getEventCallable(const GetEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::SetMeOutcome CloudPhotoClient::setMe(const SetMeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -1571,6 +1679,42 @@ CloudPhotoClient::DeletePhotoStoreOutcomeCallable CloudPhotoClient::deletePhotoS
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::CreateEventOutcome CloudPhotoClient::createEvent(const CreateEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateEventOutcome(CreateEventResult(outcome.result()));
|
||||
else
|
||||
return CreateEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::createEventAsync(const CreateEventRequest& request, const CreateEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::CreateEventOutcomeCallable CloudPhotoClient::createEventCallable(const CreateEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetPhotoStoreOutcome CloudPhotoClient::getPhotoStore(const GetPhotoStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -1787,6 +1931,42 @@ CloudPhotoClient::MoveAlbumPhotosOutcomeCallable CloudPhotoClient::moveAlbumPhot
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::EditEventOutcome CloudPhotoClient::editEvent(const EditEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EditEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EditEventOutcome(EditEventResult(outcome.result()));
|
||||
else
|
||||
return EditEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::editEventAsync(const EditEventRequest& request, const EditEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, editEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::EditEventOutcomeCallable CloudPhotoClient::editEventCallable(const EditEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EditEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->editEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetDownloadUrlOutcome CloudPhotoClient::getDownloadUrl(const GetDownloadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -1967,6 +2147,42 @@ CloudPhotoClient::ListPhotoStoresOutcomeCallable CloudPhotoClient::listPhotoStor
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetAlbumsByNamesOutcome CloudPhotoClient::getAlbumsByNames(const GetAlbumsByNamesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAlbumsByNamesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAlbumsByNamesOutcome(GetAlbumsByNamesResult(outcome.result()));
|
||||
else
|
||||
return GetAlbumsByNamesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::getAlbumsByNamesAsync(const GetAlbumsByNamesRequest& request, const GetAlbumsByNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAlbumsByNames(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetAlbumsByNamesOutcomeCallable CloudPhotoClient::getAlbumsByNamesCallable(const GetAlbumsByNamesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAlbumsByNamesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAlbumsByNames(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetPublicAccessUrlsOutcome CloudPhotoClient::getPublicAccessUrls(const GetPublicAccessUrlsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
|
||||
@@ -46,6 +46,8 @@ void ActivatePhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void AddAlbumPhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void CreateAlbumResult::parse(const std::string &payload)
|
||||
Album albumObject;
|
||||
if(!value["Id"].isNull())
|
||||
albumObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
albumObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
albumObject.name = value["Name"].asString();
|
||||
if(!value["State"].isNull())
|
||||
@@ -64,6 +66,8 @@ void CreateAlbumResult::parse(const std::string &payload)
|
||||
Album::Cover coverObject;
|
||||
if(!value["Id"].isNull())
|
||||
coverObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
coverObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
coverObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
148
cloudphoto/src/model/CreateEventRequest.cc
Normal file
148
cloudphoto/src/model/CreateEventRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/CreateEventRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudPhoto::Model::CreateEventRequest;
|
||||
|
||||
CreateEventRequest::CreateEventRequest() :
|
||||
RpcServiceRequest("cloudphoto", "2017-07-11", "CreateEvent")
|
||||
{}
|
||||
|
||||
CreateEventRequest::~CreateEventRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEventRequest::getBannerPhotoId()const
|
||||
{
|
||||
return bannerPhotoId_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setBannerPhotoId(const std::string& bannerPhotoId)
|
||||
{
|
||||
bannerPhotoId_ = bannerPhotoId;
|
||||
setParameter("BannerPhotoId", bannerPhotoId);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getWatermarkPhotoId()const
|
||||
{
|
||||
return watermarkPhotoId_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setWatermarkPhotoId(const std::string& watermarkPhotoId)
|
||||
{
|
||||
watermarkPhotoId_ = watermarkPhotoId;
|
||||
setParameter("WatermarkPhotoId", watermarkPhotoId);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getIdentity()const
|
||||
{
|
||||
return identity_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setIdentity(const std::string& identity)
|
||||
{
|
||||
identity_ = identity;
|
||||
setParameter("Identity", identity);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getSplashPhotoId()const
|
||||
{
|
||||
return splashPhotoId_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setSplashPhotoId(const std::string& splashPhotoId)
|
||||
{
|
||||
splashPhotoId_ = splashPhotoId;
|
||||
setParameter("SplashPhotoId", splashPhotoId);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getLibraryId()const
|
||||
{
|
||||
return libraryId_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setLibraryId(const std::string& libraryId)
|
||||
{
|
||||
libraryId_ = libraryId;
|
||||
setParameter("LibraryId", libraryId);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getWeixinTitle()const
|
||||
{
|
||||
return weixinTitle_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setWeixinTitle(const std::string& weixinTitle)
|
||||
{
|
||||
weixinTitle_ = weixinTitle;
|
||||
setParameter("WeixinTitle", weixinTitle);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string CreateEventRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
long CreateEventRequest::getEndAt()const
|
||||
{
|
||||
return endAt_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setEndAt(long endAt)
|
||||
{
|
||||
endAt_ = endAt;
|
||||
setParameter("EndAt", std::to_string(endAt));
|
||||
}
|
||||
|
||||
long CreateEventRequest::getStartAt()const
|
||||
{
|
||||
return startAt_;
|
||||
}
|
||||
|
||||
void CreateEventRequest::setStartAt(long startAt)
|
||||
{
|
||||
startAt_ = startAt;
|
||||
setParameter("StartAt", std::to_string(startAt));
|
||||
}
|
||||
|
||||
109
cloudphoto/src/model/CreateEventResult.cc
Normal file
109
cloudphoto/src/model/CreateEventResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/CreateEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
CreateEventResult::CreateEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEventResult::CreateEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEventResult::~CreateEventResult()
|
||||
{}
|
||||
|
||||
void CreateEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEvent = value["Event"];
|
||||
for (auto value : allEvent)
|
||||
{
|
||||
Event eventObject;
|
||||
if(!value["Id"].isNull())
|
||||
eventObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
eventObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
eventObject.title = value["Title"].asString();
|
||||
if(!value["BannerPhotoId"].isNull())
|
||||
eventObject.bannerPhotoId = value["BannerPhotoId"].asString();
|
||||
if(!value["Identity"].isNull())
|
||||
eventObject.identity = value["Identity"].asString();
|
||||
if(!value["SplashPhotoId"].isNull())
|
||||
eventObject.splashPhotoId = value["SplashPhotoId"].asString();
|
||||
if(!value["State"].isNull())
|
||||
eventObject.state = value["State"].asString();
|
||||
if(!value["WeixinTitle"].isNull())
|
||||
eventObject.weixinTitle = value["WeixinTitle"].asString();
|
||||
if(!value["WatermarkPhotoId"].isNull())
|
||||
eventObject.watermarkPhotoId = value["WatermarkPhotoId"].asString();
|
||||
if(!value["StartAt"].isNull())
|
||||
eventObject.startAt = std::stol(value["StartAt"].asString());
|
||||
if(!value["EndAt"].isNull())
|
||||
eventObject.endAt = std::stol(value["EndAt"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
eventObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
eventObject.mtime = std::stol(value["Mtime"].asString());
|
||||
if(!value["ViewsCount"].isNull())
|
||||
eventObject.viewsCount = std::stol(value["ViewsCount"].asString());
|
||||
if(!value["LibraryId"].isNull())
|
||||
eventObject.libraryId = value["LibraryId"].asString();
|
||||
if(!value["IdStr"].isNull())
|
||||
eventObject.idStr1 = value["IdStr"].asString();
|
||||
event_.push_back(eventObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEventResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string CreateEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<CreateEventResult::Event> CreateEventResult::getEvent()const
|
||||
{
|
||||
return event_;
|
||||
}
|
||||
|
||||
std::string CreateEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void CreatePhotoResult::parse(const std::string &payload)
|
||||
Photo photoObject;
|
||||
if(!value["Id"].isNull())
|
||||
photoObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photoObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
photoObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void DeleteAlbumsResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
60
cloudphoto/src/model/DeleteEventRequest.cc
Normal file
60
cloudphoto/src/model/DeleteEventRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/DeleteEventRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudPhoto::Model::DeleteEventRequest;
|
||||
|
||||
DeleteEventRequest::DeleteEventRequest() :
|
||||
RpcServiceRequest("cloudphoto", "2017-07-11", "DeleteEvent")
|
||||
{}
|
||||
|
||||
DeleteEventRequest::~DeleteEventRequest()
|
||||
{}
|
||||
|
||||
long DeleteEventRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void DeleteEventRequest::setEventId(long eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", std::to_string(eventId));
|
||||
}
|
||||
|
||||
std::string DeleteEventRequest::getLibraryId()const
|
||||
{
|
||||
return libraryId_;
|
||||
}
|
||||
|
||||
void DeleteEventRequest::setLibraryId(const std::string& libraryId)
|
||||
{
|
||||
libraryId_ = libraryId;
|
||||
setParameter("LibraryId", libraryId);
|
||||
}
|
||||
|
||||
std::string DeleteEventRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void DeleteEventRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
66
cloudphoto/src/model/DeleteEventResult.cc
Normal file
66
cloudphoto/src/model/DeleteEventResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/DeleteEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
DeleteEventResult::DeleteEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEventResult::DeleteEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEventResult::~DeleteEventResult()
|
||||
{}
|
||||
|
||||
void DeleteEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEventResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string DeleteEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void DeleteFacesResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -36,6 +36,17 @@ void DeletePhotosRequest::setLibraryId(const std::string& libraryId)
|
||||
setParameter("LibraryId", libraryId);
|
||||
}
|
||||
|
||||
std::string DeletePhotosRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void DeletePhotosRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
std::vector<long> DeletePhotosRequest::getPhotoId()const
|
||||
{
|
||||
return photoId_;
|
||||
@@ -48,14 +59,3 @@ void DeletePhotosRequest::setPhotoId(const std::vector<long>& photoId)
|
||||
setParameter("PhotoId."+ std::to_string(i), std::to_string(photoId.at(i)));
|
||||
}
|
||||
|
||||
std::string DeletePhotosRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void DeletePhotosRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ void DeletePhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
159
cloudphoto/src/model/EditEventRequest.cc
Normal file
159
cloudphoto/src/model/EditEventRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/EditEventRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudPhoto::Model::EditEventRequest;
|
||||
|
||||
EditEventRequest::EditEventRequest() :
|
||||
RpcServiceRequest("cloudphoto", "2017-07-11", "EditEvent")
|
||||
{}
|
||||
|
||||
EditEventRequest::~EditEventRequest()
|
||||
{}
|
||||
|
||||
std::string EditEventRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getBannerPhotoId()const
|
||||
{
|
||||
return bannerPhotoId_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setBannerPhotoId(const std::string& bannerPhotoId)
|
||||
{
|
||||
bannerPhotoId_ = bannerPhotoId;
|
||||
setParameter("BannerPhotoId", bannerPhotoId);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getWatermarkPhotoId()const
|
||||
{
|
||||
return watermarkPhotoId_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setWatermarkPhotoId(const std::string& watermarkPhotoId)
|
||||
{
|
||||
watermarkPhotoId_ = watermarkPhotoId;
|
||||
setParameter("WatermarkPhotoId", watermarkPhotoId);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getIdentity()const
|
||||
{
|
||||
return identity_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setIdentity(const std::string& identity)
|
||||
{
|
||||
identity_ = identity;
|
||||
setParameter("Identity", identity);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getSplashPhotoId()const
|
||||
{
|
||||
return splashPhotoId_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setSplashPhotoId(const std::string& splashPhotoId)
|
||||
{
|
||||
splashPhotoId_ = splashPhotoId;
|
||||
setParameter("SplashPhotoId", splashPhotoId);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getLibraryId()const
|
||||
{
|
||||
return libraryId_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setLibraryId(const std::string& libraryId)
|
||||
{
|
||||
libraryId_ = libraryId;
|
||||
setParameter("LibraryId", libraryId);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getWeixinTitle()const
|
||||
{
|
||||
return weixinTitle_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setWeixinTitle(const std::string& weixinTitle)
|
||||
{
|
||||
weixinTitle_ = weixinTitle;
|
||||
setParameter("WeixinTitle", weixinTitle);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string EditEventRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
long EditEventRequest::getEndAt()const
|
||||
{
|
||||
return endAt_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setEndAt(long endAt)
|
||||
{
|
||||
endAt_ = endAt;
|
||||
setParameter("EndAt", std::to_string(endAt));
|
||||
}
|
||||
|
||||
long EditEventRequest::getStartAt()const
|
||||
{
|
||||
return startAt_;
|
||||
}
|
||||
|
||||
void EditEventRequest::setStartAt(long startAt)
|
||||
{
|
||||
startAt_ = startAt;
|
||||
setParameter("StartAt", std::to_string(startAt));
|
||||
}
|
||||
|
||||
109
cloudphoto/src/model/EditEventResult.cc
Normal file
109
cloudphoto/src/model/EditEventResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/EditEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
EditEventResult::EditEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EditEventResult::EditEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EditEventResult::~EditEventResult()
|
||||
{}
|
||||
|
||||
void EditEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEvent = value["Event"];
|
||||
for (auto value : allEvent)
|
||||
{
|
||||
Event eventObject;
|
||||
if(!value["Id"].isNull())
|
||||
eventObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
eventObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
eventObject.title = value["Title"].asString();
|
||||
if(!value["BannerPhotoId"].isNull())
|
||||
eventObject.bannerPhotoId = value["BannerPhotoId"].asString();
|
||||
if(!value["Identity"].isNull())
|
||||
eventObject.identity = value["Identity"].asString();
|
||||
if(!value["SplashPhotoId"].isNull())
|
||||
eventObject.splashPhotoId = value["SplashPhotoId"].asString();
|
||||
if(!value["State"].isNull())
|
||||
eventObject.state = value["State"].asString();
|
||||
if(!value["WeixinTitle"].isNull())
|
||||
eventObject.weixinTitle = value["WeixinTitle"].asString();
|
||||
if(!value["WatermarkPhotoId"].isNull())
|
||||
eventObject.watermarkPhotoId = value["WatermarkPhotoId"].asString();
|
||||
if(!value["StartAt"].isNull())
|
||||
eventObject.startAt = std::stol(value["StartAt"].asString());
|
||||
if(!value["EndAt"].isNull())
|
||||
eventObject.endAt = std::stol(value["EndAt"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
eventObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
eventObject.mtime = std::stol(value["Mtime"].asString());
|
||||
if(!value["ViewsCount"].isNull())
|
||||
eventObject.viewsCount = std::stol(value["ViewsCount"].asString());
|
||||
if(!value["LibraryId"].isNull())
|
||||
eventObject.libraryId = value["LibraryId"].asString();
|
||||
if(!value["IdStr"].isNull())
|
||||
eventObject.idStr1 = value["IdStr"].asString();
|
||||
event_.push_back(eventObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EditEventResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string EditEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<EditEventResult::Event> EditEventResult::getEvent()const
|
||||
{
|
||||
return event_;
|
||||
}
|
||||
|
||||
std::string EditEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void EditPhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
61
cloudphoto/src/model/GetAlbumsByNamesRequest.cc
Normal file
61
cloudphoto/src/model/GetAlbumsByNamesRequest.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/GetAlbumsByNamesRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudPhoto::Model::GetAlbumsByNamesRequest;
|
||||
|
||||
GetAlbumsByNamesRequest::GetAlbumsByNamesRequest() :
|
||||
RpcServiceRequest("cloudphoto", "2017-07-11", "GetAlbumsByNames")
|
||||
{}
|
||||
|
||||
GetAlbumsByNamesRequest::~GetAlbumsByNamesRequest()
|
||||
{}
|
||||
|
||||
std::string GetAlbumsByNamesRequest::getLibraryId()const
|
||||
{
|
||||
return libraryId_;
|
||||
}
|
||||
|
||||
void GetAlbumsByNamesRequest::setLibraryId(const std::string& libraryId)
|
||||
{
|
||||
libraryId_ = libraryId;
|
||||
setParameter("LibraryId", libraryId);
|
||||
}
|
||||
|
||||
std::vector<std::string> GetAlbumsByNamesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetAlbumsByNamesRequest::setName(const std::vector<std::string>& name)
|
||||
{
|
||||
name_ = name;
|
||||
for(int i = 0; i!= name.size(); i++)
|
||||
setParameter("Name."+ std::to_string(i), name.at(i));
|
||||
}
|
||||
|
||||
std::string GetAlbumsByNamesRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void GetAlbumsByNamesRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
121
cloudphoto/src/model/GetAlbumsByNamesResult.cc
Normal file
121
cloudphoto/src/model/GetAlbumsByNamesResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/GetAlbumsByNamesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
GetAlbumsByNamesResult::GetAlbumsByNamesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAlbumsByNamesResult::GetAlbumsByNamesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAlbumsByNamesResult::~GetAlbumsByNamesResult()
|
||||
{}
|
||||
|
||||
void GetAlbumsByNamesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlbums = value["Albums"]["Album"];
|
||||
for (auto value : allAlbums)
|
||||
{
|
||||
Album albumsObject;
|
||||
if(!value["Id"].isNull())
|
||||
albumsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
albumsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
albumsObject.name = value["Name"].asString();
|
||||
if(!value["State"].isNull())
|
||||
albumsObject.state = value["State"].asString();
|
||||
if(!value["PhotosCount"].isNull())
|
||||
albumsObject.photosCount = std::stol(value["PhotosCount"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
albumsObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
albumsObject.mtime = std::stol(value["Mtime"].asString());
|
||||
auto allCover = value["Cover"];
|
||||
for (auto value : allCover)
|
||||
{
|
||||
Album::Cover coverObject;
|
||||
if(!value["Id"].isNull())
|
||||
coverObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
coverObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
coverObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
coverObject.fileId = value["FileId"].asString();
|
||||
if(!value["State"].isNull())
|
||||
coverObject.state = value["State"].asString();
|
||||
if(!value["Md5"].isNull())
|
||||
coverObject.md5 = value["Md5"].asString();
|
||||
if(!value["IsVideo"].isNull())
|
||||
coverObject.isVideo = value["IsVideo"].asString() == "true";
|
||||
if(!value["Remark"].isNull())
|
||||
coverObject.remark = value["Remark"].asString();
|
||||
if(!value["Width"].isNull())
|
||||
coverObject.width = std::stol(value["Width"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
coverObject.height = std::stol(value["Height"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
coverObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
coverObject.mtime = std::stol(value["Mtime"].asString());
|
||||
albumsObject.cover.push_back(coverObject);
|
||||
}
|
||||
albums_.push_back(albumsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAlbumsByNamesResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string GetAlbumsByNamesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetAlbumsByNamesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::vector<GetAlbumsByNamesResult::Album> GetAlbumsByNamesResult::getAlbums()const
|
||||
{
|
||||
return albums_;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ void GetDownloadUrlsResult::parse(const std::string &payload)
|
||||
resultsObject.message = value["Message"].asString();
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["DownloadUrl"].isNull())
|
||||
resultsObject.downloadUrl = value["DownloadUrl"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
60
cloudphoto/src/model/GetEventRequest.cc
Normal file
60
cloudphoto/src/model/GetEventRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/GetEventRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudPhoto::Model::GetEventRequest;
|
||||
|
||||
GetEventRequest::GetEventRequest() :
|
||||
RpcServiceRequest("cloudphoto", "2017-07-11", "GetEvent")
|
||||
{}
|
||||
|
||||
GetEventRequest::~GetEventRequest()
|
||||
{}
|
||||
|
||||
long GetEventRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void GetEventRequest::setEventId(long eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", std::to_string(eventId));
|
||||
}
|
||||
|
||||
std::string GetEventRequest::getLibraryId()const
|
||||
{
|
||||
return libraryId_;
|
||||
}
|
||||
|
||||
void GetEventRequest::setLibraryId(const std::string& libraryId)
|
||||
{
|
||||
libraryId_ = libraryId;
|
||||
setParameter("LibraryId", libraryId);
|
||||
}
|
||||
|
||||
std::string GetEventRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void GetEventRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
109
cloudphoto/src/model/GetEventResult.cc
Normal file
109
cloudphoto/src/model/GetEventResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/GetEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
GetEventResult::GetEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEventResult::GetEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEventResult::~GetEventResult()
|
||||
{}
|
||||
|
||||
void GetEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEvent = value["Event"];
|
||||
for (auto value : allEvent)
|
||||
{
|
||||
Event eventObject;
|
||||
if(!value["Id"].isNull())
|
||||
eventObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
eventObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
eventObject.title = value["Title"].asString();
|
||||
if(!value["BannerPhotoId"].isNull())
|
||||
eventObject.bannerPhotoId = value["BannerPhotoId"].asString();
|
||||
if(!value["Identity"].isNull())
|
||||
eventObject.identity = value["Identity"].asString();
|
||||
if(!value["SplashPhotoId"].isNull())
|
||||
eventObject.splashPhotoId = value["SplashPhotoId"].asString();
|
||||
if(!value["State"].isNull())
|
||||
eventObject.state = value["State"].asString();
|
||||
if(!value["WeixinTitle"].isNull())
|
||||
eventObject.weixinTitle = value["WeixinTitle"].asString();
|
||||
if(!value["WatermarkPhotoId"].isNull())
|
||||
eventObject.watermarkPhotoId = value["WatermarkPhotoId"].asString();
|
||||
if(!value["StartAt"].isNull())
|
||||
eventObject.startAt = std::stol(value["StartAt"].asString());
|
||||
if(!value["EndAt"].isNull())
|
||||
eventObject.endAt = std::stol(value["EndAt"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
eventObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
eventObject.mtime = std::stol(value["Mtime"].asString());
|
||||
if(!value["ViewsCount"].isNull())
|
||||
eventObject.viewsCount = std::stol(value["ViewsCount"].asString());
|
||||
if(!value["LibraryId"].isNull())
|
||||
eventObject.libraryId = value["LibraryId"].asString();
|
||||
if(!value["IdStr"].isNull())
|
||||
eventObject.idStr1 = value["IdStr"].asString();
|
||||
event_.push_back(eventObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetEventResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string GetEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetEventResult::Event> GetEventResult::getEvent()const
|
||||
{
|
||||
return event_;
|
||||
}
|
||||
|
||||
std::string GetEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ void GetFramedPhotoUrlsResult::parse(const std::string &payload)
|
||||
resultsObject.message = value["Message"].asString();
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["FramedPhotoUrl"].isNull())
|
||||
resultsObject.framedPhotoUrl = value["FramedPhotoUrl"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -46,6 +46,8 @@ void GetPhotoStoreResult::parse(const std::string &payload)
|
||||
PhotoStore photoStoreObject;
|
||||
if(!value["Id"].isNull())
|
||||
photoStoreObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photoStoreObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
photoStoreObject.name = value["Name"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void GetPhotosByMd5sResult::parse(const std::string &payload)
|
||||
Photo photosObject;
|
||||
if(!value["Id"].isNull())
|
||||
photosObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photosObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
photosObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void GetPhotosResult::parse(const std::string &payload)
|
||||
Photo photosObject;
|
||||
if(!value["Id"].isNull())
|
||||
photosObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photosObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
photosObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
@@ -50,6 +50,8 @@ void GetPrivateAccessUrlsResult::parse(const std::string &payload)
|
||||
resultsObject.message = value["Message"].asString();
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["AccessUrl"].isNull())
|
||||
resultsObject.accessUrl = value["AccessUrl"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -50,6 +50,8 @@ void GetPublicAccessUrlsResult::parse(const std::string &payload)
|
||||
resultsObject.message = value["Message"].asString();
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["AccessUrl"].isNull())
|
||||
resultsObject.accessUrl = value["AccessUrl"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -46,6 +46,8 @@ void GetSimilarPhotosResult::parse(const std::string &payload)
|
||||
Photo photosObject;
|
||||
if(!value["Id"].isNull())
|
||||
photosObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photosObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
photosObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
@@ -50,6 +50,8 @@ void GetThumbnailsResult::parse(const std::string &payload)
|
||||
resultsObject.message = value["Message"].asString();
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["ThumbnailUrl"].isNull())
|
||||
resultsObject.thumbnailUrl = value["ThumbnailUrl"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -46,6 +46,8 @@ void InactivatePhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
resultsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListAlbumPhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["State"].isNull())
|
||||
resultsObject.state = value["State"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListAlbumsResult::parse(const std::string &payload)
|
||||
Album albumsObject;
|
||||
if(!value["Id"].isNull())
|
||||
albumsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
albumsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
albumsObject.name = value["Name"].asString();
|
||||
if(!value["State"].isNull())
|
||||
@@ -62,6 +64,8 @@ void ListAlbumsResult::parse(const std::string &payload)
|
||||
Album::Cover coverObject;
|
||||
if(!value["Id"].isNull())
|
||||
coverObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
coverObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
coverObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
82
cloudphoto/src/model/ListEventsRequest.cc
Normal file
82
cloudphoto/src/model/ListEventsRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/ListEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::CloudPhoto::Model::ListEventsRequest;
|
||||
|
||||
ListEventsRequest::ListEventsRequest() :
|
||||
RpcServiceRequest("cloudphoto", "2017-07-11", "ListEvents")
|
||||
{}
|
||||
|
||||
ListEventsRequest::~ListEventsRequest()
|
||||
{}
|
||||
|
||||
std::string ListEventsRequest::getCursor()const
|
||||
{
|
||||
return cursor_;
|
||||
}
|
||||
|
||||
void ListEventsRequest::setCursor(const std::string& cursor)
|
||||
{
|
||||
cursor_ = cursor;
|
||||
setParameter("Cursor", cursor);
|
||||
}
|
||||
|
||||
int ListEventsRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListEventsRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListEventsRequest::getStoreName()const
|
||||
{
|
||||
return storeName_;
|
||||
}
|
||||
|
||||
void ListEventsRequest::setStoreName(const std::string& storeName)
|
||||
{
|
||||
storeName_ = storeName;
|
||||
setParameter("StoreName", storeName);
|
||||
}
|
||||
|
||||
std::string ListEventsRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void ListEventsRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string ListEventsRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void ListEventsRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
123
cloudphoto/src/model/ListEventsResult.cc
Normal file
123
cloudphoto/src/model/ListEventsResult.cc
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudphoto/model/ListEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
ListEventsResult::ListEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListEventsResult::ListEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListEventsResult::~ListEventsResult()
|
||||
{}
|
||||
|
||||
void ListEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEvents = value["Events"]["Event"];
|
||||
for (auto value : allEvents)
|
||||
{
|
||||
Event eventsObject;
|
||||
if(!value["Id"].isNull())
|
||||
eventsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
eventsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
eventsObject.title = value["Title"].asString();
|
||||
if(!value["BannerPhotoId"].isNull())
|
||||
eventsObject.bannerPhotoId = value["BannerPhotoId"].asString();
|
||||
if(!value["Identity"].isNull())
|
||||
eventsObject.identity = value["Identity"].asString();
|
||||
if(!value["SplashPhotoId"].isNull())
|
||||
eventsObject.splashPhotoId = value["SplashPhotoId"].asString();
|
||||
if(!value["State"].isNull())
|
||||
eventsObject.state = value["State"].asString();
|
||||
if(!value["WeixinTitle"].isNull())
|
||||
eventsObject.weixinTitle = value["WeixinTitle"].asString();
|
||||
if(!value["WatermarkPhotoId"].isNull())
|
||||
eventsObject.watermarkPhotoId = value["WatermarkPhotoId"].asString();
|
||||
if(!value["StartAt"].isNull())
|
||||
eventsObject.startAt = std::stol(value["StartAt"].asString());
|
||||
if(!value["EndAt"].isNull())
|
||||
eventsObject.endAt = std::stol(value["EndAt"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
eventsObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
eventsObject.mtime = std::stol(value["Mtime"].asString());
|
||||
if(!value["ViewsCount"].isNull())
|
||||
eventsObject.viewsCount = std::stol(value["ViewsCount"].asString());
|
||||
if(!value["LibraryId"].isNull())
|
||||
eventsObject.libraryId = value["LibraryId"].asString();
|
||||
if(!value["IdStr"].isNull())
|
||||
eventsObject.idStr1 = value["IdStr"].asString();
|
||||
events_.push_back(eventsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["NextCursor"].isNull())
|
||||
nextCursor_ = value["NextCursor"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListEventsResult::getNextCursor()const
|
||||
{
|
||||
return nextCursor_;
|
||||
}
|
||||
|
||||
int ListEventsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListEventsResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string ListEventsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListEventsResult::Event> ListEventsResult::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
std::string ListEventsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListFacePhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["State"].isNull())
|
||||
resultsObject.state = value["State"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListFacesResult::parse(const std::string &payload)
|
||||
Face facesObject;
|
||||
if(!value["Id"].isNull())
|
||||
facesObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
facesObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
facesObject.name = value["Name"].asString();
|
||||
if(!value["PhotosCount"].isNull())
|
||||
@@ -64,6 +66,8 @@ void ListFacesResult::parse(const std::string &payload)
|
||||
Face::Cover coverObject;
|
||||
if(!value["Id"].isNull())
|
||||
coverObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
coverObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
coverObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListMomentPhotosResult::parse(const std::string &payload)
|
||||
Result resultsObject;
|
||||
if(!value["PhotoId"].isNull())
|
||||
resultsObject.photoId = std::stol(value["PhotoId"].asString());
|
||||
if(!value["PhotoIdStr"].isNull())
|
||||
resultsObject.photoIdStr = value["PhotoIdStr"].asString();
|
||||
if(!value["State"].isNull())
|
||||
resultsObject.state = value["State"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListMomentsResult::parse(const std::string &payload)
|
||||
Moment momentsObject;
|
||||
if(!value["Id"].isNull())
|
||||
momentsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
momentsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["LocationName"].isNull())
|
||||
momentsObject.locationName = value["LocationName"].asString();
|
||||
if(!value["PhotosCount"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListPhotoFacesResult::parse(const std::string &payload)
|
||||
Face facesObject;
|
||||
if(!value["FaceId"].isNull())
|
||||
facesObject.faceId = std::stol(value["FaceId"].asString());
|
||||
if(!value["FaceIdStr"].isNull())
|
||||
facesObject.faceIdStr = value["FaceIdStr"].asString();
|
||||
if(!value["FaceName"].isNull())
|
||||
facesObject.faceName = value["FaceName"].asString();
|
||||
auto allAxis = value["Axis"]["Axis"];
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListPhotoStoresResult::parse(const std::string &payload)
|
||||
PhotoStore photoStoresObject;
|
||||
if(!value["Id"].isNull())
|
||||
photoStoresObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photoStoresObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
photoStoresObject.name = value["Name"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListPhotoTagsResult::parse(const std::string &payload)
|
||||
Tag tagsObject;
|
||||
if(!value["Id"].isNull())
|
||||
tagsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
tagsObject.idStr = value["IdStr"].asString();
|
||||
if(!value["IsSubTag"].isNull())
|
||||
tagsObject.isSubTag = value["IsSubTag"].asString() == "true";
|
||||
if(!value["Name"].isNull())
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListPhotosResult::parse(const std::string &payload)
|
||||
Photo photosObject;
|
||||
if(!value["Id"].isNull())
|
||||
photosObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["IdStr"].isNull())
|
||||
photosObject.idStr = value["IdStr"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
photosObject.title = value["Title"].asString();
|
||||
if(!value["FileId"].isNull())
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user