Add GetFootwearPosition.
This commit is contained in:
@@ -39,6 +39,8 @@ set(reid_public_header_model
|
||||
include/alibabacloud/reid/model/DescribeIpcLiveAddressResult.h
|
||||
include/alibabacloud/reid/model/DescribeOverviewDataRequest.h
|
||||
include/alibabacloud/reid/model/DescribeOverviewDataResult.h
|
||||
include/alibabacloud/reid/model/GetFootwearPositionRequest.h
|
||||
include/alibabacloud/reid/model/GetFootwearPositionResult.h
|
||||
include/alibabacloud/reid/model/ImportSpecialPersonnelRequest.h
|
||||
include/alibabacloud/reid/model/ImportSpecialPersonnelResult.h
|
||||
include/alibabacloud/reid/model/ListActionDataRequest.h
|
||||
@@ -56,7 +58,11 @@ set(reid_public_header_model
|
||||
include/alibabacloud/reid/model/ListStoreRequest.h
|
||||
include/alibabacloud/reid/model/ListStoreResult.h
|
||||
include/alibabacloud/reid/model/PullActionDataRequest.h
|
||||
include/alibabacloud/reid/model/PullActionDataResult.h )
|
||||
include/alibabacloud/reid/model/PullActionDataResult.h
|
||||
include/alibabacloud/reid/model/PullTakeShoesEventRequest.h
|
||||
include/alibabacloud/reid/model/PullTakeShoesEventResult.h
|
||||
include/alibabacloud/reid/model/PullTryOnShoesEventRequest.h
|
||||
include/alibabacloud/reid/model/PullTryOnShoesEventResult.h )
|
||||
|
||||
set(reid_src
|
||||
src/ReidClient.cc
|
||||
@@ -78,6 +84,8 @@ set(reid_src
|
||||
src/model/DescribeIpcLiveAddressResult.cc
|
||||
src/model/DescribeOverviewDataRequest.cc
|
||||
src/model/DescribeOverviewDataResult.cc
|
||||
src/model/GetFootwearPositionRequest.cc
|
||||
src/model/GetFootwearPositionResult.cc
|
||||
src/model/ImportSpecialPersonnelRequest.cc
|
||||
src/model/ImportSpecialPersonnelResult.cc
|
||||
src/model/ListActionDataRequest.cc
|
||||
@@ -95,7 +103,11 @@ set(reid_src
|
||||
src/model/ListStoreRequest.cc
|
||||
src/model/ListStoreResult.cc
|
||||
src/model/PullActionDataRequest.cc
|
||||
src/model/PullActionDataResult.cc )
|
||||
src/model/PullActionDataResult.cc
|
||||
src/model/PullTakeShoesEventRequest.cc
|
||||
src/model/PullTakeShoesEventResult.cc
|
||||
src/model/PullTryOnShoesEventRequest.cc
|
||||
src/model/PullTryOnShoesEventResult.cc )
|
||||
|
||||
add_library(reid ${LIB_TYPE}
|
||||
${reid_public_header}
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
#include "model/DescribeIpcLiveAddressResult.h"
|
||||
#include "model/DescribeOverviewDataRequest.h"
|
||||
#include "model/DescribeOverviewDataResult.h"
|
||||
#include "model/GetFootwearPositionRequest.h"
|
||||
#include "model/GetFootwearPositionResult.h"
|
||||
#include "model/ImportSpecialPersonnelRequest.h"
|
||||
#include "model/ImportSpecialPersonnelResult.h"
|
||||
#include "model/ListActionDataRequest.h"
|
||||
@@ -58,6 +60,10 @@
|
||||
#include "model/ListStoreResult.h"
|
||||
#include "model/PullActionDataRequest.h"
|
||||
#include "model/PullActionDataResult.h"
|
||||
#include "model/PullTakeShoesEventRequest.h"
|
||||
#include "model/PullTakeShoesEventResult.h"
|
||||
#include "model/PullTryOnShoesEventRequest.h"
|
||||
#include "model/PullTryOnShoesEventResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -94,6 +100,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeOverviewDataResult> DescribeOverviewDataOutcome;
|
||||
typedef std::future<DescribeOverviewDataOutcome> DescribeOverviewDataOutcomeCallable;
|
||||
typedef std::function<void(const ReidClient*, const Model::DescribeOverviewDataRequest&, const DescribeOverviewDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOverviewDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFootwearPositionResult> GetFootwearPositionOutcome;
|
||||
typedef std::future<GetFootwearPositionOutcome> GetFootwearPositionOutcomeCallable;
|
||||
typedef std::function<void(const ReidClient*, const Model::GetFootwearPositionRequest&, const GetFootwearPositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFootwearPositionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportSpecialPersonnelResult> ImportSpecialPersonnelOutcome;
|
||||
typedef std::future<ImportSpecialPersonnelOutcome> ImportSpecialPersonnelOutcomeCallable;
|
||||
typedef std::function<void(const ReidClient*, const Model::ImportSpecialPersonnelRequest&, const ImportSpecialPersonnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportSpecialPersonnelAsyncHandler;
|
||||
@@ -121,6 +130,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PullActionDataResult> PullActionDataOutcome;
|
||||
typedef std::future<PullActionDataOutcome> PullActionDataOutcomeCallable;
|
||||
typedef std::function<void(const ReidClient*, const Model::PullActionDataRequest&, const PullActionDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PullActionDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::PullTakeShoesEventResult> PullTakeShoesEventOutcome;
|
||||
typedef std::future<PullTakeShoesEventOutcome> PullTakeShoesEventOutcomeCallable;
|
||||
typedef std::function<void(const ReidClient*, const Model::PullTakeShoesEventRequest&, const PullTakeShoesEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PullTakeShoesEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::PullTryOnShoesEventResult> PullTryOnShoesEventOutcome;
|
||||
typedef std::future<PullTryOnShoesEventOutcome> PullTryOnShoesEventOutcomeCallable;
|
||||
typedef std::function<void(const ReidClient*, const Model::PullTryOnShoesEventRequest&, const PullTryOnShoesEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PullTryOnShoesEventAsyncHandler;
|
||||
|
||||
ReidClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ReidClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -153,6 +168,9 @@ namespace AlibabaCloud
|
||||
DescribeOverviewDataOutcome describeOverviewData(const Model::DescribeOverviewDataRequest &request)const;
|
||||
void describeOverviewDataAsync(const Model::DescribeOverviewDataRequest& request, const DescribeOverviewDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOverviewDataOutcomeCallable describeOverviewDataCallable(const Model::DescribeOverviewDataRequest& request) const;
|
||||
GetFootwearPositionOutcome getFootwearPosition(const Model::GetFootwearPositionRequest &request)const;
|
||||
void getFootwearPositionAsync(const Model::GetFootwearPositionRequest& request, const GetFootwearPositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFootwearPositionOutcomeCallable getFootwearPositionCallable(const Model::GetFootwearPositionRequest& request) const;
|
||||
ImportSpecialPersonnelOutcome importSpecialPersonnel(const Model::ImportSpecialPersonnelRequest &request)const;
|
||||
void importSpecialPersonnelAsync(const Model::ImportSpecialPersonnelRequest& request, const ImportSpecialPersonnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportSpecialPersonnelOutcomeCallable importSpecialPersonnelCallable(const Model::ImportSpecialPersonnelRequest& request) const;
|
||||
@@ -180,6 +198,12 @@ namespace AlibabaCloud
|
||||
PullActionDataOutcome pullActionData(const Model::PullActionDataRequest &request)const;
|
||||
void pullActionDataAsync(const Model::PullActionDataRequest& request, const PullActionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PullActionDataOutcomeCallable pullActionDataCallable(const Model::PullActionDataRequest& request) const;
|
||||
PullTakeShoesEventOutcome pullTakeShoesEvent(const Model::PullTakeShoesEventRequest &request)const;
|
||||
void pullTakeShoesEventAsync(const Model::PullTakeShoesEventRequest& request, const PullTakeShoesEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PullTakeShoesEventOutcomeCallable pullTakeShoesEventCallable(const Model::PullTakeShoesEventRequest& request) const;
|
||||
PullTryOnShoesEventOutcome pullTryOnShoesEvent(const Model::PullTryOnShoesEventRequest &request)const;
|
||||
void pullTryOnShoesEventAsync(const Model::PullTryOnShoesEventRequest& request, const PullTryOnShoesEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PullTryOnShoesEventOutcomeCallable pullTryOnShoesEventCallable(const Model::PullTryOnShoesEventRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_REID_MODEL_GETFOOTWEARPOSITIONREQUEST_H_
|
||||
#define ALIBABACLOUD_REID_MODEL_GETFOOTWEARPOSITIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/reid/ReidExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_EXPORT GetFootwearPositionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetFootwearPositionRequest();
|
||||
~GetFootwearPositionRequest();
|
||||
|
||||
std::string getDate()const;
|
||||
void setDate(const std::string& date);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
std::string getSkuId()const;
|
||||
void setSkuId(const std::string& skuId);
|
||||
|
||||
private:
|
||||
std::string date_;
|
||||
long storeId_;
|
||||
std::string skuId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_MODEL_GETFOOTWEARPOSITIONREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_REID_MODEL_GETFOOTWEARPOSITIONRESULT_H_
|
||||
#define ALIBABACLOUD_REID_MODEL_GETFOOTWEARPOSITIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/reid/ReidExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_EXPORT GetFootwearPositionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetFootwearPositionResult();
|
||||
explicit GetFootwearPositionResult(const std::string &payload);
|
||||
~GetFootwearPositionResult();
|
||||
std::string getMessage()const;
|
||||
long getStoreId()const;
|
||||
long getStartTime()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getSkuId()const;
|
||||
std::string getCode()const;
|
||||
int getPositionNumber()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
long storeId_;
|
||||
long startTime_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string skuId_;
|
||||
std::string code_;
|
||||
int positionNumber_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_MODEL_GETFOOTWEARPOSITIONRESULT_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_REID_MODEL_PULLTAKESHOESEVENTREQUEST_H_
|
||||
#define ALIBABACLOUD_REID_MODEL_PULLTAKESHOESEVENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/reid/ReidExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_EXPORT PullTakeShoesEventRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PullTakeShoesEventRequest();
|
||||
~PullTakeShoesEventRequest();
|
||||
|
||||
std::string getDate()const;
|
||||
void setDate(const std::string& date);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
std::string getSkuId()const;
|
||||
void setSkuId(const std::string& skuId);
|
||||
|
||||
private:
|
||||
std::string date_;
|
||||
long storeId_;
|
||||
std::string skuId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_MODEL_PULLTAKESHOESEVENTREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_REID_MODEL_PULLTAKESHOESEVENTRESULT_H_
|
||||
#define ALIBABACLOUD_REID_MODEL_PULLTAKESHOESEVENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/reid/ReidExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_EXPORT PullTakeShoesEventResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PullTakeShoesEventResult();
|
||||
explicit PullTakeShoesEventResult(const std::string &payload);
|
||||
~PullTakeShoesEventResult();
|
||||
long getStoreId()const;
|
||||
std::string getMessage()const;
|
||||
long getStartTime()const;
|
||||
int getTakeShoesEventCount()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getSkuId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long storeId_;
|
||||
std::string message_;
|
||||
long startTime_;
|
||||
int takeShoesEventCount_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string skuId_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_MODEL_PULLTAKESHOESEVENTRESULT_H_
|
||||
@@ -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_REID_MODEL_PULLTRYONSHOESEVENTREQUEST_H_
|
||||
#define ALIBABACLOUD_REID_MODEL_PULLTRYONSHOESEVENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/reid/ReidExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_EXPORT PullTryOnShoesEventRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PullTryOnShoesEventRequest();
|
||||
~PullTryOnShoesEventRequest();
|
||||
|
||||
std::string getDate()const;
|
||||
void setDate(const std::string& date);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getSkuId()const;
|
||||
void setSkuId(const std::string& skuId);
|
||||
|
||||
private:
|
||||
std::string date_;
|
||||
long storeId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string name_;
|
||||
std::string skuId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_MODEL_PULLTRYONSHOESEVENTREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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_REID_MODEL_PULLTRYONSHOESEVENTRESULT_H_
|
||||
#define ALIBABACLOUD_REID_MODEL_PULLTRYONSHOESEVENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/reid/ReidExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_EXPORT PullTryOnShoesEventResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PullTryOnShoesEventResult();
|
||||
explicit PullTryOnShoesEventResult(const std::string &payload);
|
||||
~PullTryOnShoesEventResult();
|
||||
long getStartTs()const;
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
long getTotalCount()const;
|
||||
long getStoreId()const;
|
||||
int getTryOnShoesEventCount()const;
|
||||
int getPageNumber()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getSkuId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long startTs_;
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
std::string dynamicMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
long totalCount_;
|
||||
long storeId_;
|
||||
int tryOnShoesEventCount_;
|
||||
int pageNumber_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
std::string skuId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_MODEL_PULLTRYONSHOESEVENTRESULT_H_
|
||||
@@ -375,6 +375,42 @@ ReidClient::DescribeOverviewDataOutcomeCallable ReidClient::describeOverviewData
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ReidClient::GetFootwearPositionOutcome ReidClient::getFootwearPosition(const GetFootwearPositionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFootwearPositionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetFootwearPositionOutcome(GetFootwearPositionResult(outcome.result()));
|
||||
else
|
||||
return GetFootwearPositionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ReidClient::getFootwearPositionAsync(const GetFootwearPositionRequest& request, const GetFootwearPositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getFootwearPosition(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ReidClient::GetFootwearPositionOutcomeCallable ReidClient::getFootwearPositionCallable(const GetFootwearPositionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetFootwearPositionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getFootwearPosition(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ReidClient::ImportSpecialPersonnelOutcome ReidClient::importSpecialPersonnel(const ImportSpecialPersonnelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,3 +735,75 @@ ReidClient::PullActionDataOutcomeCallable ReidClient::pullActionDataCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ReidClient::PullTakeShoesEventOutcome ReidClient::pullTakeShoesEvent(const PullTakeShoesEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PullTakeShoesEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PullTakeShoesEventOutcome(PullTakeShoesEventResult(outcome.result()));
|
||||
else
|
||||
return PullTakeShoesEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ReidClient::pullTakeShoesEventAsync(const PullTakeShoesEventRequest& request, const PullTakeShoesEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, pullTakeShoesEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ReidClient::PullTakeShoesEventOutcomeCallable ReidClient::pullTakeShoesEventCallable(const PullTakeShoesEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PullTakeShoesEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->pullTakeShoesEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ReidClient::PullTryOnShoesEventOutcome ReidClient::pullTryOnShoesEvent(const PullTryOnShoesEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PullTryOnShoesEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PullTryOnShoesEventOutcome(PullTryOnShoesEventResult(outcome.result()));
|
||||
else
|
||||
return PullTryOnShoesEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ReidClient::pullTryOnShoesEventAsync(const PullTryOnShoesEventRequest& request, const PullTryOnShoesEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, pullTryOnShoesEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ReidClient::PullTryOnShoesEventOutcomeCallable ReidClient::pullTryOnShoesEventCallable(const PullTryOnShoesEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PullTryOnShoesEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->pullTryOnShoesEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
62
reid/src/model/GetFootwearPositionRequest.cc
Normal file
62
reid/src/model/GetFootwearPositionRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/reid/model/GetFootwearPositionRequest.h>
|
||||
|
||||
using AlibabaCloud::Reid::Model::GetFootwearPositionRequest;
|
||||
|
||||
GetFootwearPositionRequest::GetFootwearPositionRequest() :
|
||||
RpcServiceRequest("reid", "2019-09-28", "GetFootwearPosition")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFootwearPositionRequest::~GetFootwearPositionRequest()
|
||||
{}
|
||||
|
||||
std::string GetFootwearPositionRequest::getDate()const
|
||||
{
|
||||
return date_;
|
||||
}
|
||||
|
||||
void GetFootwearPositionRequest::setDate(const std::string& date)
|
||||
{
|
||||
date_ = date;
|
||||
setBodyParameter("Date", date);
|
||||
}
|
||||
|
||||
long GetFootwearPositionRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetFootwearPositionRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionRequest::getSkuId()const
|
||||
{
|
||||
return skuId_;
|
||||
}
|
||||
|
||||
void GetFootwearPositionRequest::setSkuId(const std::string& skuId)
|
||||
{
|
||||
skuId_ = skuId;
|
||||
setBodyParameter("SkuId", skuId);
|
||||
}
|
||||
|
||||
121
reid/src/model/GetFootwearPositionResult.cc
Normal file
121
reid/src/model/GetFootwearPositionResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/reid/model/GetFootwearPositionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Reid;
|
||||
using namespace AlibabaCloud::Reid::Model;
|
||||
|
||||
GetFootwearPositionResult::GetFootwearPositionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFootwearPositionResult::GetFootwearPositionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFootwearPositionResult::~GetFootwearPositionResult()
|
||||
{}
|
||||
|
||||
void GetFootwearPositionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = std::stol(value["StartTime"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["PositionNumber"].isNull())
|
||||
positionNumber_ = std::stoi(value["PositionNumber"].asString());
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["SkuId"].isNull())
|
||||
skuId_ = value["SkuId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long GetFootwearPositionResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
long GetFootwearPositionResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getSkuId()const
|
||||
{
|
||||
return skuId_;
|
||||
}
|
||||
|
||||
std::string GetFootwearPositionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
int GetFootwearPositionResult::getPositionNumber()const
|
||||
{
|
||||
return positionNumber_;
|
||||
}
|
||||
|
||||
bool GetFootwearPositionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
reid/src/model/PullTakeShoesEventRequest.cc
Normal file
62
reid/src/model/PullTakeShoesEventRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/reid/model/PullTakeShoesEventRequest.h>
|
||||
|
||||
using AlibabaCloud::Reid::Model::PullTakeShoesEventRequest;
|
||||
|
||||
PullTakeShoesEventRequest::PullTakeShoesEventRequest() :
|
||||
RpcServiceRequest("reid", "2019-09-28", "PullTakeShoesEvent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PullTakeShoesEventRequest::~PullTakeShoesEventRequest()
|
||||
{}
|
||||
|
||||
std::string PullTakeShoesEventRequest::getDate()const
|
||||
{
|
||||
return date_;
|
||||
}
|
||||
|
||||
void PullTakeShoesEventRequest::setDate(const std::string& date)
|
||||
{
|
||||
date_ = date;
|
||||
setBodyParameter("Date", date);
|
||||
}
|
||||
|
||||
long PullTakeShoesEventRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void PullTakeShoesEventRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventRequest::getSkuId()const
|
||||
{
|
||||
return skuId_;
|
||||
}
|
||||
|
||||
void PullTakeShoesEventRequest::setSkuId(const std::string& skuId)
|
||||
{
|
||||
skuId_ = skuId;
|
||||
setBodyParameter("SkuId", skuId);
|
||||
}
|
||||
|
||||
121
reid/src/model/PullTakeShoesEventResult.cc
Normal file
121
reid/src/model/PullTakeShoesEventResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/reid/model/PullTakeShoesEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Reid;
|
||||
using namespace AlibabaCloud::Reid::Model;
|
||||
|
||||
PullTakeShoesEventResult::PullTakeShoesEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PullTakeShoesEventResult::PullTakeShoesEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PullTakeShoesEventResult::~PullTakeShoesEventResult()
|
||||
{}
|
||||
|
||||
void PullTakeShoesEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = std::stol(value["StartTime"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
if(!value["SkuId"].isNull())
|
||||
skuId_ = value["SkuId"].asString();
|
||||
if(!value["TakeShoesEventCount"].isNull())
|
||||
takeShoesEventCount_ = std::stoi(value["TakeShoesEventCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
long PullTakeShoesEventResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long PullTakeShoesEventResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
int PullTakeShoesEventResult::getTakeShoesEventCount()const
|
||||
{
|
||||
return takeShoesEventCount_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getSkuId()const
|
||||
{
|
||||
return skuId_;
|
||||
}
|
||||
|
||||
std::string PullTakeShoesEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PullTakeShoesEventResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
reid/src/model/PullTryOnShoesEventRequest.cc
Normal file
95
reid/src/model/PullTryOnShoesEventRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/reid/model/PullTryOnShoesEventRequest.h>
|
||||
|
||||
using AlibabaCloud::Reid::Model::PullTryOnShoesEventRequest;
|
||||
|
||||
PullTryOnShoesEventRequest::PullTryOnShoesEventRequest() :
|
||||
RpcServiceRequest("reid", "2019-09-28", "PullTryOnShoesEvent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PullTryOnShoesEventRequest::~PullTryOnShoesEventRequest()
|
||||
{}
|
||||
|
||||
std::string PullTryOnShoesEventRequest::getDate()const
|
||||
{
|
||||
return date_;
|
||||
}
|
||||
|
||||
void PullTryOnShoesEventRequest::setDate(const std::string& date)
|
||||
{
|
||||
date_ = date;
|
||||
setBodyParameter("Date", date);
|
||||
}
|
||||
|
||||
long PullTryOnShoesEventRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void PullTryOnShoesEventRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
int PullTryOnShoesEventRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void PullTryOnShoesEventRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int PullTryOnShoesEventRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void PullTryOnShoesEventRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void PullTryOnShoesEventRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventRequest::getSkuId()const
|
||||
{
|
||||
return skuId_;
|
||||
}
|
||||
|
||||
void PullTryOnShoesEventRequest::setSkuId(const std::string& skuId)
|
||||
{
|
||||
skuId_ = skuId;
|
||||
setBodyParameter("SkuId", skuId);
|
||||
}
|
||||
|
||||
142
reid/src/model/PullTryOnShoesEventResult.cc
Normal file
142
reid/src/model/PullTryOnShoesEventResult.cc
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* 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/reid/model/PullTryOnShoesEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Reid;
|
||||
using namespace AlibabaCloud::Reid::Model;
|
||||
|
||||
PullTryOnShoesEventResult::PullTryOnShoesEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PullTryOnShoesEventResult::PullTryOnShoesEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PullTryOnShoesEventResult::~PullTryOnShoesEventResult()
|
||||
{}
|
||||
|
||||
void PullTryOnShoesEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["StartTs"].isNull())
|
||||
startTs_ = std::stol(value["StartTs"].asString());
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["TryOnShoesEventCount"].isNull())
|
||||
tryOnShoesEventCount_ = std::stoi(value["TryOnShoesEventCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["SkuId"].isNull())
|
||||
skuId_ = value["SkuId"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long PullTryOnShoesEventResult::getStartTs()const
|
||||
{
|
||||
return startTs_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int PullTryOnShoesEventResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PullTryOnShoesEventResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
long PullTryOnShoesEventResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long PullTryOnShoesEventResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
int PullTryOnShoesEventResult::getTryOnShoesEventCount()const
|
||||
{
|
||||
return tryOnShoesEventCount_;
|
||||
}
|
||||
|
||||
int PullTryOnShoesEventResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string PullTryOnShoesEventResult::getSkuId()const
|
||||
{
|
||||
return skuId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user