Generated 2019-05-24 for cusanalytic_sc_online.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2019-07-26 Version 1.36.70
|
||||
- Generated 2019-05-24 for `cusanalytic_sc_online`.
|
||||
|
||||
2019-07-25 Version 1.36.69
|
||||
- App-related actions support tag authentication.
|
||||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Cusanalytic_sc_onlineExport.h"
|
||||
#include "model/DescribeLocationsRequest.h"
|
||||
#include "model/DescribeLocationsResult.h"
|
||||
#include "model/GetOverviewDataRequest.h"
|
||||
#include "model/GetOverviewDataResult.h"
|
||||
#include "model/DescribeActionDataRequest.h"
|
||||
#include "model/DescribeActionDataResult.h"
|
||||
#include "model/GetLocationsRequest.h"
|
||||
#include "model/GetLocationsResult.h"
|
||||
#include "model/GetSupportStoreRequest.h"
|
||||
#include "model/GetSupportStoreResult.h"
|
||||
#include "model/GetHeatMapDataRequest.h"
|
||||
#include "model/GetHeatMapDataResult.h"
|
||||
#include "model/GetPortrayalRequest.h"
|
||||
#include "model/GetPortrayalResult.h"
|
||||
#include "model/GetAnalyzeCommodityDataRequest.h"
|
||||
#include "model/GetAnalyzeCommodityDataResult.h"
|
||||
#include "model/ListVisitorsRequest.h"
|
||||
#include "model/ListVisitorsResult.h"
|
||||
#include "model/GetEMapRequest.h"
|
||||
#include "model/GetEMapResult.h"
|
||||
#include "model/SearchPersonByImgRequest.h"
|
||||
#include "model/SearchPersonByImgResult.h"
|
||||
#include "model/GetAnalyzePlaceDataRequest.h"
|
||||
#include "model/GetAnalyzePlaceDataResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT Cusanalytic_sc_onlineClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeLocationsResult> DescribeLocationsOutcome;
|
||||
typedef std::future<DescribeLocationsOutcome> DescribeLocationsOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::DescribeLocationsRequest&, const DescribeLocationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLocationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetOverviewDataResult> GetOverviewDataOutcome;
|
||||
typedef std::future<GetOverviewDataOutcome> GetOverviewDataOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetOverviewDataRequest&, const GetOverviewDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOverviewDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeActionDataResult> DescribeActionDataOutcome;
|
||||
typedef std::future<DescribeActionDataOutcome> DescribeActionDataOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::DescribeActionDataRequest&, const DescribeActionDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeActionDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLocationsResult> GetLocationsOutcome;
|
||||
typedef std::future<GetLocationsOutcome> GetLocationsOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetLocationsRequest&, const GetLocationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLocationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSupportStoreResult> GetSupportStoreOutcome;
|
||||
typedef std::future<GetSupportStoreOutcome> GetSupportStoreOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetSupportStoreRequest&, const GetSupportStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSupportStoreAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHeatMapDataResult> GetHeatMapDataOutcome;
|
||||
typedef std::future<GetHeatMapDataOutcome> GetHeatMapDataOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetHeatMapDataRequest&, const GetHeatMapDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHeatMapDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPortrayalResult> GetPortrayalOutcome;
|
||||
typedef std::future<GetPortrayalOutcome> GetPortrayalOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetPortrayalRequest&, const GetPortrayalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPortrayalAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAnalyzeCommodityDataResult> GetAnalyzeCommodityDataOutcome;
|
||||
typedef std::future<GetAnalyzeCommodityDataOutcome> GetAnalyzeCommodityDataOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetAnalyzeCommodityDataRequest&, const GetAnalyzeCommodityDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAnalyzeCommodityDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListVisitorsResult> ListVisitorsOutcome;
|
||||
typedef std::future<ListVisitorsOutcome> ListVisitorsOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::ListVisitorsRequest&, const ListVisitorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVisitorsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEMapResult> GetEMapOutcome;
|
||||
typedef std::future<GetEMapOutcome> GetEMapOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetEMapRequest&, const GetEMapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEMapAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchPersonByImgResult> SearchPersonByImgOutcome;
|
||||
typedef std::future<SearchPersonByImgOutcome> SearchPersonByImgOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::SearchPersonByImgRequest&, const SearchPersonByImgOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchPersonByImgAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAnalyzePlaceDataResult> GetAnalyzePlaceDataOutcome;
|
||||
typedef std::future<GetAnalyzePlaceDataOutcome> GetAnalyzePlaceDataOutcomeCallable;
|
||||
typedef std::function<void(const Cusanalytic_sc_onlineClient*, const Model::GetAnalyzePlaceDataRequest&, const GetAnalyzePlaceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAnalyzePlaceDataAsyncHandler;
|
||||
|
||||
Cusanalytic_sc_onlineClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Cusanalytic_sc_onlineClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Cusanalytic_sc_onlineClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Cusanalytic_sc_onlineClient();
|
||||
DescribeLocationsOutcome describeLocations(const Model::DescribeLocationsRequest &request)const;
|
||||
void describeLocationsAsync(const Model::DescribeLocationsRequest& request, const DescribeLocationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLocationsOutcomeCallable describeLocationsCallable(const Model::DescribeLocationsRequest& request) const;
|
||||
GetOverviewDataOutcome getOverviewData(const Model::GetOverviewDataRequest &request)const;
|
||||
void getOverviewDataAsync(const Model::GetOverviewDataRequest& request, const GetOverviewDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOverviewDataOutcomeCallable getOverviewDataCallable(const Model::GetOverviewDataRequest& request) const;
|
||||
DescribeActionDataOutcome describeActionData(const Model::DescribeActionDataRequest &request)const;
|
||||
void describeActionDataAsync(const Model::DescribeActionDataRequest& request, const DescribeActionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeActionDataOutcomeCallable describeActionDataCallable(const Model::DescribeActionDataRequest& request) const;
|
||||
GetLocationsOutcome getLocations(const Model::GetLocationsRequest &request)const;
|
||||
void getLocationsAsync(const Model::GetLocationsRequest& request, const GetLocationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLocationsOutcomeCallable getLocationsCallable(const Model::GetLocationsRequest& request) const;
|
||||
GetSupportStoreOutcome getSupportStore(const Model::GetSupportStoreRequest &request)const;
|
||||
void getSupportStoreAsync(const Model::GetSupportStoreRequest& request, const GetSupportStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSupportStoreOutcomeCallable getSupportStoreCallable(const Model::GetSupportStoreRequest& request) const;
|
||||
GetHeatMapDataOutcome getHeatMapData(const Model::GetHeatMapDataRequest &request)const;
|
||||
void getHeatMapDataAsync(const Model::GetHeatMapDataRequest& request, const GetHeatMapDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHeatMapDataOutcomeCallable getHeatMapDataCallable(const Model::GetHeatMapDataRequest& request) const;
|
||||
GetPortrayalOutcome getPortrayal(const Model::GetPortrayalRequest &request)const;
|
||||
void getPortrayalAsync(const Model::GetPortrayalRequest& request, const GetPortrayalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPortrayalOutcomeCallable getPortrayalCallable(const Model::GetPortrayalRequest& request) const;
|
||||
GetAnalyzeCommodityDataOutcome getAnalyzeCommodityData(const Model::GetAnalyzeCommodityDataRequest &request)const;
|
||||
void getAnalyzeCommodityDataAsync(const Model::GetAnalyzeCommodityDataRequest& request, const GetAnalyzeCommodityDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAnalyzeCommodityDataOutcomeCallable getAnalyzeCommodityDataCallable(const Model::GetAnalyzeCommodityDataRequest& request) const;
|
||||
ListVisitorsOutcome listVisitors(const Model::ListVisitorsRequest &request)const;
|
||||
void listVisitorsAsync(const Model::ListVisitorsRequest& request, const ListVisitorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListVisitorsOutcomeCallable listVisitorsCallable(const Model::ListVisitorsRequest& request) const;
|
||||
GetEMapOutcome getEMap(const Model::GetEMapRequest &request)const;
|
||||
void getEMapAsync(const Model::GetEMapRequest& request, const GetEMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEMapOutcomeCallable getEMapCallable(const Model::GetEMapRequest& request) const;
|
||||
SearchPersonByImgOutcome searchPersonByImg(const Model::SearchPersonByImgRequest &request)const;
|
||||
void searchPersonByImgAsync(const Model::SearchPersonByImgRequest& request, const SearchPersonByImgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchPersonByImgOutcomeCallable searchPersonByImgCallable(const Model::SearchPersonByImgRequest& request) const;
|
||||
GetAnalyzePlaceDataOutcome getAnalyzePlaceData(const Model::GetAnalyzePlaceDataRequest &request)const;
|
||||
void getAnalyzePlaceDataAsync(const Model::GetAnalyzePlaceDataRequest& request, const GetAnalyzePlaceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAnalyzePlaceDataOutcomeCallable getAnalyzePlaceDataCallable(const Model::GetAnalyzePlaceDataRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINECLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_LIBRARY)
|
||||
# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_CUSANALYTIC_SC_ONLINEEXPORT_H_
|
||||
@@ -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_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeActionDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeActionDataRequest();
|
||||
~DescribeActionDataRequest();
|
||||
|
||||
long getTsEnd()const;
|
||||
void setTsEnd(long tsEnd);
|
||||
int getPageNo()const;
|
||||
void setPageNo(int pageNo);
|
||||
long getTsStart()const;
|
||||
void setTsStart(long tsStart);
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
int getPageLimit()const;
|
||||
void setPageLimit(int pageLimit);
|
||||
|
||||
private:
|
||||
long tsEnd_;
|
||||
int pageNo_;
|
||||
long tsStart_;
|
||||
std::string storeId_;
|
||||
int pageLimit_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATAREQUEST_H_
|
||||
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeActionDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ActionsMsgItem
|
||||
{
|
||||
struct ActionInfosItem
|
||||
{
|
||||
struct Point
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
};
|
||||
struct SenseRectEntityItem
|
||||
{
|
||||
float left;
|
||||
float top;
|
||||
float right;
|
||||
float bottom;
|
||||
};
|
||||
SenseRectEntityItem senseRectEntityItem;
|
||||
long rawId;
|
||||
long stayPeriod;
|
||||
long maxts;
|
||||
Point point;
|
||||
long stayValid;
|
||||
long mints;
|
||||
};
|
||||
struct AttributesMsgItem
|
||||
{
|
||||
long score;
|
||||
int ageNum;
|
||||
std::string imgType;
|
||||
std::string gender;
|
||||
std::string imgUrl;
|
||||
long isClerk;
|
||||
};
|
||||
long status;
|
||||
ActionInfosItem actionInfosItem;
|
||||
std::string gmtCreate;
|
||||
long storeId;
|
||||
AttributesMsgItem attributesMsgItem;
|
||||
std::string locationLayerType;
|
||||
long locationId;
|
||||
std::string gmtModified;
|
||||
long ukId;
|
||||
std::string tag;
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
DescribeActionDataResult();
|
||||
explicit DescribeActionDataResult(const std::string &payload);
|
||||
~DescribeActionDataResult();
|
||||
long getTsStart()const;
|
||||
int getPageCount()const;
|
||||
std::string getStoreId()const;
|
||||
long getTsEnd()const;
|
||||
int getPageNo()const;
|
||||
int getPageLimit()const;
|
||||
std::vector<ActionsMsgItem> getActionsMsgItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long tsStart_;
|
||||
int pageCount_;
|
||||
std::string storeId_;
|
||||
long tsEnd_;
|
||||
int pageNo_;
|
||||
int pageLimit_;
|
||||
std::vector<ActionsMsgItem> actionsMsgItems_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBEACTIONDATARESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeLocationsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLocationsRequest();
|
||||
~DescribeLocationsRequest();
|
||||
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
|
||||
private:
|
||||
std::string storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSREQUEST_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_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT DescribeLocationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LocationMsgItem
|
||||
{
|
||||
struct RectRoi
|
||||
{
|
||||
struct Point
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
};
|
||||
std::vector<RectRoi::Point> points;
|
||||
};
|
||||
long status;
|
||||
std::string gmtCreate;
|
||||
std::vector<LocationMsgItem::RectRoi> rectRois;
|
||||
long storeId;
|
||||
long parentLocationId;
|
||||
std::string layerType;
|
||||
std::string extId;
|
||||
std::string gmtModified;
|
||||
std::string tag;
|
||||
long id;
|
||||
std::string locationType;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeLocationsResult();
|
||||
explicit DescribeLocationsResult(const std::string &payload);
|
||||
~DescribeLocationsResult();
|
||||
std::string getStoreId()const;
|
||||
std::vector<LocationMsgItem> getLocationMsgItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string storeId_;
|
||||
std::vector<LocationMsgItem> locationMsgItems_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_DESCRIBELOCATIONSRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzeCommodityDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAnalyzeCommodityDataRequest();
|
||||
~GetAnalyzeCommodityDataRequest();
|
||||
|
||||
long getStartUserCount()const;
|
||||
void setStartUserCount(long startUserCount);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
long getEndUserCount()const;
|
||||
void setEndUserCount(long endUserCount);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getMinSupportCount()const;
|
||||
void setMinSupportCount(long minSupportCount);
|
||||
int getPageIndex()const;
|
||||
void setPageIndex(int pageIndex);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
long getStayPeriod()const;
|
||||
void setStayPeriod(long stayPeriod);
|
||||
|
||||
private:
|
||||
long startUserCount_;
|
||||
std::string endDate_;
|
||||
long endUserCount_;
|
||||
int pageSize_;
|
||||
long minSupportCount_;
|
||||
int pageIndex_;
|
||||
long storeId_;
|
||||
std::string startDate_;
|
||||
long stayPeriod_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATAREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzeCommodityDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AnalyzeCommodityItem
|
||||
{
|
||||
std::string locationNames;
|
||||
std::string locationIds;
|
||||
long itemCount;
|
||||
long supportCount;
|
||||
};
|
||||
|
||||
|
||||
GetAnalyzeCommodityDataResult();
|
||||
explicit GetAnalyzeCommodityDataResult(const std::string &payload);
|
||||
~GetAnalyzeCommodityDataResult();
|
||||
std::vector<AnalyzeCommodityItem> getAnalyzeCommodityItems()const;
|
||||
int getPageSize()const;
|
||||
int getTotal()const;
|
||||
int getPageIndex()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AnalyzeCommodityItem> analyzeCommodityItems_;
|
||||
int pageSize_;
|
||||
int total_;
|
||||
int pageIndex_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZECOMMODITYDATARESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzePlaceDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAnalyzePlaceDataRequest();
|
||||
~GetAnalyzePlaceDataRequest();
|
||||
|
||||
long getEndUVCount()const;
|
||||
void setEndUVCount(long endUVCount);
|
||||
long getParentAmount()const;
|
||||
void setParentAmount(long parentAmount);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
long getLocationId()const;
|
||||
void setLocationId(long locationId);
|
||||
std::string getParentLocationIds()const;
|
||||
void setParentLocationIds(const std::string& parentLocationIds);
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
long getStartUVCount()const;
|
||||
void setStartUVCount(long startUVCount);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
|
||||
private:
|
||||
long endUVCount_;
|
||||
long parentAmount_;
|
||||
std::string endDate_;
|
||||
long locationId_;
|
||||
std::string parentLocationIds_;
|
||||
std::string startDate_;
|
||||
long startUVCount_;
|
||||
long storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATAREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetAnalyzePlaceDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AnalyzePlaceItem
|
||||
{
|
||||
long storeId;
|
||||
float percent;
|
||||
long locationId;
|
||||
std::string parentLocationIds;
|
||||
long count;
|
||||
std::string locationName;
|
||||
};
|
||||
|
||||
|
||||
GetAnalyzePlaceDataResult();
|
||||
explicit GetAnalyzePlaceDataResult(const std::string &payload);
|
||||
~GetAnalyzePlaceDataResult();
|
||||
std::vector<AnalyzePlaceItem> getAnalyzePlaceItems()const;
|
||||
long getStoreId()const;
|
||||
float getPercent()const;
|
||||
std::string getParentLocationIds()const;
|
||||
long getLocationId()const;
|
||||
long getCount()const;
|
||||
std::string getLocationName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AnalyzePlaceItem> analyzePlaceItems_;
|
||||
long storeId_;
|
||||
float percent_;
|
||||
std::string parentLocationIds_;
|
||||
long locationId_;
|
||||
long count_;
|
||||
std::string locationName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETANALYZEPLACEDATARESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetEMapRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetEMapRequest();
|
||||
~GetEMapRequest();
|
||||
|
||||
long getLocationId()const;
|
||||
void setLocationId(long locationId);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
|
||||
private:
|
||||
long locationId_;
|
||||
long storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetEMapResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetEMapResult();
|
||||
explicit GetEMapResult(const std::string &payload);
|
||||
~GetEMapResult();
|
||||
long getStoreId()const;
|
||||
long getLocationId()const;
|
||||
std::string getImageUrl()const;
|
||||
float getScale()const;
|
||||
long getEMapId()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long storeId_;
|
||||
long locationId_;
|
||||
std::string imageUrl_;
|
||||
float scale_;
|
||||
long eMapId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETEMAPRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetHeatMapDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetHeatMapDataRequest();
|
||||
~GetHeatMapDataRequest();
|
||||
|
||||
std::string getEMapName()const;
|
||||
void setEMapName(const std::string& eMapName);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
|
||||
private:
|
||||
std::string eMapName_;
|
||||
long storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATAREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetHeatMapDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct HeatMapItem
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
float weight;
|
||||
};
|
||||
|
||||
|
||||
GetHeatMapDataResult();
|
||||
explicit GetHeatMapDataResult(const std::string &payload);
|
||||
~GetHeatMapDataResult();
|
||||
std::vector<HeatMapItem> getHeatMapItems()const;
|
||||
std::string getEMapName()const;
|
||||
long getStoreId()const;
|
||||
std::string getEMapUrl()const;
|
||||
float getHeight()const;
|
||||
float getWidth()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<HeatMapItem> heatMapItems_;
|
||||
std::string eMapName_;
|
||||
long storeId_;
|
||||
std::string eMapUrl_;
|
||||
float height_;
|
||||
float width_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETHEATMAPDATARESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetLocationsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetLocationsRequest();
|
||||
~GetLocationsRequest();
|
||||
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
|
||||
private:
|
||||
long storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetLocationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LocationItem
|
||||
{
|
||||
int status;
|
||||
long storeId;
|
||||
long parentLocationId;
|
||||
std::string layerType;
|
||||
long locationId;
|
||||
std::string locationType;
|
||||
bool link;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetLocationsResult();
|
||||
explicit GetLocationsResult(const std::string &payload);
|
||||
~GetLocationsResult();
|
||||
long getStoreId()const;
|
||||
std::vector<LocationItem> getLocationItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long storeId_;
|
||||
std::vector<LocationItem> locationItems_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETLOCATIONSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetOverviewDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetOverviewDataRequest();
|
||||
~GetOverviewDataRequest();
|
||||
|
||||
std::string getDate()const;
|
||||
void setDate(const std::string& date);
|
||||
std::string getStoreIds()const;
|
||||
void setStoreIds(const std::string& storeIds);
|
||||
|
||||
private:
|
||||
std::string date_;
|
||||
std::string storeIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATAREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetOverviewDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetOverviewDataResult();
|
||||
explicit GetOverviewDataResult(const std::string &payload);
|
||||
~GetOverviewDataResult();
|
||||
float getStayDeepAvg()const;
|
||||
float getUvWeekGrowthPercent()const;
|
||||
long getUv()const;
|
||||
float getUvEverySqm()const;
|
||||
float getUvEverySqmGrowthWeekPercent()const;
|
||||
float getUvAvg()const;
|
||||
float getStayAvgPeriod()const;
|
||||
float getStayAvgPeriodWeekGrowthPercent()const;
|
||||
float getUvAvgWeekGrowthPercent()const;
|
||||
float getStayDeepAvgWeekGrowthPercent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
float stayDeepAvg_;
|
||||
float uvWeekGrowthPercent_;
|
||||
long uv_;
|
||||
float uvEverySqm_;
|
||||
float uvEverySqmGrowthWeekPercent_;
|
||||
float uvAvg_;
|
||||
float stayAvgPeriod_;
|
||||
float stayAvgPeriodWeekGrowthPercent_;
|
||||
float uvAvgWeekGrowthPercent_;
|
||||
float stayDeepAvgWeekGrowthPercent_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETOVERVIEWDATARESULT_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_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetPortrayalRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPortrayalRequest();
|
||||
~GetPortrayalRequest();
|
||||
|
||||
std::string getDate()const;
|
||||
void setDate(const std::string& date);
|
||||
std::string getLocationIds()const;
|
||||
void setLocationIds(const std::string& locationIds);
|
||||
std::string getStoreIds()const;
|
||||
void setStoreIds(const std::string& storeIds);
|
||||
|
||||
private:
|
||||
std::string date_;
|
||||
std::string locationIds_;
|
||||
std::string storeIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALREQUEST_H_
|
||||
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetPortrayalResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetPortrayalResult();
|
||||
explicit GetPortrayalResult(const std::string &payload);
|
||||
~GetPortrayalResult();
|
||||
long getOldcount()const;
|
||||
float getAgecount5160Percent()const;
|
||||
long getFcount5160()const;
|
||||
long getMcount010()const;
|
||||
float getMalePercent()const;
|
||||
long getFcount()const;
|
||||
float getAgecount3140Percent()const;
|
||||
float getNewcountPercent()const;
|
||||
long getMcount1120()const;
|
||||
long getFcountgt60()const;
|
||||
long getMcount5160()const;
|
||||
long getMcount4150()const;
|
||||
float getAgecount010Percent()const;
|
||||
long getMcount3140()const;
|
||||
long getNewcount()const;
|
||||
long getMcount2130()const;
|
||||
float getAgecount4150Percent()const;
|
||||
float getAgecountgt60Percent()const;
|
||||
float getFemalePercent()const;
|
||||
float getAgecount1120Percent()const;
|
||||
long getMcount()const;
|
||||
float getOldcountPercent()const;
|
||||
long getFcount010()const;
|
||||
long getFcount1120()const;
|
||||
long getFcount2130()const;
|
||||
long getFcount3140()const;
|
||||
long getFcount4150()const;
|
||||
long getMcountgt60()const;
|
||||
float getAgecount2130Percent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long oldcount_;
|
||||
float agecount5160Percent_;
|
||||
long fcount5160_;
|
||||
long mcount010_;
|
||||
float malePercent_;
|
||||
long fcount_;
|
||||
float agecount3140Percent_;
|
||||
float newcountPercent_;
|
||||
long mcount1120_;
|
||||
long fcountgt60_;
|
||||
long mcount5160_;
|
||||
long mcount4150_;
|
||||
float agecount010Percent_;
|
||||
long mcount3140_;
|
||||
long newcount_;
|
||||
long mcount2130_;
|
||||
float agecount4150Percent_;
|
||||
float agecountgt60Percent_;
|
||||
float femalePercent_;
|
||||
float agecount1120Percent_;
|
||||
long mcount_;
|
||||
float oldcountPercent_;
|
||||
long fcount010_;
|
||||
long fcount1120_;
|
||||
long fcount2130_;
|
||||
long fcount3140_;
|
||||
long fcount4150_;
|
||||
long mcountgt60_;
|
||||
float agecount2130Percent_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETPORTRAYALRESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetSupportStoreRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetSupportStoreRequest();
|
||||
~GetSupportStoreRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTOREREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT GetSupportStoreResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StorePopDTO
|
||||
{
|
||||
std::string storeType;
|
||||
std::string openingStartTime;
|
||||
long storeId;
|
||||
std::string address;
|
||||
std::string regionName;
|
||||
std::string openingEndTime;
|
||||
long regionId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetSupportStoreResult();
|
||||
explicit GetSupportStoreResult(const std::string &payload);
|
||||
~GetSupportStoreResult();
|
||||
std::vector<StorePopDTO> getStorePopDTOs()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<StorePopDTO> storePopDTOs_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_GETSUPPORTSTORERESULT_H_
|
||||
@@ -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_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ListVisitorsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListVisitorsRequest();
|
||||
~ListVisitorsRequest();
|
||||
|
||||
std::string getPkId()const;
|
||||
void setPkId(const std::string& pkId);
|
||||
std::string getGender()const;
|
||||
void setGender(const std::string& gender);
|
||||
long getUkId()const;
|
||||
void setUkId(long ukId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLocationIds()const;
|
||||
void setLocationIds(const std::string& locationIds);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getEnterCount()const;
|
||||
void setEnterCount(long enterCount);
|
||||
int getPageIndex()const;
|
||||
void setPageIndex(int pageIndex);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
long getAgeStart()const;
|
||||
void setAgeStart(long ageStart);
|
||||
long getAgeEnd()const;
|
||||
void setAgeEnd(long ageEnd);
|
||||
std::string getStoreIds()const;
|
||||
void setStoreIds(const std::string& storeIds);
|
||||
|
||||
private:
|
||||
std::string pkId_;
|
||||
std::string gender_;
|
||||
long ukId_;
|
||||
int pageSize_;
|
||||
std::string locationIds_;
|
||||
std::string endTime_;
|
||||
long enterCount_;
|
||||
int pageIndex_;
|
||||
std::string startTime_;
|
||||
long ageStart_;
|
||||
long ageEnd_;
|
||||
std::string storeIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSREQUEST_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_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT ListVisitorsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct VisitorItem
|
||||
{
|
||||
std::string earliestPlace;
|
||||
std::string img;
|
||||
std::string pkId;
|
||||
std::string latelyPlace;
|
||||
long storeId;
|
||||
long latelyTime;
|
||||
long earliestTime;
|
||||
std::string ukId;
|
||||
long enterCount;
|
||||
std::string gender;
|
||||
long age;
|
||||
};
|
||||
|
||||
|
||||
ListVisitorsResult();
|
||||
explicit ListVisitorsResult(const std::string &payload);
|
||||
~ListVisitorsResult();
|
||||
int getPageSize()const;
|
||||
long getTotal()const;
|
||||
std::vector<VisitorItem> getVisitorItems()const;
|
||||
int getPageIndex()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
long total_;
|
||||
std::vector<VisitorItem> visitorItems_;
|
||||
int pageIndex_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_LISTVISITORSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT SearchPersonByImgRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchPersonByImgRequest();
|
||||
~SearchPersonByImgRequest();
|
||||
|
||||
std::string getImgUrl()const;
|
||||
void setImgUrl(const std::string& imgUrl);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
|
||||
private:
|
||||
std::string imgUrl_;
|
||||
long storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_
|
||||
#define ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cusanalytic_sc_online/Cusanalytic_sc_onlineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cusanalytic_sc_online
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_EXPORT SearchPersonByImgResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PersonSearchResultItem
|
||||
{
|
||||
std::string faceId;
|
||||
float score;
|
||||
std::string ukId;
|
||||
};
|
||||
|
||||
|
||||
SearchPersonByImgResult();
|
||||
explicit SearchPersonByImgResult(const std::string &payload);
|
||||
~SearchPersonByImgResult();
|
||||
std::string getMsg()const;
|
||||
std::vector<PersonSearchResultItem> getPersonSearchResultItems()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string msg_;
|
||||
std::vector<PersonSearchResultItem> personSearchResultItems_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CUSANALYTIC_SC_ONLINE_MODEL_SEARCHPERSONBYIMGRESULT_H_
|
||||
485
cusanalytic_sc_online/src/Cusanalytic_sc_onlineClient.cc
Normal file
485
cusanalytic_sc_online/src/Cusanalytic_sc_onlineClient.cc
Normal file
@@ -0,0 +1,485 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/Cusanalytic_sc_onlineClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "cusanalytic_sc_online";
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(const Credentials &credentials, const ClientConfiguration &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(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & 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(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::~Cusanalytic_sc_onlineClient()
|
||||
{}
|
||||
|
||||
Cusanalytic_sc_onlineClient::DescribeLocationsOutcome Cusanalytic_sc_onlineClient::describeLocations(const DescribeLocationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLocationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLocationsOutcome(DescribeLocationsResult(outcome.result()));
|
||||
else
|
||||
return DescribeLocationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::describeLocationsAsync(const DescribeLocationsRequest& request, const DescribeLocationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLocations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::DescribeLocationsOutcomeCallable Cusanalytic_sc_onlineClient::describeLocationsCallable(const DescribeLocationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLocationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLocations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetOverviewDataOutcome Cusanalytic_sc_onlineClient::getOverviewData(const GetOverviewDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetOverviewDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetOverviewDataOutcome(GetOverviewDataResult(outcome.result()));
|
||||
else
|
||||
return GetOverviewDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getOverviewDataAsync(const GetOverviewDataRequest& request, const GetOverviewDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getOverviewData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetOverviewDataOutcomeCallable Cusanalytic_sc_onlineClient::getOverviewDataCallable(const GetOverviewDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetOverviewDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getOverviewData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::DescribeActionDataOutcome Cusanalytic_sc_onlineClient::describeActionData(const DescribeActionDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeActionDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeActionDataOutcome(DescribeActionDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeActionDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::describeActionDataAsync(const DescribeActionDataRequest& request, const DescribeActionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeActionData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::DescribeActionDataOutcomeCallable Cusanalytic_sc_onlineClient::describeActionDataCallable(const DescribeActionDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeActionDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeActionData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetLocationsOutcome Cusanalytic_sc_onlineClient::getLocations(const GetLocationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetLocationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetLocationsOutcome(GetLocationsResult(outcome.result()));
|
||||
else
|
||||
return GetLocationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getLocationsAsync(const GetLocationsRequest& request, const GetLocationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getLocations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetLocationsOutcomeCallable Cusanalytic_sc_onlineClient::getLocationsCallable(const GetLocationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetLocationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getLocations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetSupportStoreOutcome Cusanalytic_sc_onlineClient::getSupportStore(const GetSupportStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSupportStoreOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSupportStoreOutcome(GetSupportStoreResult(outcome.result()));
|
||||
else
|
||||
return GetSupportStoreOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getSupportStoreAsync(const GetSupportStoreRequest& request, const GetSupportStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSupportStore(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetSupportStoreOutcomeCallable Cusanalytic_sc_onlineClient::getSupportStoreCallable(const GetSupportStoreRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSupportStoreOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSupportStore(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetHeatMapDataOutcome Cusanalytic_sc_onlineClient::getHeatMapData(const GetHeatMapDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetHeatMapDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetHeatMapDataOutcome(GetHeatMapDataResult(outcome.result()));
|
||||
else
|
||||
return GetHeatMapDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getHeatMapDataAsync(const GetHeatMapDataRequest& request, const GetHeatMapDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getHeatMapData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetHeatMapDataOutcomeCallable Cusanalytic_sc_onlineClient::getHeatMapDataCallable(const GetHeatMapDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetHeatMapDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getHeatMapData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetPortrayalOutcome Cusanalytic_sc_onlineClient::getPortrayal(const GetPortrayalRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPortrayalOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPortrayalOutcome(GetPortrayalResult(outcome.result()));
|
||||
else
|
||||
return GetPortrayalOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getPortrayalAsync(const GetPortrayalRequest& request, const GetPortrayalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPortrayal(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetPortrayalOutcomeCallable Cusanalytic_sc_onlineClient::getPortrayalCallable(const GetPortrayalRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPortrayalOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPortrayal(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetAnalyzeCommodityDataOutcome Cusanalytic_sc_onlineClient::getAnalyzeCommodityData(const GetAnalyzeCommodityDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAnalyzeCommodityDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAnalyzeCommodityDataOutcome(GetAnalyzeCommodityDataResult(outcome.result()));
|
||||
else
|
||||
return GetAnalyzeCommodityDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getAnalyzeCommodityDataAsync(const GetAnalyzeCommodityDataRequest& request, const GetAnalyzeCommodityDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAnalyzeCommodityData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetAnalyzeCommodityDataOutcomeCallable Cusanalytic_sc_onlineClient::getAnalyzeCommodityDataCallable(const GetAnalyzeCommodityDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAnalyzeCommodityDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAnalyzeCommodityData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::ListVisitorsOutcome Cusanalytic_sc_onlineClient::listVisitors(const ListVisitorsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListVisitorsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListVisitorsOutcome(ListVisitorsResult(outcome.result()));
|
||||
else
|
||||
return ListVisitorsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::listVisitorsAsync(const ListVisitorsRequest& request, const ListVisitorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listVisitors(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::ListVisitorsOutcomeCallable Cusanalytic_sc_onlineClient::listVisitorsCallable(const ListVisitorsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListVisitorsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listVisitors(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetEMapOutcome Cusanalytic_sc_onlineClient::getEMap(const GetEMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetEMapOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetEMapOutcome(GetEMapResult(outcome.result()));
|
||||
else
|
||||
return GetEMapOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getEMapAsync(const GetEMapRequest& request, const GetEMapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getEMap(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetEMapOutcomeCallable Cusanalytic_sc_onlineClient::getEMapCallable(const GetEMapRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetEMapOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getEMap(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::SearchPersonByImgOutcome Cusanalytic_sc_onlineClient::searchPersonByImg(const SearchPersonByImgRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchPersonByImgOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchPersonByImgOutcome(SearchPersonByImgResult(outcome.result()));
|
||||
else
|
||||
return SearchPersonByImgOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::searchPersonByImgAsync(const SearchPersonByImgRequest& request, const SearchPersonByImgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchPersonByImg(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::SearchPersonByImgOutcomeCallable Cusanalytic_sc_onlineClient::searchPersonByImgCallable(const SearchPersonByImgRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchPersonByImgOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchPersonByImg(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcome Cusanalytic_sc_onlineClient::getAnalyzePlaceData(const GetAnalyzePlaceDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAnalyzePlaceDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAnalyzePlaceDataOutcome(GetAnalyzePlaceDataResult(outcome.result()));
|
||||
else
|
||||
return GetAnalyzePlaceDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cusanalytic_sc_onlineClient::getAnalyzePlaceDataAsync(const GetAnalyzePlaceDataRequest& request, const GetAnalyzePlaceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAnalyzePlaceData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcomeCallable Cusanalytic_sc_onlineClient::getAnalyzePlaceDataCallable(const GetAnalyzePlaceDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAnalyzePlaceDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAnalyzePlaceData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
82
cusanalytic_sc_online/src/model/DescribeActionDataRequest.cc
Normal file
82
cusanalytic_sc_online/src/model/DescribeActionDataRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cusanalytic_sc_online/model/DescribeActionDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::DescribeActionDataRequest;
|
||||
|
||||
DescribeActionDataRequest::DescribeActionDataRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeActionData")
|
||||
{}
|
||||
|
||||
DescribeActionDataRequest::~DescribeActionDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeActionDataRequest::getTsEnd()const
|
||||
{
|
||||
return tsEnd_;
|
||||
}
|
||||
|
||||
void DescribeActionDataRequest::setTsEnd(long tsEnd)
|
||||
{
|
||||
tsEnd_ = tsEnd;
|
||||
setCoreParameter("TsEnd", std::to_string(tsEnd));
|
||||
}
|
||||
|
||||
int DescribeActionDataRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void DescribeActionDataRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
long DescribeActionDataRequest::getTsStart()const
|
||||
{
|
||||
return tsStart_;
|
||||
}
|
||||
|
||||
void DescribeActionDataRequest::setTsStart(long tsStart)
|
||||
{
|
||||
tsStart_ = tsStart;
|
||||
setCoreParameter("TsStart", std::to_string(tsStart));
|
||||
}
|
||||
|
||||
std::string DescribeActionDataRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void DescribeActionDataRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
int DescribeActionDataRequest::getPageLimit()const
|
||||
{
|
||||
return pageLimit_;
|
||||
}
|
||||
|
||||
void DescribeActionDataRequest::setPageLimit(int pageLimit)
|
||||
{
|
||||
pageLimit_ = pageLimit;
|
||||
setCoreParameter("PageLimit", std::to_string(pageLimit));
|
||||
}
|
||||
|
||||
154
cusanalytic_sc_online/src/model/DescribeActionDataResult.cc
Normal file
154
cusanalytic_sc_online/src/model/DescribeActionDataResult.cc
Normal file
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/DescribeActionDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
DescribeActionDataResult::DescribeActionDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeActionDataResult::DescribeActionDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeActionDataResult::~DescribeActionDataResult()
|
||||
{}
|
||||
|
||||
void DescribeActionDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActionsMsgItems = value["ActionsMsgItems"]["ActionsMsgItem"];
|
||||
for (auto value : allActionsMsgItems)
|
||||
{
|
||||
ActionsMsgItem actionsMsgItemsObject;
|
||||
if(!value["LocationId"].isNull())
|
||||
actionsMsgItemsObject.locationId = std::stol(value["LocationId"].asString());
|
||||
if(!value["UkId"].isNull())
|
||||
actionsMsgItemsObject.ukId = std::stol(value["UkId"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
actionsMsgItemsObject.gmtModified = value["GmtModified"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
actionsMsgItemsObject.status = std::stol(value["Status"].asString());
|
||||
if(!value["GmtCreate"].isNull())
|
||||
actionsMsgItemsObject.gmtCreate = value["GmtCreate"].asString();
|
||||
if(!value["StoreId"].isNull())
|
||||
actionsMsgItemsObject.storeId = std::stol(value["StoreId"].asString());
|
||||
if(!value["Tag"].isNull())
|
||||
actionsMsgItemsObject.tag = value["Tag"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
actionsMsgItemsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["LocationLayerType"].isNull())
|
||||
actionsMsgItemsObject.locationLayerType = value["LocationLayerType"].asString();
|
||||
auto actionInfosItemNode = value["ActionInfosItem"];
|
||||
if(!actionInfosItemNode["Maxts"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.maxts = std::stol(actionInfosItemNode["Maxts"].asString());
|
||||
if(!actionInfosItemNode["StayValid"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.stayValid = std::stol(actionInfosItemNode["StayValid"].asString());
|
||||
if(!actionInfosItemNode["StayPeriod"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.stayPeriod = std::stol(actionInfosItemNode["StayPeriod"].asString());
|
||||
if(!actionInfosItemNode["RawId"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.rawId = std::stol(actionInfosItemNode["RawId"].asString());
|
||||
if(!actionInfosItemNode["Mints"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.mints = std::stol(actionInfosItemNode["Mints"].asString());
|
||||
auto pointNode = actionInfosItemNode["Point"];
|
||||
if(!pointNode["X"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.point.x = std::stof(pointNode["X"].asString());
|
||||
if(!pointNode["Y"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.point.y = std::stof(pointNode["Y"].asString());
|
||||
auto senseRectEntityItemNode = actionInfosItemNode["SenseRectEntityItem"];
|
||||
if(!senseRectEntityItemNode["Bottom"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.bottom = std::stof(senseRectEntityItemNode["Bottom"].asString());
|
||||
if(!senseRectEntityItemNode["Left"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.left = std::stof(senseRectEntityItemNode["Left"].asString());
|
||||
if(!senseRectEntityItemNode["Top"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.top = std::stof(senseRectEntityItemNode["Top"].asString());
|
||||
if(!senseRectEntityItemNode["Right"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.right = std::stof(senseRectEntityItemNode["Right"].asString());
|
||||
auto attributesMsgItemNode = value["AttributesMsgItem"];
|
||||
if(!attributesMsgItemNode["ImgUrl"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.imgUrl = attributesMsgItemNode["ImgUrl"].asString();
|
||||
if(!attributesMsgItemNode["Score"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.score = std::stol(attributesMsgItemNode["Score"].asString());
|
||||
if(!attributesMsgItemNode["Gender"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.gender = attributesMsgItemNode["Gender"].asString();
|
||||
if(!attributesMsgItemNode["IsClerk"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.isClerk = std::stol(attributesMsgItemNode["IsClerk"].asString());
|
||||
if(!attributesMsgItemNode["AgeNum"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.ageNum = std::stoi(attributesMsgItemNode["AgeNum"].asString());
|
||||
if(!attributesMsgItemNode["ImgType"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.imgType = attributesMsgItemNode["ImgType"].asString();
|
||||
actionsMsgItems_.push_back(actionsMsgItemsObject);
|
||||
}
|
||||
if(!value["PageNo"].isNull())
|
||||
pageNo_ = std::stoi(value["PageNo"].asString());
|
||||
if(!value["TsStart"].isNull())
|
||||
tsStart_ = std::stol(value["TsStart"].asString());
|
||||
if(!value["PageLimit"].isNull())
|
||||
pageLimit_ = std::stoi(value["PageLimit"].asString());
|
||||
if(!value["PageCount"].isNull())
|
||||
pageCount_ = std::stoi(value["PageCount"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = value["StoreId"].asString();
|
||||
if(!value["TsEnd"].isNull())
|
||||
tsEnd_ = std::stol(value["TsEnd"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeActionDataResult::getTsStart()const
|
||||
{
|
||||
return tsStart_;
|
||||
}
|
||||
|
||||
int DescribeActionDataResult::getPageCount()const
|
||||
{
|
||||
return pageCount_;
|
||||
}
|
||||
|
||||
std::string DescribeActionDataResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
long DescribeActionDataResult::getTsEnd()const
|
||||
{
|
||||
return tsEnd_;
|
||||
}
|
||||
|
||||
int DescribeActionDataResult::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
int DescribeActionDataResult::getPageLimit()const
|
||||
{
|
||||
return pageLimit_;
|
||||
}
|
||||
|
||||
std::vector<DescribeActionDataResult::ActionsMsgItem> DescribeActionDataResult::getActionsMsgItems()const
|
||||
{
|
||||
return actionsMsgItems_;
|
||||
}
|
||||
|
||||
38
cusanalytic_sc_online/src/model/DescribeLocationsRequest.cc
Normal file
38
cusanalytic_sc_online/src/model/DescribeLocationsRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/DescribeLocationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::DescribeLocationsRequest;
|
||||
|
||||
DescribeLocationsRequest::DescribeLocationsRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeLocations")
|
||||
{}
|
||||
|
||||
DescribeLocationsRequest::~DescribeLocationsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLocationsRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void DescribeLocationsRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
101
cusanalytic_sc_online/src/model/DescribeLocationsResult.cc
Normal file
101
cusanalytic_sc_online/src/model/DescribeLocationsResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/DescribeLocationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
DescribeLocationsResult::DescribeLocationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLocationsResult::DescribeLocationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLocationsResult::~DescribeLocationsResult()
|
||||
{}
|
||||
|
||||
void DescribeLocationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLocationMsgItems = value["LocationMsgItems"]["LocationMsgItem"];
|
||||
for (auto value : allLocationMsgItems)
|
||||
{
|
||||
LocationMsgItem locationMsgItemsObject;
|
||||
if(!value["Tag"].isNull())
|
||||
locationMsgItemsObject.tag = value["Tag"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
locationMsgItemsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["ExtId"].isNull())
|
||||
locationMsgItemsObject.extId = value["ExtId"].asString();
|
||||
if(!value["LocationType"].isNull())
|
||||
locationMsgItemsObject.locationType = value["LocationType"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
locationMsgItemsObject.name = value["Name"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
locationMsgItemsObject.status = std::stol(value["Status"].asString());
|
||||
if(!value["GmtCreate"].isNull())
|
||||
locationMsgItemsObject.gmtCreate = value["GmtCreate"].asString();
|
||||
if(!value["StoreId"].isNull())
|
||||
locationMsgItemsObject.storeId = std::stol(value["StoreId"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
locationMsgItemsObject.gmtModified = value["GmtModified"].asString();
|
||||
if(!value["ParentLocationId"].isNull())
|
||||
locationMsgItemsObject.parentLocationId = std::stol(value["ParentLocationId"].asString());
|
||||
if(!value["LayerType"].isNull())
|
||||
locationMsgItemsObject.layerType = value["LayerType"].asString();
|
||||
auto allRectRois = value["RectRois"]["RectRoi"];
|
||||
for (auto value : allRectRois)
|
||||
{
|
||||
LocationMsgItem::RectRoi rectRoisObject;
|
||||
auto allPoints = value["Points"]["Point"];
|
||||
for (auto value : allPoints)
|
||||
{
|
||||
LocationMsgItem::RectRoi::Point pointsObject;
|
||||
if(!value["X"].isNull())
|
||||
pointsObject.x = std::stof(value["X"].asString());
|
||||
if(!value["Y"].isNull())
|
||||
pointsObject.y = std::stof(value["Y"].asString());
|
||||
rectRoisObject.points.push_back(pointsObject);
|
||||
}
|
||||
locationMsgItemsObject.rectRois.push_back(rectRoisObject);
|
||||
}
|
||||
locationMsgItems_.push_back(locationMsgItemsObject);
|
||||
}
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = value["StoreId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLocationsResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLocationsResult::LocationMsgItem> DescribeLocationsResult::getLocationMsgItems()const
|
||||
{
|
||||
return locationMsgItems_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetAnalyzeCommodityDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetAnalyzeCommodityDataRequest;
|
||||
|
||||
GetAnalyzeCommodityDataRequest::GetAnalyzeCommodityDataRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzeCommodityData")
|
||||
{}
|
||||
|
||||
GetAnalyzeCommodityDataRequest::~GetAnalyzeCommodityDataRequest()
|
||||
{}
|
||||
|
||||
long GetAnalyzeCommodityDataRequest::getStartUserCount()const
|
||||
{
|
||||
return startUserCount_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setStartUserCount(long startUserCount)
|
||||
{
|
||||
startUserCount_ = startUserCount;
|
||||
setCoreParameter("StartUserCount", std::to_string(startUserCount));
|
||||
}
|
||||
|
||||
std::string GetAnalyzeCommodityDataRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
long GetAnalyzeCommodityDataRequest::getEndUserCount()const
|
||||
{
|
||||
return endUserCount_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setEndUserCount(long endUserCount)
|
||||
{
|
||||
endUserCount_ = endUserCount;
|
||||
setCoreParameter("EndUserCount", std::to_string(endUserCount));
|
||||
}
|
||||
|
||||
int GetAnalyzeCommodityDataRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long GetAnalyzeCommodityDataRequest::getMinSupportCount()const
|
||||
{
|
||||
return minSupportCount_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setMinSupportCount(long minSupportCount)
|
||||
{
|
||||
minSupportCount_ = minSupportCount;
|
||||
setCoreParameter("MinSupportCount", std::to_string(minSupportCount));
|
||||
}
|
||||
|
||||
int GetAnalyzeCommodityDataRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
long GetAnalyzeCommodityDataRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
std::string GetAnalyzeCommodityDataRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long GetAnalyzeCommodityDataRequest::getStayPeriod()const
|
||||
{
|
||||
return stayPeriod_;
|
||||
}
|
||||
|
||||
void GetAnalyzeCommodityDataRequest::setStayPeriod(long stayPeriod)
|
||||
{
|
||||
stayPeriod_ = stayPeriod;
|
||||
setCoreParameter("StayPeriod", std::to_string(stayPeriod));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetAnalyzeCommodityDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetAnalyzeCommodityDataResult::GetAnalyzeCommodityDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAnalyzeCommodityDataResult::GetAnalyzeCommodityDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAnalyzeCommodityDataResult::~GetAnalyzeCommodityDataResult()
|
||||
{}
|
||||
|
||||
void GetAnalyzeCommodityDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAnalyzeCommodityItems = value["AnalyzeCommodityItems"]["AnalyzeCommodityItem"];
|
||||
for (auto value : allAnalyzeCommodityItems)
|
||||
{
|
||||
AnalyzeCommodityItem analyzeCommodityItemsObject;
|
||||
if(!value["LocationNames"].isNull())
|
||||
analyzeCommodityItemsObject.locationNames = value["LocationNames"].asString();
|
||||
if(!value["SupportCount"].isNull())
|
||||
analyzeCommodityItemsObject.supportCount = std::stol(value["SupportCount"].asString());
|
||||
if(!value["LocationIds"].isNull())
|
||||
analyzeCommodityItemsObject.locationIds = value["LocationIds"].asString();
|
||||
if(!value["ItemCount"].isNull())
|
||||
analyzeCommodityItemsObject.itemCount = std::stol(value["ItemCount"].asString());
|
||||
analyzeCommodityItems_.push_back(analyzeCommodityItemsObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetAnalyzeCommodityDataResult::AnalyzeCommodityItem> GetAnalyzeCommodityDataResult::getAnalyzeCommodityItems()const
|
||||
{
|
||||
return analyzeCommodityItems_;
|
||||
}
|
||||
|
||||
int GetAnalyzeCommodityDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetAnalyzeCommodityDataResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
int GetAnalyzeCommodityDataResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
115
cusanalytic_sc_online/src/model/GetAnalyzePlaceDataRequest.cc
Normal file
115
cusanalytic_sc_online/src/model/GetAnalyzePlaceDataRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetAnalyzePlaceDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetAnalyzePlaceDataRequest;
|
||||
|
||||
GetAnalyzePlaceDataRequest::GetAnalyzePlaceDataRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzePlaceData")
|
||||
{}
|
||||
|
||||
GetAnalyzePlaceDataRequest::~GetAnalyzePlaceDataRequest()
|
||||
{}
|
||||
|
||||
long GetAnalyzePlaceDataRequest::getEndUVCount()const
|
||||
{
|
||||
return endUVCount_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setEndUVCount(long endUVCount)
|
||||
{
|
||||
endUVCount_ = endUVCount;
|
||||
setCoreParameter("EndUVCount", std::to_string(endUVCount));
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataRequest::getParentAmount()const
|
||||
{
|
||||
return parentAmount_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setParentAmount(long parentAmount)
|
||||
{
|
||||
parentAmount_ = parentAmount;
|
||||
setCoreParameter("ParentAmount", std::to_string(parentAmount));
|
||||
}
|
||||
|
||||
std::string GetAnalyzePlaceDataRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataRequest::getLocationId()const
|
||||
{
|
||||
return locationId_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setLocationId(long locationId)
|
||||
{
|
||||
locationId_ = locationId;
|
||||
setCoreParameter("LocationId", std::to_string(locationId));
|
||||
}
|
||||
|
||||
std::string GetAnalyzePlaceDataRequest::getParentLocationIds()const
|
||||
{
|
||||
return parentLocationIds_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setParentLocationIds(const std::string& parentLocationIds)
|
||||
{
|
||||
parentLocationIds_ = parentLocationIds;
|
||||
setCoreParameter("ParentLocationIds", parentLocationIds);
|
||||
}
|
||||
|
||||
std::string GetAnalyzePlaceDataRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataRequest::getStartUVCount()const
|
||||
{
|
||||
return startUVCount_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setStartUVCount(long startUVCount)
|
||||
{
|
||||
startUVCount_ = startUVCount;
|
||||
setCoreParameter("StartUVCount", std::to_string(startUVCount));
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetAnalyzePlaceDataRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
110
cusanalytic_sc_online/src/model/GetAnalyzePlaceDataResult.cc
Normal file
110
cusanalytic_sc_online/src/model/GetAnalyzePlaceDataResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetAnalyzePlaceDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetAnalyzePlaceDataResult::GetAnalyzePlaceDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAnalyzePlaceDataResult::GetAnalyzePlaceDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAnalyzePlaceDataResult::~GetAnalyzePlaceDataResult()
|
||||
{}
|
||||
|
||||
void GetAnalyzePlaceDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAnalyzePlaceItems = value["AnalyzePlaceItems"]["AnalyzePlaceItem"];
|
||||
for (auto value : allAnalyzePlaceItems)
|
||||
{
|
||||
AnalyzePlaceItem analyzePlaceItemsObject;
|
||||
if(!value["LocationName"].isNull())
|
||||
analyzePlaceItemsObject.locationName = value["LocationName"].asString();
|
||||
if(!value["LocationId"].isNull())
|
||||
analyzePlaceItemsObject.locationId = std::stol(value["LocationId"].asString());
|
||||
if(!value["ParentLocationIds"].isNull())
|
||||
analyzePlaceItemsObject.parentLocationIds = value["ParentLocationIds"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
analyzePlaceItemsObject.count = std::stol(value["Count"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
analyzePlaceItemsObject.storeId = std::stol(value["StoreId"].asString());
|
||||
if(!value["Percent"].isNull())
|
||||
analyzePlaceItemsObject.percent = std::stof(value["Percent"].asString());
|
||||
analyzePlaceItems_.push_back(analyzePlaceItemsObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
if(!value["Percent"].isNull())
|
||||
percent_ = std::stof(value["Percent"].asString());
|
||||
if(!value["LocationName"].isNull())
|
||||
locationName_ = value["LocationName"].asString();
|
||||
if(!value["ParentLocationIds"].isNull())
|
||||
parentLocationIds_ = value["ParentLocationIds"].asString();
|
||||
if(!value["LocationId"].isNull())
|
||||
locationId_ = std::stol(value["LocationId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetAnalyzePlaceDataResult::AnalyzePlaceItem> GetAnalyzePlaceDataResult::getAnalyzePlaceItems()const
|
||||
{
|
||||
return analyzePlaceItems_;
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
float GetAnalyzePlaceDataResult::getPercent()const
|
||||
{
|
||||
return percent_;
|
||||
}
|
||||
|
||||
std::string GetAnalyzePlaceDataResult::getParentLocationIds()const
|
||||
{
|
||||
return parentLocationIds_;
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataResult::getLocationId()const
|
||||
{
|
||||
return locationId_;
|
||||
}
|
||||
|
||||
long GetAnalyzePlaceDataResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string GetAnalyzePlaceDataResult::getLocationName()const
|
||||
{
|
||||
return locationName_;
|
||||
}
|
||||
|
||||
49
cusanalytic_sc_online/src/model/GetEMapRequest.cc
Normal file
49
cusanalytic_sc_online/src/model/GetEMapRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetEMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetEMapRequest;
|
||||
|
||||
GetEMapRequest::GetEMapRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetEMap")
|
||||
{}
|
||||
|
||||
GetEMapRequest::~GetEMapRequest()
|
||||
{}
|
||||
|
||||
long GetEMapRequest::getLocationId()const
|
||||
{
|
||||
return locationId_;
|
||||
}
|
||||
|
||||
void GetEMapRequest::setLocationId(long locationId)
|
||||
{
|
||||
locationId_ = locationId;
|
||||
setCoreParameter("LocationId", std::to_string(locationId));
|
||||
}
|
||||
|
||||
long GetEMapRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetEMapRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
87
cusanalytic_sc_online/src/model/GetEMapResult.cc
Normal file
87
cusanalytic_sc_online/src/model/GetEMapResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetEMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetEMapResult::GetEMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEMapResult::GetEMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEMapResult::~GetEMapResult()
|
||||
{}
|
||||
|
||||
void GetEMapResult::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["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Scale"].isNull())
|
||||
scale_ = std::stof(value["Scale"].asString());
|
||||
if(!value["LocationId"].isNull())
|
||||
locationId_ = std::stol(value["LocationId"].asString());
|
||||
if(!value["EMapId"].isNull())
|
||||
eMapId_ = std::stol(value["EMapId"].asString());
|
||||
if(!value["ImageUrl"].isNull())
|
||||
imageUrl_ = value["ImageUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
long GetEMapResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
long GetEMapResult::getLocationId()const
|
||||
{
|
||||
return locationId_;
|
||||
}
|
||||
|
||||
std::string GetEMapResult::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
float GetEMapResult::getScale()const
|
||||
{
|
||||
return scale_;
|
||||
}
|
||||
|
||||
long GetEMapResult::getEMapId()const
|
||||
{
|
||||
return eMapId_;
|
||||
}
|
||||
|
||||
std::string GetEMapResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
49
cusanalytic_sc_online/src/model/GetHeatMapDataRequest.cc
Normal file
49
cusanalytic_sc_online/src/model/GetHeatMapDataRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetHeatMapDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetHeatMapDataRequest;
|
||||
|
||||
GetHeatMapDataRequest::GetHeatMapDataRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetHeatMapData")
|
||||
{}
|
||||
|
||||
GetHeatMapDataRequest::~GetHeatMapDataRequest()
|
||||
{}
|
||||
|
||||
std::string GetHeatMapDataRequest::getEMapName()const
|
||||
{
|
||||
return eMapName_;
|
||||
}
|
||||
|
||||
void GetHeatMapDataRequest::setEMapName(const std::string& eMapName)
|
||||
{
|
||||
eMapName_ = eMapName;
|
||||
setCoreParameter("EMapName", eMapName);
|
||||
}
|
||||
|
||||
long GetHeatMapDataRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetHeatMapDataRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
97
cusanalytic_sc_online/src/model/GetHeatMapDataResult.cc
Normal file
97
cusanalytic_sc_online/src/model/GetHeatMapDataResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetHeatMapDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetHeatMapDataResult::GetHeatMapDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHeatMapDataResult::GetHeatMapDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHeatMapDataResult::~GetHeatMapDataResult()
|
||||
{}
|
||||
|
||||
void GetHeatMapDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHeatMapItems = value["HeatMapItems"]["HeatMapItem"];
|
||||
for (auto value : allHeatMapItems)
|
||||
{
|
||||
HeatMapItem heatMapItemsObject;
|
||||
if(!value["Y"].isNull())
|
||||
heatMapItemsObject.y = std::stof(value["Y"].asString());
|
||||
if(!value["Weight"].isNull())
|
||||
heatMapItemsObject.weight = std::stof(value["Weight"].asString());
|
||||
if(!value["X"].isNull())
|
||||
heatMapItemsObject.x = std::stof(value["X"].asString());
|
||||
heatMapItems_.push_back(heatMapItemsObject);
|
||||
}
|
||||
if(!value["EMapName"].isNull())
|
||||
eMapName_ = value["EMapName"].asString();
|
||||
if(!value["Width"].isNull())
|
||||
width_ = std::stof(value["Width"].asString());
|
||||
if(!value["EMapUrl"].isNull())
|
||||
eMapUrl_ = value["EMapUrl"].asString();
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
height_ = std::stof(value["Height"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetHeatMapDataResult::HeatMapItem> GetHeatMapDataResult::getHeatMapItems()const
|
||||
{
|
||||
return heatMapItems_;
|
||||
}
|
||||
|
||||
std::string GetHeatMapDataResult::getEMapName()const
|
||||
{
|
||||
return eMapName_;
|
||||
}
|
||||
|
||||
long GetHeatMapDataResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
std::string GetHeatMapDataResult::getEMapUrl()const
|
||||
{
|
||||
return eMapUrl_;
|
||||
}
|
||||
|
||||
float GetHeatMapDataResult::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
float GetHeatMapDataResult::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
38
cusanalytic_sc_online/src/model/GetLocationsRequest.cc
Normal file
38
cusanalytic_sc_online/src/model/GetLocationsRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetLocationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetLocationsRequest;
|
||||
|
||||
GetLocationsRequest::GetLocationsRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetLocations")
|
||||
{}
|
||||
|
||||
GetLocationsRequest::~GetLocationsRequest()
|
||||
{}
|
||||
|
||||
long GetLocationsRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetLocationsRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
79
cusanalytic_sc_online/src/model/GetLocationsResult.cc
Normal file
79
cusanalytic_sc_online/src/model/GetLocationsResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cusanalytic_sc_online/model/GetLocationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetLocationsResult::GetLocationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetLocationsResult::GetLocationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetLocationsResult::~GetLocationsResult()
|
||||
{}
|
||||
|
||||
void GetLocationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLocationItems = value["LocationItems"]["LocationItem"];
|
||||
for (auto value : allLocationItems)
|
||||
{
|
||||
LocationItem locationItemsObject;
|
||||
if(!value["Status"].isNull())
|
||||
locationItemsObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
locationItemsObject.storeId = std::stol(value["StoreId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
locationItemsObject.name = value["Name"].asString();
|
||||
if(!value["Link"].isNull())
|
||||
locationItemsObject.link = value["Link"].asString() == "true";
|
||||
if(!value["LocationType"].isNull())
|
||||
locationItemsObject.locationType = value["LocationType"].asString();
|
||||
if(!value["LocationId"].isNull())
|
||||
locationItemsObject.locationId = std::stol(value["LocationId"].asString());
|
||||
if(!value["ParentLocationId"].isNull())
|
||||
locationItemsObject.parentLocationId = std::stol(value["ParentLocationId"].asString());
|
||||
if(!value["LayerType"].isNull())
|
||||
locationItemsObject.layerType = value["LayerType"].asString();
|
||||
locationItems_.push_back(locationItemsObject);
|
||||
}
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long GetLocationsResult::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
std::vector<GetLocationsResult::LocationItem> GetLocationsResult::getLocationItems()const
|
||||
{
|
||||
return locationItems_;
|
||||
}
|
||||
|
||||
49
cusanalytic_sc_online/src/model/GetOverviewDataRequest.cc
Normal file
49
cusanalytic_sc_online/src/model/GetOverviewDataRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetOverviewDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetOverviewDataRequest;
|
||||
|
||||
GetOverviewDataRequest::GetOverviewDataRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetOverviewData")
|
||||
{}
|
||||
|
||||
GetOverviewDataRequest::~GetOverviewDataRequest()
|
||||
{}
|
||||
|
||||
std::string GetOverviewDataRequest::getDate()const
|
||||
{
|
||||
return date_;
|
||||
}
|
||||
|
||||
void GetOverviewDataRequest::setDate(const std::string& date)
|
||||
{
|
||||
date_ = date;
|
||||
setCoreParameter("Date", date);
|
||||
}
|
||||
|
||||
std::string GetOverviewDataRequest::getStoreIds()const
|
||||
{
|
||||
return storeIds_;
|
||||
}
|
||||
|
||||
void GetOverviewDataRequest::setStoreIds(const std::string& storeIds)
|
||||
{
|
||||
storeIds_ = storeIds;
|
||||
setCoreParameter("StoreIds", storeIds);
|
||||
}
|
||||
|
||||
115
cusanalytic_sc_online/src/model/GetOverviewDataResult.cc
Normal file
115
cusanalytic_sc_online/src/model/GetOverviewDataResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetOverviewDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetOverviewDataResult::GetOverviewDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOverviewDataResult::GetOverviewDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOverviewDataResult::~GetOverviewDataResult()
|
||||
{}
|
||||
|
||||
void GetOverviewDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StayDeepAvg"].isNull())
|
||||
stayDeepAvg_ = std::stof(value["StayDeepAvg"].asString());
|
||||
if(!value["UvWeekGrowthPercent"].isNull())
|
||||
uvWeekGrowthPercent_ = std::stof(value["UvWeekGrowthPercent"].asString());
|
||||
if(!value["StayDeepAvgWeekGrowthPercent"].isNull())
|
||||
stayDeepAvgWeekGrowthPercent_ = std::stof(value["StayDeepAvgWeekGrowthPercent"].asString());
|
||||
if(!value["Uv"].isNull())
|
||||
uv_ = std::stol(value["Uv"].asString());
|
||||
if(!value["StayAvgPeriodWeekGrowthPercent"].isNull())
|
||||
stayAvgPeriodWeekGrowthPercent_ = std::stof(value["StayAvgPeriodWeekGrowthPercent"].asString());
|
||||
if(!value["UvEverySqm"].isNull())
|
||||
uvEverySqm_ = std::stof(value["UvEverySqm"].asString());
|
||||
if(!value["UvAvgWeekGrowthPercent"].isNull())
|
||||
uvAvgWeekGrowthPercent_ = std::stof(value["UvAvgWeekGrowthPercent"].asString());
|
||||
if(!value["StayAvgPeriod"].isNull())
|
||||
stayAvgPeriod_ = std::stof(value["StayAvgPeriod"].asString());
|
||||
if(!value["UvAvg"].isNull())
|
||||
uvAvg_ = std::stof(value["UvAvg"].asString());
|
||||
if(!value["UvEverySqmGrowthWeekPercent"].isNull())
|
||||
uvEverySqmGrowthWeekPercent_ = std::stof(value["UvEverySqmGrowthWeekPercent"].asString());
|
||||
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getStayDeepAvg()const
|
||||
{
|
||||
return stayDeepAvg_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getUvWeekGrowthPercent()const
|
||||
{
|
||||
return uvWeekGrowthPercent_;
|
||||
}
|
||||
|
||||
long GetOverviewDataResult::getUv()const
|
||||
{
|
||||
return uv_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getUvEverySqm()const
|
||||
{
|
||||
return uvEverySqm_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getUvEverySqmGrowthWeekPercent()const
|
||||
{
|
||||
return uvEverySqmGrowthWeekPercent_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getUvAvg()const
|
||||
{
|
||||
return uvAvg_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getStayAvgPeriod()const
|
||||
{
|
||||
return stayAvgPeriod_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getStayAvgPeriodWeekGrowthPercent()const
|
||||
{
|
||||
return stayAvgPeriodWeekGrowthPercent_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getUvAvgWeekGrowthPercent()const
|
||||
{
|
||||
return uvAvgWeekGrowthPercent_;
|
||||
}
|
||||
|
||||
float GetOverviewDataResult::getStayDeepAvgWeekGrowthPercent()const
|
||||
{
|
||||
return stayDeepAvgWeekGrowthPercent_;
|
||||
}
|
||||
|
||||
60
cusanalytic_sc_online/src/model/GetPortrayalRequest.cc
Normal file
60
cusanalytic_sc_online/src/model/GetPortrayalRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cusanalytic_sc_online/model/GetPortrayalRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetPortrayalRequest;
|
||||
|
||||
GetPortrayalRequest::GetPortrayalRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetPortrayal")
|
||||
{}
|
||||
|
||||
GetPortrayalRequest::~GetPortrayalRequest()
|
||||
{}
|
||||
|
||||
std::string GetPortrayalRequest::getDate()const
|
||||
{
|
||||
return date_;
|
||||
}
|
||||
|
||||
void GetPortrayalRequest::setDate(const std::string& date)
|
||||
{
|
||||
date_ = date;
|
||||
setCoreParameter("Date", date);
|
||||
}
|
||||
|
||||
std::string GetPortrayalRequest::getLocationIds()const
|
||||
{
|
||||
return locationIds_;
|
||||
}
|
||||
|
||||
void GetPortrayalRequest::setLocationIds(const std::string& locationIds)
|
||||
{
|
||||
locationIds_ = locationIds;
|
||||
setCoreParameter("LocationIds", locationIds);
|
||||
}
|
||||
|
||||
std::string GetPortrayalRequest::getStoreIds()const
|
||||
{
|
||||
return storeIds_;
|
||||
}
|
||||
|
||||
void GetPortrayalRequest::setStoreIds(const std::string& storeIds)
|
||||
{
|
||||
storeIds_ = storeIds;
|
||||
setCoreParameter("StoreIds", storeIds);
|
||||
}
|
||||
|
||||
248
cusanalytic_sc_online/src/model/GetPortrayalResult.cc
Normal file
248
cusanalytic_sc_online/src/model/GetPortrayalResult.cc
Normal file
@@ -0,0 +1,248 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetPortrayalResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetPortrayalResult::GetPortrayalResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPortrayalResult::GetPortrayalResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPortrayalResult::~GetPortrayalResult()
|
||||
{}
|
||||
|
||||
void GetPortrayalResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["FemalePercent"].isNull())
|
||||
femalePercent_ = std::stof(value["FemalePercent"].asString());
|
||||
if(!value["Mcount"].isNull())
|
||||
mcount_ = std::stol(value["Mcount"].asString());
|
||||
if(!value["Mcount1120"].isNull())
|
||||
mcount1120_ = std::stol(value["Mcount1120"].asString());
|
||||
if(!value["Newcount"].isNull())
|
||||
newcount_ = std::stol(value["Newcount"].asString());
|
||||
if(!value["Agecount3140Percent"].isNull())
|
||||
agecount3140Percent_ = std::stof(value["Agecount3140Percent"].asString());
|
||||
if(!value["Agecount4150Percent"].isNull())
|
||||
agecount4150Percent_ = std::stof(value["Agecount4150Percent"].asString());
|
||||
if(!value["Agecount010Percent"].isNull())
|
||||
agecount010Percent_ = std::stof(value["Agecount010Percent"].asString());
|
||||
if(!value["Fcount5160"].isNull())
|
||||
fcount5160_ = std::stol(value["Fcount5160"].asString());
|
||||
if(!value["Mcount010"].isNull())
|
||||
mcount010_ = std::stol(value["Mcount010"].asString());
|
||||
if(!value["Mcountgt60"].isNull())
|
||||
mcountgt60_ = std::stol(value["Mcountgt60"].asString());
|
||||
if(!value["Agecount1120Percent"].isNull())
|
||||
agecount1120Percent_ = std::stof(value["Agecount1120Percent"].asString());
|
||||
if(!value["Fcountgt60"].isNull())
|
||||
fcountgt60_ = std::stol(value["Fcountgt60"].asString());
|
||||
if(!value["Fcount4150"].isNull())
|
||||
fcount4150_ = std::stol(value["Fcount4150"].asString());
|
||||
if(!value["Oldcount"].isNull())
|
||||
oldcount_ = std::stol(value["Oldcount"].asString());
|
||||
if(!value["Fcount3140"].isNull())
|
||||
fcount3140_ = std::stol(value["Fcount3140"].asString());
|
||||
if(!value["Fcount2130"].isNull())
|
||||
fcount2130_ = std::stol(value["Fcount2130"].asString());
|
||||
if(!value["Agecountgt60Percent"].isNull())
|
||||
agecountgt60Percent_ = std::stof(value["Agecountgt60Percent"].asString());
|
||||
if(!value["Fcount1120"].isNull())
|
||||
fcount1120_ = std::stol(value["Fcount1120"].asString());
|
||||
if(!value["OldcountPercent"].isNull())
|
||||
oldcountPercent_ = std::stof(value["OldcountPercent"].asString());
|
||||
if(!value["Mcount4150"].isNull())
|
||||
mcount4150_ = std::stol(value["Mcount4150"].asString());
|
||||
if(!value["Fcount"].isNull())
|
||||
fcount_ = std::stol(value["Fcount"].asString());
|
||||
if(!value["NewcountPercent"].isNull())
|
||||
newcountPercent_ = std::stof(value["NewcountPercent"].asString());
|
||||
if(!value["Mcount2130"].isNull())
|
||||
mcount2130_ = std::stol(value["Mcount2130"].asString());
|
||||
if(!value["Mcount3140"].isNull())
|
||||
mcount3140_ = std::stol(value["Mcount3140"].asString());
|
||||
if(!value["Agecount5160Percent"].isNull())
|
||||
agecount5160Percent_ = std::stof(value["Agecount5160Percent"].asString());
|
||||
if(!value["Agecount2130Percent"].isNull())
|
||||
agecount2130Percent_ = std::stof(value["Agecount2130Percent"].asString());
|
||||
if(!value["Fcount010"].isNull())
|
||||
fcount010_ = std::stol(value["Fcount010"].asString());
|
||||
if(!value["Mcount5160"].isNull())
|
||||
mcount5160_ = std::stol(value["Mcount5160"].asString());
|
||||
if(!value["MalePercent"].isNull())
|
||||
malePercent_ = std::stof(value["MalePercent"].asString());
|
||||
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getOldcount()const
|
||||
{
|
||||
return oldcount_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecount5160Percent()const
|
||||
{
|
||||
return agecount5160Percent_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount5160()const
|
||||
{
|
||||
return fcount5160_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount010()const
|
||||
{
|
||||
return mcount010_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getMalePercent()const
|
||||
{
|
||||
return malePercent_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount()const
|
||||
{
|
||||
return fcount_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecount3140Percent()const
|
||||
{
|
||||
return agecount3140Percent_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getNewcountPercent()const
|
||||
{
|
||||
return newcountPercent_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount1120()const
|
||||
{
|
||||
return mcount1120_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcountgt60()const
|
||||
{
|
||||
return fcountgt60_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount5160()const
|
||||
{
|
||||
return mcount5160_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount4150()const
|
||||
{
|
||||
return mcount4150_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecount010Percent()const
|
||||
{
|
||||
return agecount010Percent_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount3140()const
|
||||
{
|
||||
return mcount3140_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getNewcount()const
|
||||
{
|
||||
return newcount_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount2130()const
|
||||
{
|
||||
return mcount2130_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecount4150Percent()const
|
||||
{
|
||||
return agecount4150Percent_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecountgt60Percent()const
|
||||
{
|
||||
return agecountgt60Percent_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getFemalePercent()const
|
||||
{
|
||||
return femalePercent_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecount1120Percent()const
|
||||
{
|
||||
return agecount1120Percent_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcount()const
|
||||
{
|
||||
return mcount_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getOldcountPercent()const
|
||||
{
|
||||
return oldcountPercent_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount010()const
|
||||
{
|
||||
return fcount010_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount1120()const
|
||||
{
|
||||
return fcount1120_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount2130()const
|
||||
{
|
||||
return fcount2130_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount3140()const
|
||||
{
|
||||
return fcount3140_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getFcount4150()const
|
||||
{
|
||||
return fcount4150_;
|
||||
}
|
||||
|
||||
long GetPortrayalResult::getMcountgt60()const
|
||||
{
|
||||
return mcountgt60_;
|
||||
}
|
||||
|
||||
float GetPortrayalResult::getAgecount2130Percent()const
|
||||
{
|
||||
return agecount2130Percent_;
|
||||
}
|
||||
|
||||
27
cusanalytic_sc_online/src/model/GetSupportStoreRequest.cc
Normal file
27
cusanalytic_sc_online/src/model/GetSupportStoreRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetSupportStoreRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::GetSupportStoreRequest;
|
||||
|
||||
GetSupportStoreRequest::GetSupportStoreRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetSupportStore")
|
||||
{}
|
||||
|
||||
GetSupportStoreRequest::~GetSupportStoreRequest()
|
||||
{}
|
||||
|
||||
72
cusanalytic_sc_online/src/model/GetSupportStoreResult.cc
Normal file
72
cusanalytic_sc_online/src/model/GetSupportStoreResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/GetSupportStoreResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
GetSupportStoreResult::GetSupportStoreResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSupportStoreResult::GetSupportStoreResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSupportStoreResult::~GetSupportStoreResult()
|
||||
{}
|
||||
|
||||
void GetSupportStoreResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStorePopDTOs = value["StorePopDTOs"]["StorePopDTO"];
|
||||
for (auto value : allStorePopDTOs)
|
||||
{
|
||||
StorePopDTO storePopDTOsObject;
|
||||
if(!value["StoreId"].isNull())
|
||||
storePopDTOsObject.storeId = std::stol(value["StoreId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
storePopDTOsObject.name = value["Name"].asString();
|
||||
if(!value["RegionName"].isNull())
|
||||
storePopDTOsObject.regionName = value["RegionName"].asString();
|
||||
if(!value["OpeningStartTime"].isNull())
|
||||
storePopDTOsObject.openingStartTime = value["OpeningStartTime"].asString();
|
||||
if(!value["OpeningEndTime"].isNull())
|
||||
storePopDTOsObject.openingEndTime = value["OpeningEndTime"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
storePopDTOsObject.regionId = std::stol(value["RegionId"].asString());
|
||||
if(!value["StoreType"].isNull())
|
||||
storePopDTOsObject.storeType = value["StoreType"].asString();
|
||||
if(!value["Address"].isNull())
|
||||
storePopDTOsObject.address = value["Address"].asString();
|
||||
storePopDTOs_.push_back(storePopDTOsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetSupportStoreResult::StorePopDTO> GetSupportStoreResult::getStorePopDTOs()const
|
||||
{
|
||||
return storePopDTOs_;
|
||||
}
|
||||
|
||||
159
cusanalytic_sc_online/src/model/ListVisitorsRequest.cc
Normal file
159
cusanalytic_sc_online/src/model/ListVisitorsRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cusanalytic_sc_online/model/ListVisitorsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::ListVisitorsRequest;
|
||||
|
||||
ListVisitorsRequest::ListVisitorsRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "ListVisitors")
|
||||
{}
|
||||
|
||||
ListVisitorsRequest::~ListVisitorsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVisitorsRequest::getPkId()const
|
||||
{
|
||||
return pkId_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setPkId(const std::string& pkId)
|
||||
{
|
||||
pkId_ = pkId;
|
||||
setCoreParameter("PkId", pkId);
|
||||
}
|
||||
|
||||
std::string ListVisitorsRequest::getGender()const
|
||||
{
|
||||
return gender_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setGender(const std::string& gender)
|
||||
{
|
||||
gender_ = gender;
|
||||
setCoreParameter("Gender", gender);
|
||||
}
|
||||
|
||||
long ListVisitorsRequest::getUkId()const
|
||||
{
|
||||
return ukId_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setUkId(long ukId)
|
||||
{
|
||||
ukId_ = ukId;
|
||||
setCoreParameter("UkId", std::to_string(ukId));
|
||||
}
|
||||
|
||||
int ListVisitorsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListVisitorsRequest::getLocationIds()const
|
||||
{
|
||||
return locationIds_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setLocationIds(const std::string& locationIds)
|
||||
{
|
||||
locationIds_ = locationIds;
|
||||
setCoreParameter("LocationIds", locationIds);
|
||||
}
|
||||
|
||||
std::string ListVisitorsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long ListVisitorsRequest::getEnterCount()const
|
||||
{
|
||||
return enterCount_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setEnterCount(long enterCount)
|
||||
{
|
||||
enterCount_ = enterCount;
|
||||
setCoreParameter("EnterCount", std::to_string(enterCount));
|
||||
}
|
||||
|
||||
int ListVisitorsRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setCoreParameter("PageIndex", std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
std::string ListVisitorsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListVisitorsRequest::getAgeStart()const
|
||||
{
|
||||
return ageStart_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setAgeStart(long ageStart)
|
||||
{
|
||||
ageStart_ = ageStart;
|
||||
setCoreParameter("AgeStart", std::to_string(ageStart));
|
||||
}
|
||||
|
||||
long ListVisitorsRequest::getAgeEnd()const
|
||||
{
|
||||
return ageEnd_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setAgeEnd(long ageEnd)
|
||||
{
|
||||
ageEnd_ = ageEnd;
|
||||
setCoreParameter("AgeEnd", std::to_string(ageEnd));
|
||||
}
|
||||
|
||||
std::string ListVisitorsRequest::getStoreIds()const
|
||||
{
|
||||
return storeIds_;
|
||||
}
|
||||
|
||||
void ListVisitorsRequest::setStoreIds(const std::string& storeIds)
|
||||
{
|
||||
storeIds_ = storeIds;
|
||||
setCoreParameter("StoreIds", storeIds);
|
||||
}
|
||||
|
||||
99
cusanalytic_sc_online/src/model/ListVisitorsResult.cc
Normal file
99
cusanalytic_sc_online/src/model/ListVisitorsResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/ListVisitorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
ListVisitorsResult::ListVisitorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVisitorsResult::ListVisitorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVisitorsResult::~ListVisitorsResult()
|
||||
{}
|
||||
|
||||
void ListVisitorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVisitorItems = value["VisitorItems"]["VisitorItem"];
|
||||
for (auto value : allVisitorItems)
|
||||
{
|
||||
VisitorItem visitorItemsObject;
|
||||
if(!value["Img"].isNull())
|
||||
visitorItemsObject.img = value["Img"].asString();
|
||||
if(!value["PkId"].isNull())
|
||||
visitorItemsObject.pkId = value["PkId"].asString();
|
||||
if(!value["LatelyTime"].isNull())
|
||||
visitorItemsObject.latelyTime = std::stol(value["LatelyTime"].asString());
|
||||
if(!value["EarliestPlace"].isNull())
|
||||
visitorItemsObject.earliestPlace = value["EarliestPlace"].asString();
|
||||
if(!value["UkId"].isNull())
|
||||
visitorItemsObject.ukId = value["UkId"].asString();
|
||||
if(!value["Gender"].isNull())
|
||||
visitorItemsObject.gender = value["Gender"].asString();
|
||||
if(!value["EarliestTime"].isNull())
|
||||
visitorItemsObject.earliestTime = std::stol(value["EarliestTime"].asString());
|
||||
if(!value["LatelyPlace"].isNull())
|
||||
visitorItemsObject.latelyPlace = value["LatelyPlace"].asString();
|
||||
if(!value["Age"].isNull())
|
||||
visitorItemsObject.age = std::stol(value["Age"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
visitorItemsObject.storeId = std::stol(value["StoreId"].asString());
|
||||
if(!value["EnterCount"].isNull())
|
||||
visitorItemsObject.enterCount = std::stol(value["EnterCount"].asString());
|
||||
visitorItems_.push_back(visitorItemsObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stoi(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListVisitorsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListVisitorsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<ListVisitorsResult::VisitorItem> ListVisitorsResult::getVisitorItems()const
|
||||
{
|
||||
return visitorItems_;
|
||||
}
|
||||
|
||||
int ListVisitorsResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
49
cusanalytic_sc_online/src/model/SearchPersonByImgRequest.cc
Normal file
49
cusanalytic_sc_online/src/model/SearchPersonByImgRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/cusanalytic_sc_online/model/SearchPersonByImgRequest.h>
|
||||
|
||||
using AlibabaCloud::Cusanalytic_sc_online::Model::SearchPersonByImgRequest;
|
||||
|
||||
SearchPersonByImgRequest::SearchPersonByImgRequest() :
|
||||
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "SearchPersonByImg")
|
||||
{}
|
||||
|
||||
SearchPersonByImgRequest::~SearchPersonByImgRequest()
|
||||
{}
|
||||
|
||||
std::string SearchPersonByImgRequest::getImgUrl()const
|
||||
{
|
||||
return imgUrl_;
|
||||
}
|
||||
|
||||
void SearchPersonByImgRequest::setImgUrl(const std::string& imgUrl)
|
||||
{
|
||||
imgUrl_ = imgUrl;
|
||||
setCoreParameter("ImgUrl", imgUrl);
|
||||
}
|
||||
|
||||
long SearchPersonByImgRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void SearchPersonByImgRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
76
cusanalytic_sc_online/src/model/SearchPersonByImgResult.cc
Normal file
76
cusanalytic_sc_online/src/model/SearchPersonByImgResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online;
|
||||
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
|
||||
|
||||
SearchPersonByImgResult::SearchPersonByImgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchPersonByImgResult::SearchPersonByImgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchPersonByImgResult::~SearchPersonByImgResult()
|
||||
{}
|
||||
|
||||
void SearchPersonByImgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPersonSearchResultItems = value["PersonSearchResultItems"]["PersonSearchResultItem"];
|
||||
for (auto value : allPersonSearchResultItems)
|
||||
{
|
||||
PersonSearchResultItem personSearchResultItemsObject;
|
||||
if(!value["FaceId"].isNull())
|
||||
personSearchResultItemsObject.faceId = value["FaceId"].asString();
|
||||
if(!value["UkId"].isNull())
|
||||
personSearchResultItemsObject.ukId = value["UkId"].asString();
|
||||
if(!value["Score"].isNull())
|
||||
personSearchResultItemsObject.score = std::stof(value["Score"].asString());
|
||||
personSearchResultItems_.push_back(personSearchResultItemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SearchPersonByImgResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
std::vector<SearchPersonByImgResult::PersonSearchResultItem> SearchPersonByImgResult::getPersonSearchResultItems()const
|
||||
{
|
||||
return personSearchResultItems_;
|
||||
}
|
||||
|
||||
bool SearchPersonByImgResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user