Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74bebe2a77 | ||
|
|
d27410f202 | ||
|
|
3b1093ffe3 | ||
|
|
f2c01c7abe | ||
|
|
e34557650b | ||
|
|
c3ff60fd73 | ||
|
|
4caef74421 | ||
|
|
0dd42f38c4 | ||
|
|
b61a72e58e | ||
|
|
b11cedef5e | ||
|
|
e19f2fa847 | ||
|
|
4a15d5788a | ||
|
|
85da4ff587 | ||
|
|
7721032f82 | ||
|
|
2d1a1c0e06 | ||
|
|
7bf9e855c8 | ||
|
|
b87f210c4c | ||
|
|
24a354cffd | ||
|
|
7be1f34dae | ||
|
|
89523ed659 | ||
|
|
6b7af1732d | ||
|
|
f725320265 | ||
|
|
728ece9cd1 | ||
|
|
dd93fdf1c5 | ||
|
|
78ee1b30bd |
11
3rdparty/CMakeLists.txt
vendored
11
3rdparty/CMakeLists.txt
vendored
@@ -16,7 +16,8 @@
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Add(jsoncpp
|
||||
URL https://github.com/open-source-parsers/jsoncpp/archive/0.10.5.tar.gz
|
||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp-0.10.5.tar.gz
|
||||
URL_HASH MD5=db146bac5a126ded9bd728ab7b61ed6b
|
||||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
-DJSONCPP_WITH_TESTS=OFF
|
||||
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
|
||||
@@ -28,7 +29,8 @@ if(CMAKE_HOST_WIN32)
|
||||
)
|
||||
|
||||
ExternalProject_Add(curl
|
||||
URL https://github.com/curl/curl/releases/download/curl-7_55_1/curl-7.55.1.tar.gz
|
||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/curl-7.55.1.tar.gz
|
||||
URL_HASH MD5=3b832160a8c9c40075fd71191960307c
|
||||
CMAKE_ARGS -DBUILD_CURL_EXE=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
@@ -40,10 +42,11 @@ ExternalProject_Add(curl
|
||||
endif()
|
||||
|
||||
ExternalProject_Add(catch
|
||||
URL https://github.com/catchorg/Catch2/releases/download/v2.0.1/catch.hpp
|
||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/catch-2.0.1.hpp
|
||||
URL_HASH MD5=9b3d2cb5c0f9532cddfbbfd0a622f0af
|
||||
DOWNLOAD_NO_EXTRACT 1
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND ""
|
||||
INSTALL_COMMAND
|
||||
${CMAKE_COMMAND} -E copy_if_different <DOWNLOADED_FILE> <INSTALL_DIR>
|
||||
${CMAKE_COMMAND} -E copy_if_different <DOWNLOADED_FILE> <INSTALL_DIR>/catch.hpp
|
||||
)
|
||||
|
||||
12012
3rdparty/catch-2.0.1.hpp
vendored
Normal file
12012
3rdparty/catch-2.0.1.hpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
3rdparty/curl-7.55.1.tar.gz
vendored
Normal file
BIN
3rdparty/curl-7.55.1.tar.gz
vendored
Normal file
Binary file not shown.
BIN
3rdparty/jsoncpp-0.10.5.tar.gz
vendored
Normal file
BIN
3rdparty/jsoncpp-0.10.5.tar.gz
vendored
Normal file
Binary file not shown.
71
CHANGELOG
71
CHANGELOG
@@ -1,3 +1,74 @@
|
||||
2018-03-27 Version: 1.3.5
|
||||
1, publish Project API.
|
||||
2, publish Service API.
|
||||
3, publish Service order API.
|
||||
4, publish Credential API.
|
||||
5, publish CAS API.
|
||||
|
||||
2018-03-27 Version: 1.3.4
|
||||
1, add interface FetchLibraries
|
||||
|
||||
2018-03-23 Version: 1.3.3
|
||||
1, interface DescribeInstanceTypes output InstancePpsRx InstancePpsTx
|
||||
|
||||
2018-03-23 Version: 1.3.2
|
||||
1, interface DescribeInstanceTypes output InstancePpsRx InstancePpsTx
|
||||
|
||||
2018-03-23 Version: 1.3.1
|
||||
1, ModifyPrepayInstanceSpec support migrateAcrossZone.
|
||||
|
||||
2018-03-23 Version: 1.3.0
|
||||
1, Add 'QueryDevicesByAccount' and 'QueryDevicesByAlias' Api.
|
||||
2, Remove 'QueryPushDetail' Api.
|
||||
|
||||
2018-03-20 Version: 1.2.16
|
||||
1, add FetchAlbumTagPhotos
|
||||
2, CreatePhoto add optional param TakenAt
|
||||
|
||||
2018-03-16 Version: 1.2.15
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.14
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.13
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.12
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.11
|
||||
1, Synchronize to the latest api list
|
||||
|
||||
2018-03-15 Version: 1.2.10
|
||||
1, Add QueryCustomerSaleInfo API.
|
||||
|
||||
2018-03-14 Version: 1.2.9
|
||||
1, Support predefine endpoints parse
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -64,4 +64,6 @@ add_subdirectory(aegis)
|
||||
add_subdirectory(ehpc)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ccc)
|
||||
add_subdirectory(teslamaxcompute)
|
||||
add_subdirectory(teslamaxcompute)
|
||||
add_subdirectory(push)
|
||||
add_subdirectory(csb)
|
||||
@@ -230,7 +230,6 @@ namespace AlibabaCloud
|
||||
QueryCrackEventOutcomeCallable queryCrackEventCallable(const Model::QueryCrackEventRequest& request) const;
|
||||
|
||||
private:
|
||||
virtual EndpointOutcome endpoint()const override;
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Aegis;
|
||||
using namespace AlibabaCloud::Aegis::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "aegis";
|
||||
}
|
||||
|
||||
AegisClient::AegisClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "vipaegis");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis");
|
||||
}
|
||||
|
||||
AegisClient::AegisClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "vipaegis");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis");
|
||||
}
|
||||
|
||||
AegisClient::AegisClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "vipaegis");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "vipaegis");
|
||||
}
|
||||
|
||||
AegisClient::~AegisClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome AegisClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
AegisClient::GetEntityListOutcome AegisClient::getEntityList(const GetEntityListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetEntityListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -97,7 +89,7 @@ AegisClient::GetEntityListOutcomeCallable AegisClient::getEntityListCallable(con
|
||||
|
||||
AegisClient::GetStatisticsByUuidOutcome AegisClient::getStatisticsByUuid(const GetStatisticsByUuidRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatisticsByUuidOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -133,7 +125,7 @@ AegisClient::GetStatisticsByUuidOutcomeCallable AegisClient::getStatisticsByUuid
|
||||
|
||||
AegisClient::GetStatisticsOutcome AegisClient::getStatistics(const GetStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -169,7 +161,7 @@ AegisClient::GetStatisticsOutcomeCallable AegisClient::getStatisticsCallable(con
|
||||
|
||||
AegisClient::DescribeVulDetailsOutcome AegisClient::describeVulDetails(const DescribeVulDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -205,7 +197,7 @@ AegisClient::DescribeVulDetailsOutcomeCallable AegisClient::describeVulDetailsCa
|
||||
|
||||
AegisClient::DeleteStrategyOutcome AegisClient::deleteStrategy(const DeleteStrategyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteStrategyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -241,7 +233,7 @@ AegisClient::DeleteStrategyOutcomeCallable AegisClient::deleteStrategyCallable(c
|
||||
|
||||
AegisClient::GetCrackStatisticsOutcome AegisClient::getCrackStatistics(const GetCrackStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetCrackStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -277,7 +269,7 @@ AegisClient::GetCrackStatisticsOutcomeCallable AegisClient::getCrackStatisticsCa
|
||||
|
||||
AegisClient::DescribeWarningOutcome AegisClient::describeWarning(const DescribeWarningRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWarningOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -313,7 +305,7 @@ AegisClient::DescribeWarningOutcomeCallable AegisClient::describeWarningCallable
|
||||
|
||||
AegisClient::ReleaseInstanceOutcome AegisClient::releaseInstance(const ReleaseInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReleaseInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -349,7 +341,7 @@ AegisClient::ReleaseInstanceOutcomeCallable AegisClient::releaseInstanceCallable
|
||||
|
||||
AegisClient::DescribeSuspiciousEventsOutcome AegisClient::describeSuspiciousEvents(const DescribeSuspiciousEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSuspiciousEventsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -385,7 +377,7 @@ AegisClient::DescribeSuspiciousEventsOutcomeCallable AegisClient::describeSuspic
|
||||
|
||||
AegisClient::CreateInstanceOutcome AegisClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -421,7 +413,7 @@ AegisClient::CreateInstanceOutcomeCallable AegisClient::createInstanceCallable(c
|
||||
|
||||
AegisClient::DescribeVulListOutcome AegisClient::describeVulList(const DescribeVulListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -457,7 +449,7 @@ AegisClient::DescribeVulListOutcomeCallable AegisClient::describeVulListCallable
|
||||
|
||||
AegisClient::UpgradeInstanceOutcome AegisClient::upgradeInstance(const UpgradeInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpgradeInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -493,7 +485,7 @@ AegisClient::UpgradeInstanceOutcomeCallable AegisClient::upgradeInstanceCallable
|
||||
|
||||
AegisClient::RenewInstanceOutcome AegisClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -529,7 +521,7 @@ AegisClient::RenewInstanceOutcomeCallable AegisClient::renewInstanceCallable(con
|
||||
|
||||
AegisClient::DescribeStrategyTargetOutcome AegisClient::describeStrategyTarget(const DescribeStrategyTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStrategyTargetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -565,7 +557,7 @@ AegisClient::DescribeStrategyTargetOutcomeCallable AegisClient::describeStrategy
|
||||
|
||||
AegisClient::QueryLoginEventOutcome AegisClient::queryLoginEvent(const QueryLoginEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryLoginEventOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -601,7 +593,7 @@ AegisClient::QueryLoginEventOutcomeCallable AegisClient::queryLoginEventCallable
|
||||
|
||||
AegisClient::GetAccountStatisticsOutcome AegisClient::getAccountStatistics(const GetAccountStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAccountStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -637,7 +629,7 @@ AegisClient::GetAccountStatisticsOutcomeCallable AegisClient::getAccountStatisti
|
||||
|
||||
AegisClient::ModifyStrategyOutcome AegisClient::modifyStrategy(const ModifyStrategyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyStrategyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -673,7 +665,7 @@ AegisClient::ModifyStrategyOutcomeCallable AegisClient::modifyStrategyCallable(c
|
||||
|
||||
AegisClient::ModifyStrategyTargetOutcome AegisClient::modifyStrategyTarget(const ModifyStrategyTargetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyStrategyTargetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -709,7 +701,7 @@ AegisClient::ModifyStrategyTargetOutcomeCallable AegisClient::modifyStrategyTarg
|
||||
|
||||
AegisClient::ModifyBatchIgnoreVulOutcome AegisClient::modifyBatchIgnoreVul(const ModifyBatchIgnoreVulRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyBatchIgnoreVulOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -745,7 +737,7 @@ AegisClient::ModifyBatchIgnoreVulOutcomeCallable AegisClient::modifyBatchIgnoreV
|
||||
|
||||
AegisClient::DescribeWebshellOutcome AegisClient::describeWebshell(const DescribeWebshellRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWebshellOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -781,7 +773,7 @@ AegisClient::DescribeWebshellOutcomeCallable AegisClient::describeWebshellCallab
|
||||
|
||||
AegisClient::DescribeStratetyDetailOutcome AegisClient::describeStratetyDetail(const DescribeStratetyDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStratetyDetailOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -817,7 +809,7 @@ AegisClient::DescribeStratetyDetailOutcomeCallable AegisClient::describeStratety
|
||||
|
||||
AegisClient::DescribeStratetyOutcome AegisClient::describeStratety(const DescribeStratetyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStratetyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -853,7 +845,7 @@ AegisClient::DescribeStratetyOutcomeCallable AegisClient::describeStratetyCallab
|
||||
|
||||
AegisClient::DescribeLoginLogsOutcome AegisClient::describeLoginLogs(const DescribeLoginLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoginLogsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -889,7 +881,7 @@ AegisClient::DescribeLoginLogsOutcomeCallable AegisClient::describeLoginLogsCall
|
||||
|
||||
AegisClient::QueryCrackEventOutcome AegisClient::queryCrackEvent(const QueryCrackEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCrackEventOutcome(endpointOutcome.error());
|
||||
|
||||
|
||||
@@ -134,7 +134,6 @@ namespace AlibabaCloud
|
||||
AnalyzeNvcOutcomeCallable analyzeNvcCallable(const Model::AnalyzeNvcRequest& request) const;
|
||||
|
||||
private:
|
||||
virtual EndpointOutcome endpoint()const override;
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Afs;
|
||||
using namespace AlibabaCloud::Afs::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "afs";
|
||||
}
|
||||
|
||||
AfsClient::AfsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AfsClient::AfsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AfsClient::AfsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AfsClient::~AfsClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome AfsClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
AfsClient::DescribeEarlyWarningOutcome AfsClient::describeEarlyWarning(const DescribeEarlyWarningRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEarlyWarningOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -94,10 +86,10 @@ AfsClient::DescribeEarlyWarningOutcomeCallable AfsClient::describeEarlyWarningCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::SetEarlyWarningOutcome AfsClient::setEarlyWarning(const SetEarlyWarningRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetEarlyWarningOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -130,10 +122,10 @@ AfsClient::SetEarlyWarningOutcomeCallable AfsClient::setEarlyWarningCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaIpCityOutcome AfsClient::describeCaptchaIpCity(const DescribeCaptchaIpCityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaIpCityOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -166,10 +158,10 @@ AfsClient::DescribeCaptchaIpCityOutcomeCallable AfsClient::describeCaptchaIpCity
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::ConfigurationStyleOutcome AfsClient::configurationStyle(const ConfigurationStyleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConfigurationStyleOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -202,10 +194,10 @@ AfsClient::ConfigurationStyleOutcomeCallable AfsClient::configurationStyleCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaMinOutcome AfsClient::describeCaptchaMin(const DescribeCaptchaMinRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaMinOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -238,10 +230,10 @@ AfsClient::DescribeCaptchaMinOutcomeCallable AfsClient::describeCaptchaMinCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaRiskOutcome AfsClient::describeCaptchaRisk(const DescribeCaptchaRiskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaRiskOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -274,10 +266,10 @@ AfsClient::DescribeCaptchaRiskOutcomeCallable AfsClient::describeCaptchaRiskCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::AuthenticateSigOutcome AfsClient::authenticateSig(const AuthenticateSigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AuthenticateSigOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -310,10 +302,10 @@ AfsClient::AuthenticateSigOutcomeCallable AfsClient::authenticateSigCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeConfigNameOutcome AfsClient::describeConfigName(const DescribeConfigNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigNameOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -346,10 +338,10 @@ AfsClient::DescribeConfigNameOutcomeCallable AfsClient::describeConfigNameCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribeCaptchaDayOutcome AfsClient::describeCaptchaDay(const DescribeCaptchaDayRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCaptchaDayOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -382,10 +374,10 @@ AfsClient::DescribeCaptchaDayOutcomeCallable AfsClient::describeCaptchaDayCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::DescribePersonMachineListOutcome AfsClient::describePersonMachineList(const DescribePersonMachineListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePersonMachineListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -418,10 +410,10 @@ AfsClient::DescribePersonMachineListOutcomeCallable AfsClient::describePersonMac
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::CreateConfigurationOutcome AfsClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -454,10 +446,10 @@ AfsClient::CreateConfigurationOutcomeCallable AfsClient::createConfigurationCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
AfsClient::AnalyzeNvcOutcome AfsClient::analyzeNvc(const AnalyzeNvcRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AnalyzeNvcOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -490,4 +482,4 @@ AfsClient::AnalyzeNvcOutcomeCallable AfsClient::analyzeNvcCallable(const Analyze
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -198,7 +198,6 @@ namespace AlibabaCloud
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
|
||||
private:
|
||||
virtual EndpointOutcome endpoint()const override;
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::CCC;
|
||||
using namespace AlibabaCloud::CCC::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "CCC";
|
||||
}
|
||||
|
||||
CCCClient::CCCClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "CCC");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
|
||||
}
|
||||
|
||||
CCCClient::CCCClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "CCC");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
|
||||
}
|
||||
|
||||
CCCClient::CCCClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "CCC");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "CCC");
|
||||
}
|
||||
|
||||
CCCClient::~CCCClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome CCCClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
CCCClient::ListRecordingsByContactIdOutcome CCCClient::listRecordingsByContactId(const ListRecordingsByContactIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRecordingsByContactIdOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -94,10 +86,10 @@ CCCClient::ListRecordingsByContactIdOutcomeCallable CCCClient::listRecordingsByC
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListUsersOfSkillGroupOutcome CCCClient::listUsersOfSkillGroup(const ListUsersOfSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUsersOfSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -130,10 +122,10 @@ CCCClient::ListUsersOfSkillGroupOutcomeCallable CCCClient::listUsersOfSkillGroup
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::DeleteSkillGroupOutcome CCCClient::deleteSkillGroup(const DeleteSkillGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSkillGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -166,10 +158,10 @@ CCCClient::DeleteSkillGroupOutcomeCallable CCCClient::deleteSkillGroupCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ModifyPhoneNumberOutcome CCCClient::modifyPhoneNumber(const ModifyPhoneNumberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyPhoneNumberOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -202,10 +194,10 @@ CCCClient::ModifyPhoneNumberOutcomeCallable CCCClient::modifyPhoneNumberCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListUsersOutcome CCCClient::listUsers(const ListUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUsersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -238,10 +230,10 @@ CCCClient::ListUsersOutcomeCallable CCCClient::listUsersCallable(const ListUsers
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListSkillGroupsOutcome CCCClient::listSkillGroups(const ListSkillGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSkillGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -274,10 +266,10 @@ CCCClient::ListSkillGroupsOutcomeCallable CCCClient::listSkillGroupsCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListSkillGroupsOfUserOutcome CCCClient::listSkillGroupsOfUser(const ListSkillGroupsOfUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSkillGroupsOfUserOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -310,10 +302,10 @@ CCCClient::ListSkillGroupsOfUserOutcomeCallable CCCClient::listSkillGroupsOfUser
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::RemovePhoneNumberOutcome CCCClient::removePhoneNumber(const RemovePhoneNumberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemovePhoneNumberOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -346,10 +338,10 @@ CCCClient::RemovePhoneNumberOutcomeCallable CCCClient::removePhoneNumberCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListCallDetailRecordsOutcome CCCClient::listCallDetailRecords(const ListCallDetailRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListCallDetailRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -382,10 +374,10 @@ CCCClient::ListCallDetailRecordsOutcomeCallable CCCClient::listCallDetailRecords
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::AddPhoneNumberOutcome CCCClient::addPhoneNumber(const AddPhoneNumberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddPhoneNumberOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -418,10 +410,10 @@ CCCClient::AddPhoneNumberOutcomeCallable CCCClient::addPhoneNumberCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListRecordingsOutcome CCCClient::listRecordings(const ListRecordingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRecordingsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -454,10 +446,10 @@ CCCClient::ListRecordingsOutcomeCallable CCCClient::listRecordingsCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::GetConfigOutcome CCCClient::getConfig(const GetConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetConfigOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -490,10 +482,10 @@ CCCClient::GetConfigOutcomeCallable CCCClient::getConfigCallable(const GetConfig
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::DownloadRecordingOutcome CCCClient::downloadRecording(const DownloadRecordingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DownloadRecordingOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -526,10 +518,10 @@ CCCClient::DownloadRecordingOutcomeCallable CCCClient::downloadRecordingCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListPhoneNumbersOutcome CCCClient::listPhoneNumbers(const ListPhoneNumbersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPhoneNumbersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -562,10 +554,10 @@ CCCClient::ListPhoneNumbersOutcomeCallable CCCClient::listPhoneNumbersCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::RefreshTokenOutcome CCCClient::refreshToken(const RefreshTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RefreshTokenOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -598,10 +590,10 @@ CCCClient::RefreshTokenOutcomeCallable CCCClient::refreshTokenCallable(const Ref
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::RequestLoginInfoOutcome CCCClient::requestLoginInfo(const RequestLoginInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RequestLoginInfoOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -634,10 +626,10 @@ CCCClient::RequestLoginInfoOutcomeCallable CCCClient::requestLoginInfoCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::GetServiceExtensionsOutcome CCCClient::getServiceExtensions(const GetServiceExtensionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServiceExtensionsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -670,10 +662,10 @@ CCCClient::GetServiceExtensionsOutcomeCallable CCCClient::getServiceExtensionsCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListContactFlowsOutcome CCCClient::listContactFlows(const ListContactFlowsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListContactFlowsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -706,10 +698,10 @@ CCCClient::ListContactFlowsOutcomeCallable CCCClient::listContactFlowsCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::ListRolesOutcome CCCClient::listRoles(const ListRolesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRolesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -742,10 +734,10 @@ CCCClient::ListRolesOutcomeCallable CCCClient::listRolesCallable(const ListRoles
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CCCClient::GetUserOutcome CCCClient::getUser(const GetUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -778,4 +770,4 @@ CCCClient::GetUserOutcomeCallable CCCClient::getUserCallable(const GetUserReques
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
@@ -49,6 +51,10 @@ set(cloudphoto_public_header_model
|
||||
include/alibabacloud/cloudphoto/model/MergeFacesResult.h
|
||||
include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h
|
||||
include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h
|
||||
include/alibabacloud/cloudphoto/model/FetchLibrariesRequest.h
|
||||
include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h
|
||||
include/alibabacloud/cloudphoto/model/FetchAlbumTagPhotosRequest.h
|
||||
include/alibabacloud/cloudphoto/model/FetchAlbumTagPhotosResult.h
|
||||
include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h
|
||||
include/alibabacloud/cloudphoto/model/CreateTransactionResult.h
|
||||
include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h
|
||||
@@ -77,10 +83,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 +115,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 +129,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 +141,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 +176,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
|
||||
@@ -172,6 +190,10 @@ set(cloudphoto_src
|
||||
src/model/MergeFacesResult.cc
|
||||
src/model/GetPhotosByMd5sRequest.cc
|
||||
src/model/GetPhotosByMd5sResult.cc
|
||||
src/model/FetchLibrariesRequest.cc
|
||||
src/model/FetchLibrariesResult.cc
|
||||
src/model/FetchAlbumTagPhotosRequest.cc
|
||||
src/model/FetchAlbumTagPhotosResult.cc
|
||||
src/model/CreateTransactionRequest.cc
|
||||
src/model/CreateTransactionResult.cc
|
||||
src/model/InactivatePhotosRequest.cc
|
||||
@@ -200,10 +222,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 +254,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 +268,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 +280,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"
|
||||
@@ -50,6 +52,10 @@
|
||||
#include "model/MergeFacesResult.h"
|
||||
#include "model/GetPhotosByMd5sRequest.h"
|
||||
#include "model/GetPhotosByMd5sResult.h"
|
||||
#include "model/FetchLibrariesRequest.h"
|
||||
#include "model/FetchLibrariesResult.h"
|
||||
#include "model/FetchAlbumTagPhotosRequest.h"
|
||||
#include "model/FetchAlbumTagPhotosResult.h"
|
||||
#include "model/CreateTransactionRequest.h"
|
||||
#include "model/CreateTransactionResult.h"
|
||||
#include "model/InactivatePhotosRequest.h"
|
||||
@@ -78,10 +84,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 +116,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 +130,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 +142,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"
|
||||
@@ -151,374 +167,421 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CloudPhotoClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::RemoveFacePhotosResult> RemoveFacePhotosOutcome;
|
||||
typedef std::future<RemoveFacePhotosOutcome> RemoveFacePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::RemoveFacePhotosResult> RemoveFacePhotosOutcome;
|
||||
typedef std::future<RemoveFacePhotosOutcome> RemoveFacePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::RemoveFacePhotosRequest&, const RemoveFacePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveFacePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReactivatePhotosResult> ReactivatePhotosOutcome;
|
||||
typedef std::future<ReactivatePhotosOutcome> ReactivatePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ReactivatePhotosResult> ReactivatePhotosOutcome;
|
||||
typedef std::future<ReactivatePhotosOutcome> ReactivatePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ReactivatePhotosRequest&, const ReactivatePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReactivatePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetQuotaResult> GetQuotaOutcome;
|
||||
typedef std::future<GetQuotaOutcome> GetQuotaOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetQuotaResult> GetQuotaOutcome;
|
||||
typedef std::future<GetQuotaOutcome> GetQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetQuotaRequest&, const GetQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetThumbnailsResult> GetThumbnailsOutcome;
|
||||
typedef std::future<GetThumbnailsOutcome> GetThumbnailsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetThumbnailsResult> GetThumbnailsOutcome;
|
||||
typedef std::future<GetThumbnailsOutcome> GetThumbnailsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetThumbnailsRequest&, const GetThumbnailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetThumbnailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFacesResult> DeleteFacesOutcome;
|
||||
typedef std::future<DeleteFacesOutcome> DeleteFacesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DeleteFacesResult> DeleteFacesOutcome;
|
||||
typedef std::future<DeleteFacesOutcome> DeleteFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::DeleteFacesRequest&, const DeleteFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddAlbumPhotosResult> AddAlbumPhotosOutcome;
|
||||
typedef std::future<AddAlbumPhotosOutcome> AddAlbumPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::AddAlbumPhotosResult> AddAlbumPhotosOutcome;
|
||||
typedef std::future<AddAlbumPhotosOutcome> AddAlbumPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::AddAlbumPhotosRequest&, const AddAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddAlbumPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListFacesResult> ListFacesOutcome;
|
||||
typedef std::future<ListFacesOutcome> ListFacesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListFacesResult> ListFacesOutcome;
|
||||
typedef std::future<ListFacesOutcome> ListFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListFacesRequest&, const ListFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::MoveFacePhotosResult> MoveFacePhotosOutcome;
|
||||
typedef std::future<MoveFacePhotosOutcome> MoveFacePhotosOutcomeCallable;
|
||||
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::ListPhotosResult> ListPhotosOutcome;
|
||||
typedef std::future<ListPhotosOutcome> ListPhotosOutcomeCallable;
|
||||
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;
|
||||
typedef Outcome<Error, Model::RegisterTagResult> RegisterTagOutcome;
|
||||
typedef std::future<RegisterTagOutcome> RegisterTagOutcomeCallable;
|
||||
typedef Outcome<Error, Model::RegisterTagResult> RegisterTagOutcome;
|
||||
typedef std::future<RegisterTagOutcome> RegisterTagOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::RegisterTagRequest&, const RegisterTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTimeLinePhotosResult> ListTimeLinePhotosOutcome;
|
||||
typedef std::future<ListTimeLinePhotosOutcome> ListTimeLinePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListTimeLinePhotosResult> ListTimeLinePhotosOutcome;
|
||||
typedef std::future<ListTimeLinePhotosOutcome> ListTimeLinePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListTimeLinePhotosRequest&, const ListTimeLinePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTimeLinePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePhotosResult> DeletePhotosOutcome;
|
||||
typedef std::future<DeletePhotosOutcome> DeletePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DeletePhotosResult> DeletePhotosOutcome;
|
||||
typedef std::future<DeletePhotosOutcome> DeletePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::DeletePhotosRequest&, const DeletePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::MergeFacesResult> MergeFacesOutcome;
|
||||
typedef std::future<MergeFacesOutcome> MergeFacesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::MergeFacesResult> MergeFacesOutcome;
|
||||
typedef std::future<MergeFacesOutcome> MergeFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::MergeFacesRequest&, const MergeFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPhotosByMd5sResult> GetPhotosByMd5sOutcome;
|
||||
typedef std::future<GetPhotosByMd5sOutcome> GetPhotosByMd5sOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetPhotosByMd5sResult> GetPhotosByMd5sOutcome;
|
||||
typedef std::future<GetPhotosByMd5sOutcome> GetPhotosByMd5sOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetPhotosByMd5sRequest&, const GetPhotosByMd5sOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhotosByMd5sAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTransactionResult> CreateTransactionOutcome;
|
||||
typedef std::future<CreateTransactionOutcome> CreateTransactionOutcomeCallable;
|
||||
typedef Outcome<Error, Model::FetchLibrariesResult> FetchLibrariesOutcome;
|
||||
typedef std::future<FetchLibrariesOutcome> FetchLibrariesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::FetchLibrariesRequest&, const FetchLibrariesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FetchLibrariesAsyncHandler;
|
||||
typedef Outcome<Error, Model::FetchAlbumTagPhotosResult> FetchAlbumTagPhotosOutcome;
|
||||
typedef std::future<FetchAlbumTagPhotosOutcome> FetchAlbumTagPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::FetchAlbumTagPhotosRequest&, const FetchAlbumTagPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FetchAlbumTagPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTransactionResult> CreateTransactionOutcome;
|
||||
typedef std::future<CreateTransactionOutcome> CreateTransactionOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::CreateTransactionRequest&, const CreateTransactionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTransactionAsyncHandler;
|
||||
typedef Outcome<Error, Model::InactivatePhotosResult> InactivatePhotosOutcome;
|
||||
typedef std::future<InactivatePhotosOutcome> InactivatePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::InactivatePhotosResult> InactivatePhotosOutcome;
|
||||
typedef std::future<InactivatePhotosOutcome> InactivatePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::InactivatePhotosRequest&, const InactivatePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InactivatePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePhotoStoreResult> CreatePhotoStoreOutcome;
|
||||
typedef std::future<CreatePhotoStoreOutcome> CreatePhotoStoreOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreatePhotoStoreResult> CreatePhotoStoreOutcome;
|
||||
typedef std::future<CreatePhotoStoreOutcome> CreatePhotoStoreOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::CreatePhotoStoreRequest&, const CreatePhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePhotoStoreAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagPhotoResult> TagPhotoOutcome;
|
||||
typedef std::future<TagPhotoOutcome> TagPhotoOutcomeCallable;
|
||||
typedef Outcome<Error, Model::TagPhotoResult> TagPhotoOutcome;
|
||||
typedef std::future<TagPhotoOutcome> TagPhotoOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::TagPhotoRequest&, const TagPhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagPhotoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLibraryResult> GetLibraryOutcome;
|
||||
typedef std::future<GetLibraryOutcome> GetLibraryOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetLibraryResult> GetLibraryOutcome;
|
||||
typedef std::future<GetLibraryOutcome> GetLibraryOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetLibraryRequest&, const GetLibraryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLibraryAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetQuotaResult> SetQuotaOutcome;
|
||||
typedef std::future<SetQuotaOutcome> SetQuotaOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SetQuotaResult> SetQuotaOutcome;
|
||||
typedef std::future<SetQuotaOutcome> SetQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::SetQuotaRequest&, const SetQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAlbumPhotosResult> ListAlbumPhotosOutcome;
|
||||
typedef std::future<ListAlbumPhotosOutcome> ListAlbumPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListAlbumPhotosResult> ListAlbumPhotosOutcome;
|
||||
typedef std::future<ListAlbumPhotosOutcome> ListAlbumPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListAlbumPhotosRequest&, const ListAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlbumPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveAlbumPhotosResult> RemoveAlbumPhotosOutcome;
|
||||
typedef std::future<RemoveAlbumPhotosOutcome> RemoveAlbumPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::RemoveAlbumPhotosResult> RemoveAlbumPhotosOutcome;
|
||||
typedef std::future<RemoveAlbumPhotosOutcome> RemoveAlbumPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::RemoveAlbumPhotosRequest&, const RemoveAlbumPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveAlbumPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAlbumsResult> ListAlbumsOutcome;
|
||||
typedef std::future<ListAlbumsOutcome> ListAlbumsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListAlbumsResult> ListAlbumsOutcome;
|
||||
typedef std::future<ListAlbumsOutcome> ListAlbumsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListAlbumsRequest&, const ListAlbumsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlbumsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPhotoFacesResult> ListPhotoFacesOutcome;
|
||||
typedef std::future<ListPhotoFacesOutcome> ListPhotoFacesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListPhotoFacesResult> ListPhotoFacesOutcome;
|
||||
typedef std::future<ListPhotoFacesOutcome> ListPhotoFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoFacesRequest&, const ListPhotoFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenameAlbumResult> RenameAlbumOutcome;
|
||||
typedef std::future<RenameAlbumOutcome> RenameAlbumOutcomeCallable;
|
||||
typedef Outcome<Error, Model::RenameAlbumResult> RenameAlbumOutcome;
|
||||
typedef std::future<RenameAlbumOutcome> RenameAlbumOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::RenameAlbumRequest&, const RenameAlbumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenameAlbumAsyncHandler;
|
||||
typedef Outcome<Error, Model::ActivatePhotosResult> ActivatePhotosOutcome;
|
||||
typedef std::future<ActivatePhotosOutcome> ActivatePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ActivatePhotosResult> ActivatePhotosOutcome;
|
||||
typedef std::future<ActivatePhotosOutcome> ActivatePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ActivatePhotosRequest&, const ActivatePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ActivatePhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPrivateAccessUrlsResult> GetPrivateAccessUrlsOutcome;
|
||||
typedef std::future<GetPrivateAccessUrlsOutcome> GetPrivateAccessUrlsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetPrivateAccessUrlsResult> GetPrivateAccessUrlsOutcome;
|
||||
typedef std::future<GetPrivateAccessUrlsOutcome> GetPrivateAccessUrlsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetPrivateAccessUrlsRequest&, const GetPrivateAccessUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrivateAccessUrlsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSimilarPhotosResult> GetSimilarPhotosOutcome;
|
||||
typedef std::future<GetSimilarPhotosOutcome> GetSimilarPhotosOutcomeCallable;
|
||||
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::GetVideoCoverResult> GetVideoCoverOutcome;
|
||||
typedef std::future<GetVideoCoverOutcome> GetVideoCoverOutcomeCallable;
|
||||
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 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::SetMeResult> SetMeOutcome;
|
||||
typedef std::future<SetMeOutcome> SetMeOutcomeCallable;
|
||||
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;
|
||||
typedef Outcome<Error, Model::ListTagPhotosResult> ListTagPhotosOutcome;
|
||||
typedef std::future<ListTagPhotosOutcome> ListTagPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListTagPhotosResult> ListTagPhotosOutcome;
|
||||
typedef std::future<ListTagPhotosOutcome> ListTagPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListTagPhotosRequest&, const ListTagPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAlbumsResult> DeleteAlbumsOutcome;
|
||||
typedef std::future<DeleteAlbumsOutcome> DeleteAlbumsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DeleteAlbumsResult> DeleteAlbumsOutcome;
|
||||
typedef std::future<DeleteAlbumsOutcome> DeleteAlbumsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::DeleteAlbumsRequest&, const DeleteAlbumsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlbumsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDownloadUrlsResult> GetDownloadUrlsOutcome;
|
||||
typedef std::future<GetDownloadUrlsOutcome> GetDownloadUrlsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetDownloadUrlsResult> GetDownloadUrlsOutcome;
|
||||
typedef std::future<GetDownloadUrlsOutcome> GetDownloadUrlsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetDownloadUrlsRequest&, const GetDownloadUrlsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDownloadUrlsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPhotosResult> GetPhotosOutcome;
|
||||
typedef std::future<GetPhotosOutcome> GetPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetPhotosResult> GetPhotosOutcome;
|
||||
typedef std::future<GetPhotosOutcome> GetPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetPhotosRequest&, const GetPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterPhotoResult> RegisterPhotoOutcome;
|
||||
typedef std::future<RegisterPhotoOutcome> RegisterPhotoOutcomeCallable;
|
||||
typedef Outcome<Error, Model::RegisterPhotoResult> RegisterPhotoOutcome;
|
||||
typedef std::future<RegisterPhotoOutcome> RegisterPhotoOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::RegisterPhotoRequest&, const RegisterPhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterPhotoAsyncHandler;
|
||||
typedef Outcome<Error, Model::EditPhotoStoreResult> EditPhotoStoreOutcome;
|
||||
typedef std::future<EditPhotoStoreOutcome> EditPhotoStoreOutcomeCallable;
|
||||
typedef Outcome<Error, Model::EditPhotoStoreResult> EditPhotoStoreOutcome;
|
||||
typedef std::future<EditPhotoStoreOutcome> EditPhotoStoreOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::EditPhotoStoreRequest&, const EditPhotoStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditPhotoStoreAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTimeLinesResult> ListTimeLinesOutcome;
|
||||
typedef std::future<ListTimeLinesOutcome> ListTimeLinesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListTimeLinesResult> ListTimeLinesOutcome;
|
||||
typedef std::future<ListTimeLinesOutcome> ListTimeLinesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListTimeLinesRequest&, const ListTimeLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTimeLinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchPhotosResult> SearchPhotosOutcome;
|
||||
typedef std::future<SearchPhotosOutcome> SearchPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SearchPhotosResult> SearchPhotosOutcome;
|
||||
typedef std::future<SearchPhotosOutcome> SearchPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::SearchPhotosRequest&, const SearchPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::ToggleFeaturesResult> ToggleFeaturesOutcome;
|
||||
typedef std::future<ToggleFeaturesOutcome> ToggleFeaturesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ToggleFeaturesResult> ToggleFeaturesOutcome;
|
||||
typedef std::future<ToggleFeaturesOutcome> ToggleFeaturesOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ToggleFeaturesRequest&, const ToggleFeaturesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ToggleFeaturesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRegisteredTagsResult> ListRegisteredTagsOutcome;
|
||||
typedef std::future<ListRegisteredTagsOutcome> ListRegisteredTagsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListRegisteredTagsResult> ListRegisteredTagsOutcome;
|
||||
typedef std::future<ListRegisteredTagsOutcome> ListRegisteredTagsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListRegisteredTagsRequest&, const ListRegisteredTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRegisteredTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePhotoStoreResult> DeletePhotoStoreOutcome;
|
||||
typedef std::future<DeletePhotoStoreOutcome> DeletePhotoStoreOutcomeCallable;
|
||||
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::GetPhotoStoreResult> GetPhotoStoreOutcome;
|
||||
typedef std::future<GetPhotoStoreOutcome> GetPhotoStoreOutcomeCallable;
|
||||
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;
|
||||
typedef Outcome<Error, Model::ListMomentPhotosResult> ListMomentPhotosOutcome;
|
||||
typedef std::future<ListMomentPhotosOutcome> ListMomentPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListMomentPhotosResult> ListMomentPhotosOutcome;
|
||||
typedef std::future<ListMomentPhotosOutcome> ListMomentPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListMomentPhotosRequest&, const ListMomentPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMomentPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetThumbnailResult> GetThumbnailOutcome;
|
||||
typedef std::future<GetThumbnailOutcome> GetThumbnailOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetThumbnailResult> GetThumbnailOutcome;
|
||||
typedef std::future<GetThumbnailOutcome> GetThumbnailOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::GetThumbnailRequest&, const GetThumbnailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetThumbnailAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetFaceCoverResult> SetFaceCoverOutcome;
|
||||
typedef std::future<SetFaceCoverOutcome> SetFaceCoverOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SetFaceCoverResult> SetFaceCoverOutcome;
|
||||
typedef std::future<SetFaceCoverOutcome> SetFaceCoverOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::SetFaceCoverRequest&, const SetFaceCoverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetFaceCoverAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePhotoResult> CreatePhotoOutcome;
|
||||
typedef std::future<CreatePhotoOutcome> CreatePhotoOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreatePhotoResult> CreatePhotoOutcome;
|
||||
typedef std::future<CreatePhotoOutcome> CreatePhotoOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::CreatePhotoRequest&, const CreatePhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePhotoAsyncHandler;
|
||||
typedef Outcome<Error, Model::MoveAlbumPhotosResult> MoveAlbumPhotosOutcome;
|
||||
typedef std::future<MoveAlbumPhotosOutcome> MoveAlbumPhotosOutcomeCallable;
|
||||
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::GetDownloadUrlResult> GetDownloadUrlOutcome;
|
||||
typedef std::future<GetDownloadUrlOutcome> GetDownloadUrlOutcomeCallable;
|
||||
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;
|
||||
typedef Outcome<Error, Model::CreateAlbumResult> CreateAlbumOutcome;
|
||||
typedef std::future<CreateAlbumOutcome> CreateAlbumOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreateAlbumResult> CreateAlbumOutcome;
|
||||
typedef std::future<CreateAlbumOutcome> CreateAlbumOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::CreateAlbumRequest&, const CreateAlbumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlbumAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPhotoTagsResult> ListPhotoTagsOutcome;
|
||||
typedef std::future<ListPhotoTagsOutcome> ListPhotoTagsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListPhotoTagsResult> ListPhotoTagsOutcome;
|
||||
typedef std::future<ListPhotoTagsOutcome> ListPhotoTagsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListPhotoTagsRequest&, const ListPhotoTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPhotoTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::LikePhotoResult> LikePhotoOutcome;
|
||||
typedef std::future<LikePhotoOutcome> LikePhotoOutcomeCallable;
|
||||
typedef Outcome<Error, Model::LikePhotoResult> LikePhotoOutcome;
|
||||
typedef std::future<LikePhotoOutcome> LikePhotoOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::LikePhotoRequest&, const LikePhotoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LikePhotoAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPhotoStoresResult> ListPhotoStoresOutcome;
|
||||
typedef std::future<ListPhotoStoresOutcome> ListPhotoStoresOutcomeCallable;
|
||||
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::GetPublicAccessUrlsResult> GetPublicAccessUrlsOutcome;
|
||||
typedef std::future<GetPublicAccessUrlsOutcome> GetPublicAccessUrlsOutcomeCallable;
|
||||
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;
|
||||
typedef Outcome<Error, Model::EditPhotosResult> EditPhotosOutcome;
|
||||
typedef std::future<EditPhotosOutcome> EditPhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::EditPhotosResult> EditPhotosOutcome;
|
||||
typedef std::future<EditPhotosOutcome> EditPhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::EditPhotosRequest&, const EditPhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditPhotosAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetAlbumCoverResult> SetAlbumCoverOutcome;
|
||||
typedef std::future<SetAlbumCoverOutcome> SetAlbumCoverOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SetAlbumCoverResult> SetAlbumCoverOutcome;
|
||||
typedef std::future<SetAlbumCoverOutcome> SetAlbumCoverOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::SetAlbumCoverRequest&, const SetAlbumCoverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAlbumCoverAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenameFaceResult> RenameFaceOutcome;
|
||||
typedef std::future<RenameFaceOutcome> RenameFaceOutcomeCallable;
|
||||
typedef Outcome<Error, Model::RenameFaceResult> RenameFaceOutcome;
|
||||
typedef std::future<RenameFaceOutcome> RenameFaceOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::RenameFaceRequest&, const RenameFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenameFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMomentsResult> ListMomentsOutcome;
|
||||
typedef std::future<ListMomentsOutcome> ListMomentsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListMomentsResult> ListMomentsOutcome;
|
||||
typedef std::future<ListMomentsOutcome> ListMomentsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListMomentsRequest&, const ListMomentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMomentsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListFacePhotosResult> ListFacePhotosOutcome;
|
||||
typedef std::future<ListFacePhotosOutcome> ListFacePhotosOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ListFacePhotosResult> ListFacePhotosOutcome;
|
||||
typedef std::future<ListFacePhotosOutcome> ListFacePhotosOutcomeCallable;
|
||||
typedef std::function<void(const CloudPhotoClient*, const Model::ListFacePhotosRequest&, const ListFacePhotosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFacePhotosAsyncHandler;
|
||||
|
||||
CloudPhotoClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CloudPhotoClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudPhotoClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudPhotoClient();
|
||||
RemoveFacePhotosOutcome removeFacePhotos(const Model::RemoveFacePhotosRequest &request)const;
|
||||
void removeFacePhotosAsync(const Model::RemoveFacePhotosRequest& request, const RemoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveFacePhotosOutcomeCallable removeFacePhotosCallable(const Model::RemoveFacePhotosRequest& request) const;
|
||||
ReactivatePhotosOutcome reactivatePhotos(const Model::ReactivatePhotosRequest &request)const;
|
||||
void reactivatePhotosAsync(const Model::ReactivatePhotosRequest& request, const ReactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReactivatePhotosOutcomeCallable reactivatePhotosCallable(const Model::ReactivatePhotosRequest& request) const;
|
||||
GetQuotaOutcome getQuota(const Model::GetQuotaRequest &request)const;
|
||||
void getQuotaAsync(const Model::GetQuotaRequest& request, const GetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetQuotaOutcomeCallable getQuotaCallable(const Model::GetQuotaRequest& request) const;
|
||||
GetThumbnailsOutcome getThumbnails(const Model::GetThumbnailsRequest &request)const;
|
||||
void getThumbnailsAsync(const Model::GetThumbnailsRequest& request, const GetThumbnailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetThumbnailsOutcomeCallable getThumbnailsCallable(const Model::GetThumbnailsRequest& request) const;
|
||||
DeleteFacesOutcome deleteFaces(const Model::DeleteFacesRequest &request)const;
|
||||
void deleteFacesAsync(const Model::DeleteFacesRequest& request, const DeleteFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFacesOutcomeCallable deleteFacesCallable(const Model::DeleteFacesRequest& request) const;
|
||||
AddAlbumPhotosOutcome addAlbumPhotos(const Model::AddAlbumPhotosRequest &request)const;
|
||||
void addAlbumPhotosAsync(const Model::AddAlbumPhotosRequest& request, const AddAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddAlbumPhotosOutcomeCallable addAlbumPhotosCallable(const Model::AddAlbumPhotosRequest& request) const;
|
||||
ListFacesOutcome listFaces(const Model::ListFacesRequest &request)const;
|
||||
void listFacesAsync(const Model::ListFacesRequest& request, const ListFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFacesOutcomeCallable listFacesCallable(const Model::ListFacesRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
RegisterTagOutcome registerTag(const Model::RegisterTagRequest &request)const;
|
||||
void registerTagAsync(const Model::RegisterTagRequest& request, const RegisterTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterTagOutcomeCallable registerTagCallable(const Model::RegisterTagRequest& request) const;
|
||||
ListTimeLinePhotosOutcome listTimeLinePhotos(const Model::ListTimeLinePhotosRequest &request)const;
|
||||
void listTimeLinePhotosAsync(const Model::ListTimeLinePhotosRequest& request, const ListTimeLinePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTimeLinePhotosOutcomeCallable listTimeLinePhotosCallable(const Model::ListTimeLinePhotosRequest& request) const;
|
||||
DeletePhotosOutcome deletePhotos(const Model::DeletePhotosRequest &request)const;
|
||||
void deletePhotosAsync(const Model::DeletePhotosRequest& request, const DeletePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePhotosOutcomeCallable deletePhotosCallable(const Model::DeletePhotosRequest& request) const;
|
||||
MergeFacesOutcome mergeFaces(const Model::MergeFacesRequest &request)const;
|
||||
void mergeFacesAsync(const Model::MergeFacesRequest& request, const MergeFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MergeFacesOutcomeCallable mergeFacesCallable(const Model::MergeFacesRequest& request) const;
|
||||
GetPhotosByMd5sOutcome getPhotosByMd5s(const Model::GetPhotosByMd5sRequest &request)const;
|
||||
void getPhotosByMd5sAsync(const Model::GetPhotosByMd5sRequest& request, const GetPhotosByMd5sAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPhotosByMd5sOutcomeCallable getPhotosByMd5sCallable(const Model::GetPhotosByMd5sRequest& request) const;
|
||||
CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const;
|
||||
void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const;
|
||||
InactivatePhotosOutcome inactivatePhotos(const Model::InactivatePhotosRequest &request)const;
|
||||
void inactivatePhotosAsync(const Model::InactivatePhotosRequest& request, const InactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InactivatePhotosOutcomeCallable inactivatePhotosCallable(const Model::InactivatePhotosRequest& request) const;
|
||||
CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const;
|
||||
void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const;
|
||||
TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const;
|
||||
void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const;
|
||||
GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const;
|
||||
void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const;
|
||||
SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const;
|
||||
void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const;
|
||||
ListAlbumPhotosOutcome listAlbumPhotos(const Model::ListAlbumPhotosRequest &request)const;
|
||||
void listAlbumPhotosAsync(const Model::ListAlbumPhotosRequest& request, const ListAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAlbumPhotosOutcomeCallable listAlbumPhotosCallable(const Model::ListAlbumPhotosRequest& request) const;
|
||||
RemoveAlbumPhotosOutcome removeAlbumPhotos(const Model::RemoveAlbumPhotosRequest &request)const;
|
||||
void removeAlbumPhotosAsync(const Model::RemoveAlbumPhotosRequest& request, const RemoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveAlbumPhotosOutcomeCallable removeAlbumPhotosCallable(const Model::RemoveAlbumPhotosRequest& request) const;
|
||||
ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const;
|
||||
void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const;
|
||||
ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const;
|
||||
void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const;
|
||||
RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const;
|
||||
void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const;
|
||||
ActivatePhotosOutcome activatePhotos(const Model::ActivatePhotosRequest &request)const;
|
||||
void activatePhotosAsync(const Model::ActivatePhotosRequest& request, const ActivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ActivatePhotosOutcomeCallable activatePhotosCallable(const Model::ActivatePhotosRequest& request) const;
|
||||
GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const;
|
||||
void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const;
|
||||
void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const;
|
||||
DeleteAlbumsOutcome deleteAlbums(const Model::DeleteAlbumsRequest &request)const;
|
||||
void deleteAlbumsAsync(const Model::DeleteAlbumsRequest& request, const DeleteAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlbumsOutcomeCallable deleteAlbumsCallable(const Model::DeleteAlbumsRequest& request) const;
|
||||
GetDownloadUrlsOutcome getDownloadUrls(const Model::GetDownloadUrlsRequest &request)const;
|
||||
void getDownloadUrlsAsync(const Model::GetDownloadUrlsRequest& request, const GetDownloadUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDownloadUrlsOutcomeCallable getDownloadUrlsCallable(const Model::GetDownloadUrlsRequest& request) const;
|
||||
GetPhotosOutcome getPhotos(const Model::GetPhotosRequest &request)const;
|
||||
void getPhotosAsync(const Model::GetPhotosRequest& request, const GetPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPhotosOutcomeCallable getPhotosCallable(const Model::GetPhotosRequest& request) const;
|
||||
RegisterPhotoOutcome registerPhoto(const Model::RegisterPhotoRequest &request)const;
|
||||
void registerPhotoAsync(const Model::RegisterPhotoRequest& request, const RegisterPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterPhotoOutcomeCallable registerPhotoCallable(const Model::RegisterPhotoRequest& request) const;
|
||||
EditPhotoStoreOutcome editPhotoStore(const Model::EditPhotoStoreRequest &request)const;
|
||||
void editPhotoStoreAsync(const Model::EditPhotoStoreRequest& request, const EditPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EditPhotoStoreOutcomeCallable editPhotoStoreCallable(const Model::EditPhotoStoreRequest& request) const;
|
||||
ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const;
|
||||
void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const;
|
||||
SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const;
|
||||
void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const;
|
||||
ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const;
|
||||
void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const;
|
||||
ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const;
|
||||
void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const;
|
||||
void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const;
|
||||
GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const;
|
||||
void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const;
|
||||
SetFaceCoverOutcome setFaceCover(const Model::SetFaceCoverRequest &request)const;
|
||||
void setFaceCoverAsync(const Model::SetFaceCoverRequest& request, const SetFaceCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetFaceCoverOutcomeCallable setFaceCoverCallable(const Model::SetFaceCoverRequest& request) const;
|
||||
CreatePhotoOutcome createPhoto(const Model::CreatePhotoRequest &request)const;
|
||||
void createPhotoAsync(const Model::CreatePhotoRequest& request, const CreatePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePhotoOutcomeCallable createPhotoCallable(const Model::CreatePhotoRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
CreateAlbumOutcome createAlbum(const Model::CreateAlbumRequest &request)const;
|
||||
void createAlbumAsync(const Model::CreateAlbumRequest& request, const CreateAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlbumOutcomeCallable createAlbumCallable(const Model::CreateAlbumRequest& request) const;
|
||||
ListPhotoTagsOutcome listPhotoTags(const Model::ListPhotoTagsRequest &request)const;
|
||||
void listPhotoTagsAsync(const Model::ListPhotoTagsRequest& request, const ListPhotoTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhotoTagsOutcomeCallable listPhotoTagsCallable(const Model::ListPhotoTagsRequest& request) const;
|
||||
LikePhotoOutcome likePhoto(const Model::LikePhotoRequest &request)const;
|
||||
void likePhotoAsync(const Model::LikePhotoRequest& request, const LikePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LikePhotoOutcomeCallable likePhotoCallable(const Model::LikePhotoRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
EditPhotosOutcome editPhotos(const Model::EditPhotosRequest &request)const;
|
||||
void editPhotosAsync(const Model::EditPhotosRequest& request, const EditPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EditPhotosOutcomeCallable editPhotosCallable(const Model::EditPhotosRequest& request) const;
|
||||
SetAlbumCoverOutcome setAlbumCover(const Model::SetAlbumCoverRequest &request)const;
|
||||
void setAlbumCoverAsync(const Model::SetAlbumCoverRequest& request, const SetAlbumCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetAlbumCoverOutcomeCallable setAlbumCoverCallable(const Model::SetAlbumCoverRequest& request) const;
|
||||
RenameFaceOutcome renameFace(const Model::RenameFaceRequest &request)const;
|
||||
void renameFaceAsync(const Model::RenameFaceRequest& request, const RenameFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenameFaceOutcomeCallable renameFaceCallable(const Model::RenameFaceRequest& request) const;
|
||||
ListMomentsOutcome listMoments(const Model::ListMomentsRequest &request)const;
|
||||
void listMomentsAsync(const Model::ListMomentsRequest& request, const ListMomentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMomentsOutcomeCallable listMomentsCallable(const Model::ListMomentsRequest& request) const;
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ListFacePhotosOutcome listFacePhotos(const Model::ListFacePhotosRequest &request)const;
|
||||
void listFacePhotosAsync(const Model::ListFacePhotosRequest& request, const ListFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFacePhotosOutcomeCallable listFacePhotosCallable(const Model::ListFacePhotosRequest& request) const;
|
||||
RemoveFacePhotosOutcome removeFacePhotos(const Model::RemoveFacePhotosRequest &request)const;
|
||||
void removeFacePhotosAsync(const Model::RemoveFacePhotosRequest& request, const RemoveFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveFacePhotosOutcomeCallable removeFacePhotosCallable(const Model::RemoveFacePhotosRequest& request) const;
|
||||
ReactivatePhotosOutcome reactivatePhotos(const Model::ReactivatePhotosRequest &request)const;
|
||||
void reactivatePhotosAsync(const Model::ReactivatePhotosRequest& request, const ReactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReactivatePhotosOutcomeCallable reactivatePhotosCallable(const Model::ReactivatePhotosRequest& request) const;
|
||||
GetQuotaOutcome getQuota(const Model::GetQuotaRequest &request)const;
|
||||
void getQuotaAsync(const Model::GetQuotaRequest& request, const GetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetQuotaOutcomeCallable getQuotaCallable(const Model::GetQuotaRequest& request) const;
|
||||
GetThumbnailsOutcome getThumbnails(const Model::GetThumbnailsRequest &request)const;
|
||||
void getThumbnailsAsync(const Model::GetThumbnailsRequest& request, const GetThumbnailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetThumbnailsOutcomeCallable getThumbnailsCallable(const Model::GetThumbnailsRequest& request) const;
|
||||
DeleteFacesOutcome deleteFaces(const Model::DeleteFacesRequest &request)const;
|
||||
void deleteFacesAsync(const Model::DeleteFacesRequest& request, const DeleteFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFacesOutcomeCallable deleteFacesCallable(const Model::DeleteFacesRequest& request) const;
|
||||
AddAlbumPhotosOutcome addAlbumPhotos(const Model::AddAlbumPhotosRequest &request)const;
|
||||
void addAlbumPhotosAsync(const Model::AddAlbumPhotosRequest& request, const AddAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddAlbumPhotosOutcomeCallable addAlbumPhotosCallable(const Model::AddAlbumPhotosRequest& request) const;
|
||||
ListFacesOutcome listFaces(const Model::ListFacesRequest &request)const;
|
||||
void listFacesAsync(const Model::ListFacesRequest& request, const ListFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFacesOutcomeCallable listFacesCallable(const Model::ListFacesRequest& request) const;
|
||||
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;
|
||||
RegisterTagOutcome registerTag(const Model::RegisterTagRequest &request)const;
|
||||
void registerTagAsync(const Model::RegisterTagRequest& request, const RegisterTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterTagOutcomeCallable registerTagCallable(const Model::RegisterTagRequest& request) const;
|
||||
ListTimeLinePhotosOutcome listTimeLinePhotos(const Model::ListTimeLinePhotosRequest &request)const;
|
||||
void listTimeLinePhotosAsync(const Model::ListTimeLinePhotosRequest& request, const ListTimeLinePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTimeLinePhotosOutcomeCallable listTimeLinePhotosCallable(const Model::ListTimeLinePhotosRequest& request) const;
|
||||
DeletePhotosOutcome deletePhotos(const Model::DeletePhotosRequest &request)const;
|
||||
void deletePhotosAsync(const Model::DeletePhotosRequest& request, const DeletePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePhotosOutcomeCallable deletePhotosCallable(const Model::DeletePhotosRequest& request) const;
|
||||
MergeFacesOutcome mergeFaces(const Model::MergeFacesRequest &request)const;
|
||||
void mergeFacesAsync(const Model::MergeFacesRequest& request, const MergeFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MergeFacesOutcomeCallable mergeFacesCallable(const Model::MergeFacesRequest& request) const;
|
||||
GetPhotosByMd5sOutcome getPhotosByMd5s(const Model::GetPhotosByMd5sRequest &request)const;
|
||||
void getPhotosByMd5sAsync(const Model::GetPhotosByMd5sRequest& request, const GetPhotosByMd5sAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPhotosByMd5sOutcomeCallable getPhotosByMd5sCallable(const Model::GetPhotosByMd5sRequest& request) const;
|
||||
FetchLibrariesOutcome fetchLibraries(const Model::FetchLibrariesRequest &request)const;
|
||||
void fetchLibrariesAsync(const Model::FetchLibrariesRequest& request, const FetchLibrariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FetchLibrariesOutcomeCallable fetchLibrariesCallable(const Model::FetchLibrariesRequest& request) const;
|
||||
FetchAlbumTagPhotosOutcome fetchAlbumTagPhotos(const Model::FetchAlbumTagPhotosRequest &request)const;
|
||||
void fetchAlbumTagPhotosAsync(const Model::FetchAlbumTagPhotosRequest& request, const FetchAlbumTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FetchAlbumTagPhotosOutcomeCallable fetchAlbumTagPhotosCallable(const Model::FetchAlbumTagPhotosRequest& request) const;
|
||||
CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const;
|
||||
void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const;
|
||||
InactivatePhotosOutcome inactivatePhotos(const Model::InactivatePhotosRequest &request)const;
|
||||
void inactivatePhotosAsync(const Model::InactivatePhotosRequest& request, const InactivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InactivatePhotosOutcomeCallable inactivatePhotosCallable(const Model::InactivatePhotosRequest& request) const;
|
||||
CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const;
|
||||
void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const;
|
||||
TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const;
|
||||
void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const;
|
||||
GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const;
|
||||
void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const;
|
||||
SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const;
|
||||
void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const;
|
||||
ListAlbumPhotosOutcome listAlbumPhotos(const Model::ListAlbumPhotosRequest &request)const;
|
||||
void listAlbumPhotosAsync(const Model::ListAlbumPhotosRequest& request, const ListAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAlbumPhotosOutcomeCallable listAlbumPhotosCallable(const Model::ListAlbumPhotosRequest& request) const;
|
||||
RemoveAlbumPhotosOutcome removeAlbumPhotos(const Model::RemoveAlbumPhotosRequest &request)const;
|
||||
void removeAlbumPhotosAsync(const Model::RemoveAlbumPhotosRequest& request, const RemoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveAlbumPhotosOutcomeCallable removeAlbumPhotosCallable(const Model::RemoveAlbumPhotosRequest& request) const;
|
||||
ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const;
|
||||
void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const;
|
||||
ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const;
|
||||
void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const;
|
||||
RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const;
|
||||
void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const;
|
||||
ActivatePhotosOutcome activatePhotos(const Model::ActivatePhotosRequest &request)const;
|
||||
void activatePhotosAsync(const Model::ActivatePhotosRequest& request, const ActivatePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ActivatePhotosOutcomeCallable activatePhotosCallable(const Model::ActivatePhotosRequest& request) const;
|
||||
GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const;
|
||||
void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const;
|
||||
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;
|
||||
ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const;
|
||||
void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const;
|
||||
DeleteAlbumsOutcome deleteAlbums(const Model::DeleteAlbumsRequest &request)const;
|
||||
void deleteAlbumsAsync(const Model::DeleteAlbumsRequest& request, const DeleteAlbumsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlbumsOutcomeCallable deleteAlbumsCallable(const Model::DeleteAlbumsRequest& request) const;
|
||||
GetDownloadUrlsOutcome getDownloadUrls(const Model::GetDownloadUrlsRequest &request)const;
|
||||
void getDownloadUrlsAsync(const Model::GetDownloadUrlsRequest& request, const GetDownloadUrlsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDownloadUrlsOutcomeCallable getDownloadUrlsCallable(const Model::GetDownloadUrlsRequest& request) const;
|
||||
GetPhotosOutcome getPhotos(const Model::GetPhotosRequest &request)const;
|
||||
void getPhotosAsync(const Model::GetPhotosRequest& request, const GetPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPhotosOutcomeCallable getPhotosCallable(const Model::GetPhotosRequest& request) const;
|
||||
RegisterPhotoOutcome registerPhoto(const Model::RegisterPhotoRequest &request)const;
|
||||
void registerPhotoAsync(const Model::RegisterPhotoRequest& request, const RegisterPhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterPhotoOutcomeCallable registerPhotoCallable(const Model::RegisterPhotoRequest& request) const;
|
||||
EditPhotoStoreOutcome editPhotoStore(const Model::EditPhotoStoreRequest &request)const;
|
||||
void editPhotoStoreAsync(const Model::EditPhotoStoreRequest& request, const EditPhotoStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EditPhotoStoreOutcomeCallable editPhotoStoreCallable(const Model::EditPhotoStoreRequest& request) const;
|
||||
ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const;
|
||||
void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const;
|
||||
SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const;
|
||||
void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const;
|
||||
ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const;
|
||||
void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const;
|
||||
ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const;
|
||||
void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const;
|
||||
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;
|
||||
ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const;
|
||||
void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const;
|
||||
GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const;
|
||||
void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const;
|
||||
SetFaceCoverOutcome setFaceCover(const Model::SetFaceCoverRequest &request)const;
|
||||
void setFaceCoverAsync(const Model::SetFaceCoverRequest& request, const SetFaceCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetFaceCoverOutcomeCallable setFaceCoverCallable(const Model::SetFaceCoverRequest& request) const;
|
||||
CreatePhotoOutcome createPhoto(const Model::CreatePhotoRequest &request)const;
|
||||
void createPhotoAsync(const Model::CreatePhotoRequest& request, const CreatePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePhotoOutcomeCallable createPhotoCallable(const Model::CreatePhotoRequest& request) const;
|
||||
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;
|
||||
CreateAlbumOutcome createAlbum(const Model::CreateAlbumRequest &request)const;
|
||||
void createAlbumAsync(const Model::CreateAlbumRequest& request, const CreateAlbumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlbumOutcomeCallable createAlbumCallable(const Model::CreateAlbumRequest& request) const;
|
||||
ListPhotoTagsOutcome listPhotoTags(const Model::ListPhotoTagsRequest &request)const;
|
||||
void listPhotoTagsAsync(const Model::ListPhotoTagsRequest& request, const ListPhotoTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPhotoTagsOutcomeCallable listPhotoTagsCallable(const Model::ListPhotoTagsRequest& request) const;
|
||||
LikePhotoOutcome likePhoto(const Model::LikePhotoRequest &request)const;
|
||||
void likePhotoAsync(const Model::LikePhotoRequest& request, const LikePhotoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LikePhotoOutcomeCallable likePhotoCallable(const Model::LikePhotoRequest& request) const;
|
||||
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;
|
||||
EditPhotosOutcome editPhotos(const Model::EditPhotosRequest &request)const;
|
||||
void editPhotosAsync(const Model::EditPhotosRequest& request, const EditPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EditPhotosOutcomeCallable editPhotosCallable(const Model::EditPhotosRequest& request) const;
|
||||
SetAlbumCoverOutcome setAlbumCover(const Model::SetAlbumCoverRequest &request)const;
|
||||
void setAlbumCoverAsync(const Model::SetAlbumCoverRequest& request, const SetAlbumCoverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetAlbumCoverOutcomeCallable setAlbumCoverCallable(const Model::SetAlbumCoverRequest& request) const;
|
||||
RenameFaceOutcome renameFace(const Model::RenameFaceRequest &request)const;
|
||||
void renameFaceAsync(const Model::RenameFaceRequest& request, const RenameFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenameFaceOutcomeCallable renameFaceCallable(const Model::RenameFaceRequest& request) const;
|
||||
ListMomentsOutcome listMoments(const Model::ListMomentsRequest &request)const;
|
||||
void listMomentsAsync(const Model::ListMomentsRequest& request, const ListMomentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMomentsOutcomeCallable listMomentsCallable(const Model::ListMomentsRequest& request) const;
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ListFacePhotosOutcome listFacePhotos(const Model::ListFacePhotosRequest &request)const;
|
||||
void listFacePhotosAsync(const Model::ListFacePhotosRequest& request, const ListFacePhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFacePhotosOutcomeCallable listFacePhotosCallable(const Model::ListFacePhotosRequest& request) const;
|
||||
|
||||
private:
|
||||
virtual EndpointOutcome endpoint()const override;
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ActivatePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
ActivatePhotosResult();
|
||||
explicit ActivatePhotosResult(const std::string &payload);
|
||||
~ActivatePhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT AddAlbumPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
AddAlbumPhotosResult();
|
||||
explicit AddAlbumPhotosResult(const std::string &payload);
|
||||
~AddAlbumPhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,48 +32,50 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateAlbumResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Album
|
||||
{
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
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 state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::string name;
|
||||
std::string remark;
|
||||
};
|
||||
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;
|
||||
};
|
||||
Cover cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::string name;
|
||||
std::string remark;
|
||||
};
|
||||
|
||||
|
||||
CreateAlbumResult();
|
||||
explicit CreateAlbumResult(const std::string &payload);
|
||||
~CreateAlbumResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Album> getAlbum()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
Album getAlbum()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Album> album_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Album album_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
Event getEvent()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Event event_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_CREATEEVENTRESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
CreatePhotoRequest();
|
||||
~CreatePhotoRequest();
|
||||
|
||||
long getTakenAt()const;
|
||||
void setTakenAt(long takenAt);
|
||||
std::string getPhotoTitle()const;
|
||||
void setPhotoTitle(const std::string& photoTitle);
|
||||
std::string getLibraryId()const;
|
||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
||||
void setFileId(const std::string& fileId);
|
||||
|
||||
private:
|
||||
long takenAt_;
|
||||
std::string photoTitle_;
|
||||
std::string libraryId_;
|
||||
long shareExpireTime_;
|
||||
|
||||
@@ -32,41 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreatePhotoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
CreatePhotoResult();
|
||||
explicit CreatePhotoResult(const std::string &payload);
|
||||
~CreatePhotoResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Photo> getPhoto()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
Photo getPhoto()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Photo> photo_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Photo photo_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
CreatePhotoStoreResult();
|
||||
explicit CreatePhotoStoreResult(const std::string &payload);
|
||||
~CreatePhotoStoreResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,38 +32,38 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateTransactionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Transaction
|
||||
{
|
||||
struct Upload
|
||||
{
|
||||
std::string stsToken;
|
||||
std::string ossEndpoint;
|
||||
std::string bucket;
|
||||
std::string accessKeyId;
|
||||
std::string accessKeySecret;
|
||||
std::string objectKey;
|
||||
std::string fileId;
|
||||
std::string sessionId;
|
||||
};
|
||||
std::vector<Upload> upload;
|
||||
};
|
||||
struct Transaction
|
||||
{
|
||||
struct Upload
|
||||
{
|
||||
std::string stsToken;
|
||||
std::string ossEndpoint;
|
||||
std::string bucket;
|
||||
std::string accessKeyId;
|
||||
std::string accessKeySecret;
|
||||
std::string objectKey;
|
||||
std::string fileId;
|
||||
std::string sessionId;
|
||||
};
|
||||
Upload upload;
|
||||
};
|
||||
|
||||
|
||||
CreateTransactionResult();
|
||||
explicit CreateTransactionResult(const std::string &payload);
|
||||
~CreateTransactionResult();
|
||||
std::string getAction()const;
|
||||
std::vector<Transaction> getTransaction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
Transaction getTransaction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::vector<Transaction> transaction_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
Transaction transaction_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteAlbumsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
DeleteAlbumsResult();
|
||||
explicit DeleteAlbumsResult(const std::string &payload);
|
||||
~DeleteAlbumsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
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_
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
DeleteFacesResult();
|
||||
explicit DeleteFacesResult(const std::string &payload);
|
||||
~DeleteFacesResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
DeletePhotoStoreResult();
|
||||
explicit DeletePhotoStoreResult(const std::string &payload);
|
||||
~DeletePhotoStoreResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
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_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeletePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
DeletePhotosResult();
|
||||
explicit DeletePhotosResult(const std::string &payload);
|
||||
~DeletePhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
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;
|
||||
Event getEvent()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Event event_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_EDITEVENTRESULT_H_
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
EditPhotoStoreResult();
|
||||
explicit EditPhotoStoreResult(const std::string &payload);
|
||||
~EditPhotoStoreResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
EditPhotosResult();
|
||||
explicit EditPhotosResult(const std::string &payload);
|
||||
~EditPhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_FETCHALBUMTAGPHOTOSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSREQUEST_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 FetchAlbumTagPhotosRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FetchAlbumTagPhotosRequest();
|
||||
~FetchAlbumTagPhotosRequest();
|
||||
|
||||
int getSize()const;
|
||||
void setSize(int size);
|
||||
long getTagId()const;
|
||||
void setTagId(long tagId);
|
||||
std::string getLibraryId()const;
|
||||
void setLibraryId(const std::string& libraryId);
|
||||
long getAlbumId()const;
|
||||
void setAlbumId(long albumId);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
int getPage()const;
|
||||
void setPage(int page);
|
||||
|
||||
private:
|
||||
int size_;
|
||||
long tagId_;
|
||||
std::string libraryId_;
|
||||
long albumId_;
|
||||
std::string storeName_;
|
||||
int page_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSRESULT_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 FetchAlbumTagPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
long mtime;
|
||||
};
|
||||
|
||||
|
||||
FetchAlbumTagPhotosResult();
|
||||
explicit FetchAlbumTagPhotosResult(const std::string &payload);
|
||||
~FetchAlbumTagPhotosResult();
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHALBUMTAGPHOTOSRESULT_H_
|
||||
@@ -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_FETCHLIBRARIESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHLIBRARIESREQUEST_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 FetchLibrariesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FetchLibrariesRequest();
|
||||
~FetchLibrariesRequest();
|
||||
|
||||
int getSize()const;
|
||||
void setSize(int size);
|
||||
std::string getStoreName()const;
|
||||
void setStoreName(const std::string& storeName);
|
||||
int getPage()const;
|
||||
void setPage(int page);
|
||||
|
||||
private:
|
||||
int size_;
|
||||
std::string storeName_;
|
||||
int page_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHLIBRARIESREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_FETCHLIBRARIESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHLIBRARIESRESULT_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 FetchLibrariesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FetchLibrariesResult();
|
||||
explicit FetchLibrariesResult(const std::string &payload);
|
||||
~FetchLibrariesResult();
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<std::string> getLibrary()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<std::string> library_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_FETCHLIBRARIESRESULT_H_
|
||||
@@ -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;
|
||||
};
|
||||
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_
|
||||
@@ -37,18 +37,18 @@ namespace AlibabaCloud
|
||||
GetDownloadUrlResult();
|
||||
explicit GetDownloadUrlResult(const std::string &payload);
|
||||
~GetDownloadUrlResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getDownloadUrl()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getDownloadUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string downloadUrl_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string downloadUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,30 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetDownloadUrlsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string code;
|
||||
std::string downloadUrl;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string code;
|
||||
std::string downloadUrl;
|
||||
};
|
||||
|
||||
|
||||
GetDownloadUrlsResult();
|
||||
explicit GetDownloadUrlsResult(const std::string &payload);
|
||||
~GetDownloadUrlsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
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_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;
|
||||
Event getEvent()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Event event_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDPHOTO_MODEL_GETEVENTRESULT_H_
|
||||
@@ -32,30 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetFramedPhotoUrlsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string code;
|
||||
std::string framedPhotoUrl;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string code;
|
||||
std::string framedPhotoUrl;
|
||||
};
|
||||
|
||||
|
||||
GetFramedPhotoUrlsResult();
|
||||
explicit GetFramedPhotoUrlsResult(const std::string &payload);
|
||||
~GetFramedPhotoUrlsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,44 +32,44 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetLibraryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Library
|
||||
{
|
||||
struct Quota
|
||||
{
|
||||
long activeSize;
|
||||
long totalQuota;
|
||||
int facesCount;
|
||||
int photosCount;
|
||||
long totalTrashQuota;
|
||||
long inactiveSize;
|
||||
long usedQuota;
|
||||
int videosCount;
|
||||
};
|
||||
struct AutoCleanConfig
|
||||
{
|
||||
int autoCleanDays;
|
||||
bool autoCleanEnabled;
|
||||
};
|
||||
std::vector<Quota> quota;
|
||||
std::vector<AutoCleanConfig> autoCleanConfig;
|
||||
};
|
||||
struct Library
|
||||
{
|
||||
struct Quota
|
||||
{
|
||||
long activeSize;
|
||||
long totalQuota;
|
||||
int facesCount;
|
||||
int photosCount;
|
||||
long totalTrashQuota;
|
||||
long inactiveSize;
|
||||
long usedQuota;
|
||||
int videosCount;
|
||||
};
|
||||
struct AutoCleanConfig
|
||||
{
|
||||
int autoCleanDays;
|
||||
bool autoCleanEnabled;
|
||||
};
|
||||
Quota quota;
|
||||
AutoCleanConfig autoCleanConfig;
|
||||
};
|
||||
|
||||
|
||||
GetLibraryResult();
|
||||
explicit GetLibraryResult(const std::string &payload);
|
||||
~GetLibraryResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Library> getLibrary()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
Library getLibrary()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Library> library_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Library library_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,43 +32,44 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotoStoreResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PhotoStore
|
||||
{
|
||||
struct Bucket
|
||||
{
|
||||
std::string state;
|
||||
std::string region;
|
||||
std::string acl;
|
||||
std::string name;
|
||||
};
|
||||
int autoCleanDays;
|
||||
long defaultQuota;
|
||||
long ctime;
|
||||
long mtime;
|
||||
long defaultTrashQuota;
|
||||
long id;
|
||||
bool autoCleanEnabled;
|
||||
std::vector<Bucket> buckets;
|
||||
std::string name;
|
||||
std::string remark;
|
||||
};
|
||||
struct PhotoStore
|
||||
{
|
||||
struct Bucket
|
||||
{
|
||||
std::string state;
|
||||
std::string region;
|
||||
std::string acl;
|
||||
std::string name;
|
||||
};
|
||||
int autoCleanDays;
|
||||
long defaultQuota;
|
||||
std::string idStr;
|
||||
long ctime;
|
||||
long mtime;
|
||||
long defaultTrashQuota;
|
||||
long id;
|
||||
bool autoCleanEnabled;
|
||||
std::vector<Bucket> buckets;
|
||||
std::string name;
|
||||
std::string remark;
|
||||
};
|
||||
|
||||
|
||||
GetPhotoStoreResult();
|
||||
explicit GetPhotoStoreResult(const std::string &payload);
|
||||
~GetPhotoStoreResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<PhotoStore> getPhotoStore()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
PhotoStore getPhotoStore()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<PhotoStore> photoStore_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
PhotoStore photoStore_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,41 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosByMd5sResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
GetPhotosByMd5sResult();
|
||||
explicit GetPhotosByMd5sResult(const std::string &payload);
|
||||
~GetPhotosByMd5sResult();
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Photo> photos_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Photo> photos_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,43 +32,44 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long inactiveTime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long inactiveTime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
GetPhotosResult();
|
||||
explicit GetPhotosResult(const std::string &payload);
|
||||
~GetPhotosResult();
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Photo> photos_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Photo> photos_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,30 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPrivateAccessUrlsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string accessUrl;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string accessUrl;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
GetPrivateAccessUrlsResult();
|
||||
explicit GetPrivateAccessUrlsResult(const std::string &payload);
|
||||
~GetPrivateAccessUrlsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,30 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPublicAccessUrlsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string accessUrl;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string photoIdStr;
|
||||
std::string accessUrl;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
GetPublicAccessUrlsResult();
|
||||
explicit GetPublicAccessUrlsResult(const std::string &payload);
|
||||
~GetPublicAccessUrlsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,31 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetQuotaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Quota
|
||||
{
|
||||
long totalQuota;
|
||||
int facesCount;
|
||||
int photosCount;
|
||||
long usedQuota;
|
||||
int videosCount;
|
||||
};
|
||||
struct Quota
|
||||
{
|
||||
long totalQuota;
|
||||
int facesCount;
|
||||
int photosCount;
|
||||
long usedQuota;
|
||||
int videosCount;
|
||||
};
|
||||
|
||||
|
||||
GetQuotaResult();
|
||||
explicit GetQuotaResult(const std::string &payload);
|
||||
~GetQuotaResult();
|
||||
std::string getAction()const;
|
||||
std::vector<Quota> getQuota()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
Quota getQuota()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::vector<Quota> quota_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
Quota quota_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,43 +32,44 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetSimilarPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long inactiveTime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long inactiveTime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
GetSimilarPhotosResult();
|
||||
explicit GetSimilarPhotosResult(const std::string &payload);
|
||||
~GetSimilarPhotosResult();
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Photo> photos_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Photo> photos_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,18 +37,18 @@ namespace AlibabaCloud
|
||||
GetThumbnailResult();
|
||||
explicit GetThumbnailResult(const std::string &payload);
|
||||
~GetThumbnailResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getThumbnailUrl()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getThumbnailUrl()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string thumbnailUrl_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string thumbnailUrl_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,30 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetThumbnailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string thumbnailUrl;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string message;
|
||||
std::string thumbnailUrl;
|
||||
std::string photoIdStr;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
GetThumbnailsResult();
|
||||
explicit GetThumbnailsResult(const std::string &payload);
|
||||
~GetThumbnailsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,18 +37,18 @@ namespace AlibabaCloud
|
||||
GetVideoCoverResult();
|
||||
explicit GetVideoCoverResult(const std::string &payload);
|
||||
~GetVideoCoverResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getVideoCoverUrl()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getVideoCoverUrl()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string videoCoverUrl_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string videoCoverUrl_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT InactivatePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
InactivatePhotosResult();
|
||||
explicit InactivatePhotosResult(const std::string &payload);
|
||||
~InactivatePhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
LikePhotoResult();
|
||||
explicit LikePhotoResult(const std::string &payload);
|
||||
~LikePhotoResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,32 +32,34 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
long mtime;
|
||||
};
|
||||
|
||||
|
||||
ListAlbumPhotosResult();
|
||||
explicit ListAlbumPhotosResult(const std::string &payload);
|
||||
~ListAlbumPhotosResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()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<Result> results_;
|
||||
std::string code_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,51 +32,53 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Album
|
||||
{
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
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 state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
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;
|
||||
};
|
||||
Cover cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListAlbumsResult();
|
||||
explicit ListAlbumsResult(const std::string &payload);
|
||||
~ListAlbumsResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Album> getAlbums()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
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 nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Album> albums_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Album> albums_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_
|
||||
@@ -32,32 +32,34 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
long mtime;
|
||||
};
|
||||
|
||||
|
||||
ListFacePhotosResult();
|
||||
explicit ListFacePhotosResult(const std::string &payload);
|
||||
~ListFacePhotosResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()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<Result> results_;
|
||||
std::string code_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,53 +32,55 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Face
|
||||
{
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
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;
|
||||
};
|
||||
bool isMe;
|
||||
std::vector<Cover> cover;
|
||||
std::string state;
|
||||
long ctime;
|
||||
int photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::vector<std::string> axis;
|
||||
std::string name;
|
||||
};
|
||||
struct Face
|
||||
{
|
||||
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;
|
||||
};
|
||||
bool isMe;
|
||||
Cover cover;
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
int photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
std::vector<std::string> axis;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListFacesResult();
|
||||
explicit ListFacesResult(const std::string &payload);
|
||||
~ListFacesResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Face> getFaces()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Face> getFaces()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Face> faces_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Face> faces_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,32 +32,33 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
};
|
||||
|
||||
|
||||
ListMomentPhotosResult();
|
||||
explicit ListMomentPhotosResult(const std::string &payload);
|
||||
~ListMomentPhotosResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()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<Result> results_;
|
||||
std::string code_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,37 +32,38 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Moment
|
||||
{
|
||||
std::string state;
|
||||
long ctime;
|
||||
int photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
long takenAt;
|
||||
std::string locationName;
|
||||
};
|
||||
struct Moment
|
||||
{
|
||||
std::string idStr;
|
||||
std::string state;
|
||||
long ctime;
|
||||
int photosCount;
|
||||
long mtime;
|
||||
long id;
|
||||
long takenAt;
|
||||
std::string locationName;
|
||||
};
|
||||
|
||||
|
||||
ListMomentsResult();
|
||||
explicit ListMomentsResult(const std::string &payload);
|
||||
~ListMomentsResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Moment> getMoments()const;
|
||||
std::string getCode()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Moment> getMoments()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<Moment> moments_;
|
||||
std::string code_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Moment> moments_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Face
|
||||
{
|
||||
long faceId;
|
||||
std::string faceName;
|
||||
std::vector<std::string> axis;
|
||||
};
|
||||
struct Face
|
||||
{
|
||||
long faceId;
|
||||
std::string faceIdStr;
|
||||
std::string faceName;
|
||||
std::vector<std::string> axis;
|
||||
};
|
||||
|
||||
|
||||
ListPhotoFacesResult();
|
||||
explicit ListPhotoFacesResult(const std::string &payload);
|
||||
~ListPhotoFacesResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Face> getFaces()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Face> getFaces()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Face> faces_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Face> faces_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,41 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoStoresResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PhotoStore
|
||||
{
|
||||
struct Bucket
|
||||
{
|
||||
std::string state;
|
||||
std::string region;
|
||||
std::string name;
|
||||
};
|
||||
int autoCleanDays;
|
||||
long defaultQuota;
|
||||
long ctime;
|
||||
long mtime;
|
||||
long id;
|
||||
bool autoCleanEnabled;
|
||||
std::vector<PhotoStore::Bucket> buckets;
|
||||
std::string name;
|
||||
std::string remark;
|
||||
};
|
||||
struct PhotoStore
|
||||
{
|
||||
struct Bucket
|
||||
{
|
||||
std::string state;
|
||||
std::string region;
|
||||
std::string name;
|
||||
};
|
||||
int autoCleanDays;
|
||||
long defaultQuota;
|
||||
std::string idStr;
|
||||
long ctime;
|
||||
long mtime;
|
||||
long id;
|
||||
bool autoCleanEnabled;
|
||||
std::vector<PhotoStore::Bucket> buckets;
|
||||
std::string name;
|
||||
std::string remark;
|
||||
};
|
||||
|
||||
|
||||
ListPhotoStoresResult();
|
||||
explicit ListPhotoStoresResult(const std::string &payload);
|
||||
~ListPhotoStoresResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<PhotoStore> getPhotoStores()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<PhotoStore> getPhotoStores()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<PhotoStore> photoStores_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<PhotoStore> photoStores_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,30 +32,31 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
bool isSubTag;
|
||||
std::string parentTag;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string idStr;
|
||||
bool isSubTag;
|
||||
std::string parentTag;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListPhotoTagsResult();
|
||||
explicit ListPhotoTagsResult(const std::string &payload);
|
||||
~ListPhotoTagsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,46 +32,47 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long inactiveTime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
long inactiveTime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
ListPhotosResult();
|
||||
explicit ListPhotosResult(const std::string &payload);
|
||||
~ListPhotosResult();
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Photo> getPhotos()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Photo> photos_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Photo> photos_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,33 +32,33 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListRegisteredTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RegisteredTag
|
||||
{
|
||||
struct TagValue
|
||||
{
|
||||
std::string lang;
|
||||
std::string text;
|
||||
};
|
||||
std::string tagKey;
|
||||
std::vector<RegisteredTag::TagValue> tagValues;
|
||||
};
|
||||
struct RegisteredTag
|
||||
{
|
||||
struct TagValue
|
||||
{
|
||||
std::string lang;
|
||||
std::string text;
|
||||
};
|
||||
std::string tagKey;
|
||||
std::vector<RegisteredTag::TagValue> tagValues;
|
||||
};
|
||||
|
||||
|
||||
ListRegisteredTagsResult();
|
||||
explicit ListRegisteredTagsResult(const std::string &payload);
|
||||
~ListRegisteredTagsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<RegisteredTag> getRegisteredTags()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<RegisteredTag> getRegisteredTags()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<RegisteredTag> registeredTags_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<RegisteredTag> registeredTags_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,32 +32,33 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
long photoId;
|
||||
std::string state;
|
||||
std::string photoIdStr;
|
||||
};
|
||||
|
||||
|
||||
ListTagPhotosResult();
|
||||
explicit ListTagPhotosResult(const std::string &payload);
|
||||
~ListTagPhotosResult();
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getNextCursor()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()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<Result> results_;
|
||||
std::string code_;
|
||||
std::string nextCursor_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,45 +32,47 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
struct Cover
|
||||
{
|
||||
bool isVideo;
|
||||
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;
|
||||
bool isSubTag;
|
||||
std::string parentTag;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
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;
|
||||
};
|
||||
Cover cover;
|
||||
std::string idStr;
|
||||
bool isSubTag;
|
||||
std::string parentTag;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListTagsResult();
|
||||
explicit ListTagsResult(const std::string &payload);
|
||||
~ListTagsResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,44 +32,45 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
ListTimeLinePhotosResult();
|
||||
explicit ListTimeLinePhotosResult(const std::string &payload);
|
||||
~ListTimeLinePhotosResult();
|
||||
std::vector<Photo> getPhotos()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Photo> getPhotos()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Photo> photos_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Photo> photos_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,52 +32,53 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TimeLine
|
||||
{
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
std::vector<TimeLine::Photo> photos;
|
||||
int totalCount;
|
||||
long endTime;
|
||||
long startTime;
|
||||
int photosCount;
|
||||
};
|
||||
struct TimeLine
|
||||
{
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
long like;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
std::vector<TimeLine::Photo> photos;
|
||||
int totalCount;
|
||||
long endTime;
|
||||
long startTime;
|
||||
int photosCount;
|
||||
};
|
||||
|
||||
|
||||
ListTimeLinesResult();
|
||||
explicit ListTimeLinesResult(const std::string &payload);
|
||||
~ListTimeLinesResult();
|
||||
std::vector<TimeLine> getTimeLines()const;
|
||||
int getNextCursor()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<TimeLine> getTimeLines()const;
|
||||
int getNextCursor()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TimeLine> timeLines_;
|
||||
int nextCursor_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<TimeLine> timeLines_;
|
||||
int nextCursor_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT MergeFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
MergeFacesResult();
|
||||
explicit MergeFacesResult(const std::string &payload);
|
||||
~MergeFacesResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveAlbumPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
MoveAlbumPhotosResult();
|
||||
explicit MoveAlbumPhotosResult(const std::string &payload);
|
||||
~MoveAlbumPhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveFacePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
MoveFacePhotosResult();
|
||||
explicit MoveFacePhotosResult(const std::string &payload);
|
||||
~MoveFacePhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT ReactivatePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
ReactivatePhotosResult();
|
||||
explicit ReactivatePhotosResult(const std::string &payload);
|
||||
~ReactivatePhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,41 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT RegisterPhotoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string remark;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
RegisterPhotoResult();
|
||||
explicit RegisterPhotoResult(const std::string &payload);
|
||||
~RegisterPhotoResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Photo> getPhoto()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
Photo getPhoto()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Photo> photo_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
Photo photo_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
RegisterTagResult();
|
||||
explicit RegisterTagResult(const std::string &payload);
|
||||
~RegisterTagResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveAlbumPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
RemoveAlbumPhotosResult();
|
||||
explicit RemoveAlbumPhotosResult(const std::string &payload);
|
||||
~RemoveAlbumPhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,29 +32,30 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveFacePhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
struct Result
|
||||
{
|
||||
std::string message;
|
||||
std::string idStr;
|
||||
long id;
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
RemoveFacePhotosResult();
|
||||
explicit RemoveFacePhotosResult(const std::string &payload);
|
||||
~RemoveFacePhotosResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::vector<Result> results_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
RenameAlbumResult();
|
||||
explicit RenameAlbumResult(const std::string &payload);
|
||||
~RenameAlbumResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
RenameFaceResult();
|
||||
explicit RenameFaceResult(const std::string &payload);
|
||||
~RenameFaceResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,42 +32,43 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDPHOTO_EXPORT SearchPhotosResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
struct Photo
|
||||
{
|
||||
bool isVideo;
|
||||
long shareExpireTime;
|
||||
std::string idStr;
|
||||
long size;
|
||||
std::string title;
|
||||
long mtime;
|
||||
std::string state;
|
||||
long ctime;
|
||||
std::string fileId;
|
||||
long height;
|
||||
long id;
|
||||
long width;
|
||||
long takenAt;
|
||||
std::string location;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
SearchPhotosResult();
|
||||
explicit SearchPhotosResult(const std::string &payload);
|
||||
~SearchPhotosResult();
|
||||
std::vector<Photo> getPhotos()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::vector<Photo> getPhotos()const;
|
||||
int getTotalCount()const;
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Photo> photos_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::vector<Photo> photos_;
|
||||
int totalCount_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
SetAlbumCoverResult();
|
||||
explicit SetAlbumCoverResult(const std::string &payload);
|
||||
~SetAlbumCoverResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
SetFaceCoverResult();
|
||||
explicit SetFaceCoverResult(const std::string &payload);
|
||||
~SetFaceCoverResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
SetMeResult();
|
||||
explicit SetMeResult(const std::string &payload);
|
||||
~SetMeResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
SetQuotaResult();
|
||||
explicit SetQuotaResult(const std::string &payload);
|
||||
~SetQuotaResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
TagPhotoResult();
|
||||
explicit TagPhotoResult(const std::string &payload);
|
||||
~TagPhotoResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
ToggleFeaturesResult();
|
||||
explicit ToggleFeaturesResult(const std::string &payload);
|
||||
~ToggleFeaturesResult();
|
||||
std::string getAction()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
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_;
|
||||
std::string action_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::CloudPhoto;
|
||||
using namespace AlibabaCloud::CloudPhoto::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "CloudPhoto";
|
||||
}
|
||||
|
||||
CloudPhotoClient::CloudPhotoClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "cloudphoto");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudphoto");
|
||||
}
|
||||
|
||||
CloudPhotoClient::CloudPhotoClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "cloudphoto");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudphoto");
|
||||
}
|
||||
|
||||
CloudPhotoClient::CloudPhotoClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "cloudphoto");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudphoto");
|
||||
}
|
||||
|
||||
CloudPhotoClient::~CloudPhotoClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome CloudPhotoClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
CloudPhotoClient::RemoveFacePhotosOutcome CloudPhotoClient::removeFacePhotos(const RemoveFacePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveFacePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -97,7 +89,7 @@ CloudPhotoClient::RemoveFacePhotosOutcomeCallable CloudPhotoClient::removeFacePh
|
||||
|
||||
CloudPhotoClient::ReactivatePhotosOutcome CloudPhotoClient::reactivatePhotos(const ReactivatePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReactivatePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -133,7 +125,7 @@ CloudPhotoClient::ReactivatePhotosOutcomeCallable CloudPhotoClient::reactivatePh
|
||||
|
||||
CloudPhotoClient::GetQuotaOutcome CloudPhotoClient::getQuota(const GetQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -169,7 +161,7 @@ CloudPhotoClient::GetQuotaOutcomeCallable CloudPhotoClient::getQuotaCallable(con
|
||||
|
||||
CloudPhotoClient::GetThumbnailsOutcome CloudPhotoClient::getThumbnails(const GetThumbnailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetThumbnailsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -205,7 +197,7 @@ CloudPhotoClient::GetThumbnailsOutcomeCallable CloudPhotoClient::getThumbnailsCa
|
||||
|
||||
CloudPhotoClient::DeleteFacesOutcome CloudPhotoClient::deleteFaces(const DeleteFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFacesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -241,7 +233,7 @@ CloudPhotoClient::DeleteFacesOutcomeCallable CloudPhotoClient::deleteFacesCallab
|
||||
|
||||
CloudPhotoClient::AddAlbumPhotosOutcome CloudPhotoClient::addAlbumPhotos(const AddAlbumPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddAlbumPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -277,7 +269,7 @@ CloudPhotoClient::AddAlbumPhotosOutcomeCallable CloudPhotoClient::addAlbumPhotos
|
||||
|
||||
CloudPhotoClient::ListFacesOutcome CloudPhotoClient::listFaces(const ListFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListFacesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -313,7 +305,7 @@ CloudPhotoClient::ListFacesOutcomeCallable CloudPhotoClient::listFacesCallable(c
|
||||
|
||||
CloudPhotoClient::MoveFacePhotosOutcome CloudPhotoClient::moveFacePhotos(const MoveFacePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MoveFacePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -347,9 +339,45 @@ CloudPhotoClient::MoveFacePhotosOutcomeCallable CloudPhotoClient::moveFacePhotos
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::DeleteEventOutcome CloudPhotoClient::deleteEvent(const DeleteEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
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();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -385,7 +413,7 @@ CloudPhotoClient::ListPhotosOutcomeCallable CloudPhotoClient::listPhotosCallable
|
||||
|
||||
CloudPhotoClient::RegisterTagOutcome CloudPhotoClient::registerTag(const RegisterTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RegisterTagOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -421,7 +449,7 @@ CloudPhotoClient::RegisterTagOutcomeCallable CloudPhotoClient::registerTagCallab
|
||||
|
||||
CloudPhotoClient::ListTimeLinePhotosOutcome CloudPhotoClient::listTimeLinePhotos(const ListTimeLinePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTimeLinePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -457,7 +485,7 @@ CloudPhotoClient::ListTimeLinePhotosOutcomeCallable CloudPhotoClient::listTimeLi
|
||||
|
||||
CloudPhotoClient::DeletePhotosOutcome CloudPhotoClient::deletePhotos(const DeletePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -493,7 +521,7 @@ CloudPhotoClient::DeletePhotosOutcomeCallable CloudPhotoClient::deletePhotosCall
|
||||
|
||||
CloudPhotoClient::MergeFacesOutcome CloudPhotoClient::mergeFaces(const MergeFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MergeFacesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -529,7 +557,7 @@ CloudPhotoClient::MergeFacesOutcomeCallable CloudPhotoClient::mergeFacesCallable
|
||||
|
||||
CloudPhotoClient::GetPhotosByMd5sOutcome CloudPhotoClient::getPhotosByMd5s(const GetPhotosByMd5sRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPhotosByMd5sOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -563,9 +591,81 @@ CloudPhotoClient::GetPhotosByMd5sOutcomeCallable CloudPhotoClient::getPhotosByMd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::FetchLibrariesOutcome CloudPhotoClient::fetchLibraries(const FetchLibrariesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FetchLibrariesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FetchLibrariesOutcome(FetchLibrariesResult(outcome.result()));
|
||||
else
|
||||
return FetchLibrariesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::fetchLibrariesAsync(const FetchLibrariesRequest& request, const FetchLibrariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, fetchLibraries(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::FetchLibrariesOutcomeCallable CloudPhotoClient::fetchLibrariesCallable(const FetchLibrariesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FetchLibrariesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->fetchLibraries(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::FetchAlbumTagPhotosOutcome CloudPhotoClient::fetchAlbumTagPhotos(const FetchAlbumTagPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return FetchAlbumTagPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return FetchAlbumTagPhotosOutcome(FetchAlbumTagPhotosResult(outcome.result()));
|
||||
else
|
||||
return FetchAlbumTagPhotosOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudPhotoClient::fetchAlbumTagPhotosAsync(const FetchAlbumTagPhotosRequest& request, const FetchAlbumTagPhotosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, fetchAlbumTagPhotos(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudPhotoClient::FetchAlbumTagPhotosOutcomeCallable CloudPhotoClient::fetchAlbumTagPhotosCallable(const FetchAlbumTagPhotosRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<FetchAlbumTagPhotosOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->fetchAlbumTagPhotos(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::CreateTransactionOutcome CloudPhotoClient::createTransaction(const CreateTransactionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTransactionOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -601,7 +701,7 @@ CloudPhotoClient::CreateTransactionOutcomeCallable CloudPhotoClient::createTrans
|
||||
|
||||
CloudPhotoClient::InactivatePhotosOutcome CloudPhotoClient::inactivatePhotos(const InactivatePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InactivatePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -637,7 +737,7 @@ CloudPhotoClient::InactivatePhotosOutcomeCallable CloudPhotoClient::inactivatePh
|
||||
|
||||
CloudPhotoClient::CreatePhotoStoreOutcome CloudPhotoClient::createPhotoStore(const CreatePhotoStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePhotoStoreOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -673,7 +773,7 @@ CloudPhotoClient::CreatePhotoStoreOutcomeCallable CloudPhotoClient::createPhotoS
|
||||
|
||||
CloudPhotoClient::TagPhotoOutcome CloudPhotoClient::tagPhoto(const TagPhotoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagPhotoOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -709,7 +809,7 @@ CloudPhotoClient::TagPhotoOutcomeCallable CloudPhotoClient::tagPhotoCallable(con
|
||||
|
||||
CloudPhotoClient::GetLibraryOutcome CloudPhotoClient::getLibrary(const GetLibraryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetLibraryOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -745,7 +845,7 @@ CloudPhotoClient::GetLibraryOutcomeCallable CloudPhotoClient::getLibraryCallable
|
||||
|
||||
CloudPhotoClient::SetQuotaOutcome CloudPhotoClient::setQuota(const SetQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -781,7 +881,7 @@ CloudPhotoClient::SetQuotaOutcomeCallable CloudPhotoClient::setQuotaCallable(con
|
||||
|
||||
CloudPhotoClient::ListAlbumPhotosOutcome CloudPhotoClient::listAlbumPhotos(const ListAlbumPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAlbumPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -817,7 +917,7 @@ CloudPhotoClient::ListAlbumPhotosOutcomeCallable CloudPhotoClient::listAlbumPhot
|
||||
|
||||
CloudPhotoClient::RemoveAlbumPhotosOutcome CloudPhotoClient::removeAlbumPhotos(const RemoveAlbumPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveAlbumPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -853,7 +953,7 @@ CloudPhotoClient::RemoveAlbumPhotosOutcomeCallable CloudPhotoClient::removeAlbum
|
||||
|
||||
CloudPhotoClient::ListAlbumsOutcome CloudPhotoClient::listAlbums(const ListAlbumsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAlbumsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -889,7 +989,7 @@ CloudPhotoClient::ListAlbumsOutcomeCallable CloudPhotoClient::listAlbumsCallable
|
||||
|
||||
CloudPhotoClient::ListPhotoFacesOutcome CloudPhotoClient::listPhotoFaces(const ListPhotoFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPhotoFacesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -925,7 +1025,7 @@ CloudPhotoClient::ListPhotoFacesOutcomeCallable CloudPhotoClient::listPhotoFaces
|
||||
|
||||
CloudPhotoClient::RenameAlbumOutcome CloudPhotoClient::renameAlbum(const RenameAlbumRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenameAlbumOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -961,7 +1061,7 @@ CloudPhotoClient::RenameAlbumOutcomeCallable CloudPhotoClient::renameAlbumCallab
|
||||
|
||||
CloudPhotoClient::ActivatePhotosOutcome CloudPhotoClient::activatePhotos(const ActivatePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ActivatePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -997,7 +1097,7 @@ CloudPhotoClient::ActivatePhotosOutcomeCallable CloudPhotoClient::activatePhotos
|
||||
|
||||
CloudPhotoClient::GetPrivateAccessUrlsOutcome CloudPhotoClient::getPrivateAccessUrls(const GetPrivateAccessUrlsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPrivateAccessUrlsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1033,7 +1133,7 @@ CloudPhotoClient::GetPrivateAccessUrlsOutcomeCallable CloudPhotoClient::getPriva
|
||||
|
||||
CloudPhotoClient::GetSimilarPhotosOutcome CloudPhotoClient::getSimilarPhotos(const GetSimilarPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSimilarPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1067,9 +1167,45 @@ CloudPhotoClient::GetSimilarPhotosOutcomeCallable CloudPhotoClient::getSimilarPh
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::ListEventsOutcome CloudPhotoClient::listEvents(const ListEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
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();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVideoCoverOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1105,7 +1241,7 @@ CloudPhotoClient::GetVideoCoverOutcomeCallable CloudPhotoClient::getVideoCoverCa
|
||||
|
||||
CloudPhotoClient::GetFramedPhotoUrlsOutcome CloudPhotoClient::getFramedPhotoUrls(const GetFramedPhotoUrlsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFramedPhotoUrlsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1139,9 +1275,45 @@ CloudPhotoClient::GetFramedPhotoUrlsOutcomeCallable CloudPhotoClient::getFramedP
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetEventOutcome CloudPhotoClient::getEvent(const GetEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
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();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetMeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1177,7 +1349,7 @@ CloudPhotoClient::SetMeOutcomeCallable CloudPhotoClient::setMeCallable(const Set
|
||||
|
||||
CloudPhotoClient::ListTagPhotosOutcome CloudPhotoClient::listTagPhotos(const ListTagPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1213,7 +1385,7 @@ CloudPhotoClient::ListTagPhotosOutcomeCallable CloudPhotoClient::listTagPhotosCa
|
||||
|
||||
CloudPhotoClient::DeleteAlbumsOutcome CloudPhotoClient::deleteAlbums(const DeleteAlbumsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAlbumsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1249,7 +1421,7 @@ CloudPhotoClient::DeleteAlbumsOutcomeCallable CloudPhotoClient::deleteAlbumsCall
|
||||
|
||||
CloudPhotoClient::GetDownloadUrlsOutcome CloudPhotoClient::getDownloadUrls(const GetDownloadUrlsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDownloadUrlsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1285,7 +1457,7 @@ CloudPhotoClient::GetDownloadUrlsOutcomeCallable CloudPhotoClient::getDownloadUr
|
||||
|
||||
CloudPhotoClient::GetPhotosOutcome CloudPhotoClient::getPhotos(const GetPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1321,7 +1493,7 @@ CloudPhotoClient::GetPhotosOutcomeCallable CloudPhotoClient::getPhotosCallable(c
|
||||
|
||||
CloudPhotoClient::RegisterPhotoOutcome CloudPhotoClient::registerPhoto(const RegisterPhotoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RegisterPhotoOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1357,7 +1529,7 @@ CloudPhotoClient::RegisterPhotoOutcomeCallable CloudPhotoClient::registerPhotoCa
|
||||
|
||||
CloudPhotoClient::EditPhotoStoreOutcome CloudPhotoClient::editPhotoStore(const EditPhotoStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EditPhotoStoreOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1393,7 +1565,7 @@ CloudPhotoClient::EditPhotoStoreOutcomeCallable CloudPhotoClient::editPhotoStore
|
||||
|
||||
CloudPhotoClient::ListTimeLinesOutcome CloudPhotoClient::listTimeLines(const ListTimeLinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTimeLinesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1429,7 +1601,7 @@ CloudPhotoClient::ListTimeLinesOutcomeCallable CloudPhotoClient::listTimeLinesCa
|
||||
|
||||
CloudPhotoClient::SearchPhotosOutcome CloudPhotoClient::searchPhotos(const SearchPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1465,7 +1637,7 @@ CloudPhotoClient::SearchPhotosOutcomeCallable CloudPhotoClient::searchPhotosCall
|
||||
|
||||
CloudPhotoClient::ToggleFeaturesOutcome CloudPhotoClient::toggleFeatures(const ToggleFeaturesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ToggleFeaturesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1501,7 +1673,7 @@ CloudPhotoClient::ToggleFeaturesOutcomeCallable CloudPhotoClient::toggleFeatures
|
||||
|
||||
CloudPhotoClient::ListRegisteredTagsOutcome CloudPhotoClient::listRegisteredTags(const ListRegisteredTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRegisteredTagsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1537,7 +1709,7 @@ CloudPhotoClient::ListRegisteredTagsOutcomeCallable CloudPhotoClient::listRegist
|
||||
|
||||
CloudPhotoClient::DeletePhotoStoreOutcome CloudPhotoClient::deletePhotoStore(const DeletePhotoStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePhotoStoreOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1571,9 +1743,45 @@ CloudPhotoClient::DeletePhotoStoreOutcomeCallable CloudPhotoClient::deletePhotoS
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::CreateEventOutcome CloudPhotoClient::createEvent(const CreateEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
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();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPhotoStoreOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1609,7 +1817,7 @@ CloudPhotoClient::GetPhotoStoreOutcomeCallable CloudPhotoClient::getPhotoStoreCa
|
||||
|
||||
CloudPhotoClient::ListMomentPhotosOutcome CloudPhotoClient::listMomentPhotos(const ListMomentPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMomentPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1645,7 +1853,7 @@ CloudPhotoClient::ListMomentPhotosOutcomeCallable CloudPhotoClient::listMomentPh
|
||||
|
||||
CloudPhotoClient::GetThumbnailOutcome CloudPhotoClient::getThumbnail(const GetThumbnailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetThumbnailOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1681,7 +1889,7 @@ CloudPhotoClient::GetThumbnailOutcomeCallable CloudPhotoClient::getThumbnailCall
|
||||
|
||||
CloudPhotoClient::SetFaceCoverOutcome CloudPhotoClient::setFaceCover(const SetFaceCoverRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetFaceCoverOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1717,7 +1925,7 @@ CloudPhotoClient::SetFaceCoverOutcomeCallable CloudPhotoClient::setFaceCoverCall
|
||||
|
||||
CloudPhotoClient::CreatePhotoOutcome CloudPhotoClient::createPhoto(const CreatePhotoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePhotoOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1753,7 +1961,7 @@ CloudPhotoClient::CreatePhotoOutcomeCallable CloudPhotoClient::createPhotoCallab
|
||||
|
||||
CloudPhotoClient::MoveAlbumPhotosOutcome CloudPhotoClient::moveAlbumPhotos(const MoveAlbumPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MoveAlbumPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1787,9 +1995,45 @@ CloudPhotoClient::MoveAlbumPhotosOutcomeCallable CloudPhotoClient::moveAlbumPhot
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::EditEventOutcome CloudPhotoClient::editEvent(const EditEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
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();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDownloadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1825,7 +2069,7 @@ CloudPhotoClient::GetDownloadUrlOutcomeCallable CloudPhotoClient::getDownloadUrl
|
||||
|
||||
CloudPhotoClient::CreateAlbumOutcome CloudPhotoClient::createAlbum(const CreateAlbumRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAlbumOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1861,7 +2105,7 @@ CloudPhotoClient::CreateAlbumOutcomeCallable CloudPhotoClient::createAlbumCallab
|
||||
|
||||
CloudPhotoClient::ListPhotoTagsOutcome CloudPhotoClient::listPhotoTags(const ListPhotoTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPhotoTagsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1897,7 +2141,7 @@ CloudPhotoClient::ListPhotoTagsOutcomeCallable CloudPhotoClient::listPhotoTagsCa
|
||||
|
||||
CloudPhotoClient::LikePhotoOutcome CloudPhotoClient::likePhoto(const LikePhotoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return LikePhotoOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1933,7 +2177,7 @@ CloudPhotoClient::LikePhotoOutcomeCallable CloudPhotoClient::likePhotoCallable(c
|
||||
|
||||
CloudPhotoClient::ListPhotoStoresOutcome CloudPhotoClient::listPhotoStores(const ListPhotoStoresRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPhotoStoresOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1967,9 +2211,45 @@ CloudPhotoClient::ListPhotoStoresOutcomeCallable CloudPhotoClient::listPhotoStor
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudPhotoClient::GetAlbumsByNamesOutcome CloudPhotoClient::getAlbumsByNames(const GetAlbumsByNamesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
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();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPublicAccessUrlsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2005,7 +2285,7 @@ CloudPhotoClient::GetPublicAccessUrlsOutcomeCallable CloudPhotoClient::getPublic
|
||||
|
||||
CloudPhotoClient::EditPhotosOutcome CloudPhotoClient::editPhotos(const EditPhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EditPhotosOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2041,7 +2321,7 @@ CloudPhotoClient::EditPhotosOutcomeCallable CloudPhotoClient::editPhotosCallable
|
||||
|
||||
CloudPhotoClient::SetAlbumCoverOutcome CloudPhotoClient::setAlbumCover(const SetAlbumCoverRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetAlbumCoverOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2077,7 +2357,7 @@ CloudPhotoClient::SetAlbumCoverOutcomeCallable CloudPhotoClient::setAlbumCoverCa
|
||||
|
||||
CloudPhotoClient::RenameFaceOutcome CloudPhotoClient::renameFace(const RenameFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenameFaceOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2113,7 +2393,7 @@ CloudPhotoClient::RenameFaceOutcomeCallable CloudPhotoClient::renameFaceCallable
|
||||
|
||||
CloudPhotoClient::ListMomentsOutcome CloudPhotoClient::listMoments(const ListMomentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMomentsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2149,7 +2429,7 @@ CloudPhotoClient::ListMomentsOutcomeCallable CloudPhotoClient::listMomentsCallab
|
||||
|
||||
CloudPhotoClient::ListTagsOutcome CloudPhotoClient::listTags(const ListTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2185,7 +2465,7 @@ CloudPhotoClient::ListTagsOutcomeCallable CloudPhotoClient::listTagsCallable(con
|
||||
|
||||
CloudPhotoClient::ListFacePhotosOutcome CloudPhotoClient::listFacePhotos(const ListFacePhotosRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListFacePhotosOutcome(endpointOutcome.error());
|
||||
|
||||
|
||||
@@ -40,44 +40,46 @@ void ActivatePhotosResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResults = value["Results"]["Result"];
|
||||
for (auto value : allResults)
|
||||
{
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
resultsObject.message = value["Message"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
auto allResults = value["Results"]["Result"];
|
||||
for (auto value : allResults)
|
||||
{
|
||||
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())
|
||||
resultsObject.message = value["Message"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
}
|
||||
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 ActivatePhotosResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string ActivatePhotosResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ActivatePhotosResult::Result> ActivatePhotosResult::getResults()const
|
||||
{
|
||||
return results_;
|
||||
}
|
||||
|
||||
std::string ActivatePhotosResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ActivatePhotosResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string ActivatePhotosResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ActivatePhotosResult::Result> ActivatePhotosResult::getResults()const
|
||||
{
|
||||
return results_;
|
||||
}
|
||||
|
||||
std::string ActivatePhotosResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,44 +40,46 @@ void AddAlbumPhotosResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResults = value["Results"]["Result"];
|
||||
for (auto value : allResults)
|
||||
{
|
||||
Result resultsObject;
|
||||
if(!value["Id"].isNull())
|
||||
resultsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
resultsObject.code = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
resultsObject.message = value["Message"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
auto allResults = value["Results"]["Result"];
|
||||
for (auto value : allResults)
|
||||
{
|
||||
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())
|
||||
resultsObject.message = value["Message"].asString();
|
||||
results_.push_back(resultsObject);
|
||||
}
|
||||
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 AddAlbumPhotosResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string AddAlbumPhotosResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<AddAlbumPhotosResult::Result> AddAlbumPhotosResult::getResults()const
|
||||
{
|
||||
return results_;
|
||||
}
|
||||
|
||||
std::string AddAlbumPhotosResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string AddAlbumPhotosResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string AddAlbumPhotosResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<AddAlbumPhotosResult::Result> AddAlbumPhotosResult::getResults()const
|
||||
{
|
||||
return results_;
|
||||
}
|
||||
|
||||
std::string AddAlbumPhotosResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,80 +40,74 @@ void CreateAlbumResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlbum = value["Album"];
|
||||
for (auto value : allAlbum)
|
||||
{
|
||||
Album albumObject;
|
||||
if(!value["Id"].isNull())
|
||||
albumObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
albumObject.name = value["Name"].asString();
|
||||
if(!value["State"].isNull())
|
||||
albumObject.state = value["State"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
albumObject.remark = value["Remark"].asString();
|
||||
if(!value["PhotosCount"].isNull())
|
||||
albumObject.photosCount = std::stol(value["PhotosCount"].asString());
|
||||
if(!value["Ctime"].isNull())
|
||||
albumObject.ctime = std::stol(value["Ctime"].asString());
|
||||
if(!value["Mtime"].isNull())
|
||||
albumObject.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["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["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());
|
||||
if(!value["Remark"].isNull())
|
||||
coverObject.remark = value["Remark"].asString();
|
||||
albumObject.cover.push_back(coverObject);
|
||||
}
|
||||
album_.push_back(albumObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
action_ = value["Action"].asString();
|
||||
auto albumNode = value["Album"];
|
||||
if(!albumNode["Id"].isNull())
|
||||
album_.id = std::stol(albumNode["Id"].asString());
|
||||
if(!albumNode["IdStr"].isNull())
|
||||
album_.idStr = albumNode["IdStr"].asString();
|
||||
if(!albumNode["Name"].isNull())
|
||||
album_.name = albumNode["Name"].asString();
|
||||
if(!albumNode["State"].isNull())
|
||||
album_.state = albumNode["State"].asString();
|
||||
if(!albumNode["Remark"].isNull())
|
||||
album_.remark = albumNode["Remark"].asString();
|
||||
if(!albumNode["PhotosCount"].isNull())
|
||||
album_.photosCount = std::stol(albumNode["PhotosCount"].asString());
|
||||
if(!albumNode["Ctime"].isNull())
|
||||
album_.ctime = std::stol(albumNode["Ctime"].asString());
|
||||
if(!albumNode["Mtime"].isNull())
|
||||
album_.mtime = std::stol(albumNode["Mtime"].asString());
|
||||
auto coverNode = albumNode["Cover"];
|
||||
if(!coverNode["Id"].isNull())
|
||||
album_.cover.id = std::stol(coverNode["Id"].asString());
|
||||
if(!coverNode["IdStr"].isNull())
|
||||
album_.cover.idStr = coverNode["IdStr"].asString();
|
||||
if(!coverNode["Title"].isNull())
|
||||
album_.cover.title = coverNode["Title"].asString();
|
||||
if(!coverNode["FileId"].isNull())
|
||||
album_.cover.fileId = coverNode["FileId"].asString();
|
||||
if(!coverNode["State"].isNull())
|
||||
album_.cover.state = coverNode["State"].asString();
|
||||
if(!coverNode["Md5"].isNull())
|
||||
album_.cover.md5 = coverNode["Md5"].asString();
|
||||
if(!coverNode["IsVideo"].isNull())
|
||||
album_.cover.isVideo = coverNode["IsVideo"].asString() == "true";
|
||||
if(!coverNode["Width"].isNull())
|
||||
album_.cover.width = std::stol(coverNode["Width"].asString());
|
||||
if(!coverNode["Height"].isNull())
|
||||
album_.cover.height = std::stol(coverNode["Height"].asString());
|
||||
if(!coverNode["Ctime"].isNull())
|
||||
album_.cover.ctime = std::stol(coverNode["Ctime"].asString());
|
||||
if(!coverNode["Mtime"].isNull())
|
||||
album_.cover.mtime = std::stol(coverNode["Mtime"].asString());
|
||||
if(!coverNode["Remark"].isNull())
|
||||
album_.cover.remark = coverNode["Remark"].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 CreateAlbumResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string CreateAlbumResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<CreateAlbumResult::Album> CreateAlbumResult::getAlbum()const
|
||||
{
|
||||
return album_;
|
||||
}
|
||||
|
||||
std::string CreateAlbumResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string CreateAlbumResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
std::string CreateAlbumResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateAlbumResult::Album CreateAlbumResult::getAlbum()const
|
||||
{
|
||||
return album_;
|
||||
}
|
||||
|
||||
std::string CreateAlbumResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user