Generated 2019-05-24 for cusanalytic_sc_online.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2019-09-05 Version 1.36.109
|
||||||
|
- Generated 2019-05-24 for `cusanalytic_sc_online`.
|
||||||
|
|
||||||
2019-09-05 Version 1.36.108
|
2019-09-05 Version 1.36.108
|
||||||
- Generated 2015-11-01 for `Market`.
|
- Generated 2015-11-01 for `Market`.
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ set(cusanalytic_sc_online_public_header_model
|
|||||||
include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h )
|
include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h )
|
||||||
|
|
||||||
set(cusanalytic_sc_online_src
|
set(cusanalytic_sc_online_src
|
||||||
src/Cusanalytic_sc_onlineClient.cc
|
src/com.aliyun.pop.sdk.domain.Product@6c284afClient.cc
|
||||||
src/model/DescribeLocationsRequest.cc
|
src/model/DescribeLocationsRequest.cc
|
||||||
src/model/DescribeLocationsResult.cc
|
src/model/DescribeLocationsResult.cc
|
||||||
src/model/GetSupportStoreRequest.cc
|
src/model/GetSupportStoreRequest.cc
|
||||||
|
|||||||
@@ -37,21 +37,21 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
long getTsEnd()const;
|
long getTsEnd()const;
|
||||||
void setTsEnd(long tsEnd);
|
void setTsEnd(long tsEnd);
|
||||||
int getPageNo()const;
|
|
||||||
void setPageNo(int pageNo);
|
|
||||||
long getTsStart()const;
|
|
||||||
void setTsStart(long tsStart);
|
|
||||||
std::string getStoreId()const;
|
std::string getStoreId()const;
|
||||||
void setStoreId(const std::string& storeId);
|
void setStoreId(const std::string& storeId);
|
||||||
int getPageLimit()const;
|
int getPageLimit()const;
|
||||||
void setPageLimit(int pageLimit);
|
void setPageLimit(int pageLimit);
|
||||||
|
int getPageNo()const;
|
||||||
|
void setPageNo(int pageNo);
|
||||||
|
long getTsStart()const;
|
||||||
|
void setTsStart(long tsStart);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long tsEnd_;
|
long tsEnd_;
|
||||||
int pageNo_;
|
|
||||||
long tsStart_;
|
|
||||||
std::string storeId_;
|
std::string storeId_;
|
||||||
int pageLimit_;
|
int pageLimit_;
|
||||||
|
int pageNo_;
|
||||||
|
long tsStart_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,28 +36,29 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
struct ActionInfosItem
|
struct ActionInfosItem
|
||||||
{
|
{
|
||||||
struct Point
|
struct MapImagePoint
|
||||||
{
|
{
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
};
|
};
|
||||||
struct SenseRectEntityItem
|
struct FaceImgRect
|
||||||
{
|
{
|
||||||
float left;
|
float left;
|
||||||
float top;
|
float top;
|
||||||
float right;
|
float right;
|
||||||
float bottom;
|
float bottom;
|
||||||
};
|
};
|
||||||
SenseRectEntityItem senseRectEntityItem;
|
|
||||||
long rawId;
|
long rawId;
|
||||||
long stayPeriod;
|
long stayPeriod;
|
||||||
|
MapImagePoint mapImagePoint;
|
||||||
|
FaceImgRect faceImgRect;
|
||||||
long maxts;
|
long maxts;
|
||||||
Point point;
|
|
||||||
long stayValid;
|
long stayValid;
|
||||||
long mints;
|
long mints;
|
||||||
};
|
};
|
||||||
struct AttributesMsgItem
|
struct AttributesMsgItem
|
||||||
{
|
{
|
||||||
|
std::string imgObjectKey;
|
||||||
long score;
|
long score;
|
||||||
int ageNum;
|
int ageNum;
|
||||||
std::string imgType;
|
std::string imgType;
|
||||||
|
|||||||
@@ -35,11 +35,11 @@ namespace AlibabaCloud
|
|||||||
GetActionCursorRequest();
|
GetActionCursorRequest();
|
||||||
~GetActionCursorRequest();
|
~GetActionCursorRequest();
|
||||||
|
|
||||||
std::string getStoreId()const;
|
std::string getStoreId()const;
|
||||||
void setStoreId(const std::string& storeId);
|
void setStoreId(const std::string& storeId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string storeId_;
|
std::string storeId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
|||||||
GetAnalyzeCommodityDataRequest();
|
GetAnalyzeCommodityDataRequest();
|
||||||
~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;
|
long getStoreId()const;
|
||||||
void setStoreId(long storeId);
|
void setStoreId(long storeId);
|
||||||
std::string getStartDate()const;
|
std::string getStartDate()const;
|
||||||
void setStartDate(const std::string& startDate);
|
void setStartDate(const std::string& startDate);
|
||||||
|
long getEndUserCount()const;
|
||||||
|
void setEndUserCount(long endUserCount);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
|
int getPageIndex()const;
|
||||||
|
void setPageIndex(int pageIndex);
|
||||||
long getStayPeriod()const;
|
long getStayPeriod()const;
|
||||||
void setStayPeriod(long stayPeriod);
|
void setStayPeriod(long stayPeriod);
|
||||||
|
long getStartUserCount()const;
|
||||||
|
void setStartUserCount(long startUserCount);
|
||||||
|
long getMinSupportCount()const;
|
||||||
|
void setMinSupportCount(long minSupportCount);
|
||||||
|
std::string getEndDate()const;
|
||||||
|
void setEndDate(const std::string& endDate);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long startUserCount_;
|
|
||||||
std::string endDate_;
|
|
||||||
long endUserCount_;
|
|
||||||
int pageSize_;
|
|
||||||
long minSupportCount_;
|
|
||||||
int pageIndex_;
|
|
||||||
long storeId_;
|
long storeId_;
|
||||||
std::string startDate_;
|
std::string startDate_;
|
||||||
|
long endUserCount_;
|
||||||
|
int pageSize_;
|
||||||
|
int pageIndex_;
|
||||||
long stayPeriod_;
|
long stayPeriod_;
|
||||||
|
long startUserCount_;
|
||||||
|
long minSupportCount_;
|
||||||
|
std::string endDate_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,28 +39,28 @@ namespace AlibabaCloud
|
|||||||
void setEndUVCount(long endUVCount);
|
void setEndUVCount(long endUVCount);
|
||||||
long getParentAmount()const;
|
long getParentAmount()const;
|
||||||
void setParentAmount(long parentAmount);
|
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;
|
std::string getStartDate()const;
|
||||||
void setStartDate(const std::string& startDate);
|
void setStartDate(const std::string& startDate);
|
||||||
long getStartUVCount()const;
|
long getStartUVCount()const;
|
||||||
void setStartUVCount(long startUVCount);
|
void setStartUVCount(long startUVCount);
|
||||||
long getStoreId()const;
|
long getStoreId()const;
|
||||||
void setStoreId(long storeId);
|
void setStoreId(long storeId);
|
||||||
|
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);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long endUVCount_;
|
long endUVCount_;
|
||||||
long parentAmount_;
|
long parentAmount_;
|
||||||
std::string endDate_;
|
|
||||||
long locationId_;
|
|
||||||
std::string parentLocationIds_;
|
|
||||||
std::string startDate_;
|
std::string startDate_;
|
||||||
long startUVCount_;
|
long startUVCount_;
|
||||||
long storeId_;
|
long storeId_;
|
||||||
|
std::string endDate_;
|
||||||
|
long locationId_;
|
||||||
|
std::string parentLocationIds_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
|||||||
GetEMapRequest();
|
GetEMapRequest();
|
||||||
~GetEMapRequest();
|
~GetEMapRequest();
|
||||||
|
|
||||||
long getLocationId()const;
|
|
||||||
void setLocationId(long locationId);
|
|
||||||
long getStoreId()const;
|
long getStoreId()const;
|
||||||
void setStoreId(long storeId);
|
void setStoreId(long storeId);
|
||||||
|
long getLocationId()const;
|
||||||
|
void setLocationId(long locationId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long locationId_;
|
|
||||||
long storeId_;
|
long storeId_;
|
||||||
|
long locationId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
|||||||
GetImageUrlRequest();
|
GetImageUrlRequest();
|
||||||
~GetImageUrlRequest();
|
~GetImageUrlRequest();
|
||||||
|
|
||||||
std::string getObjectKeys()const;
|
std::string getOriginUrls()const;
|
||||||
void setObjectKeys(const std::string& objectKeys);
|
void setOriginUrls(const std::string& originUrls);
|
||||||
std::string getOriginUrls()const;
|
std::string getStoreId()const;
|
||||||
void setOriginUrls(const std::string& originUrls);
|
void setStoreId(const std::string& storeId);
|
||||||
std::string getStoreId()const;
|
std::string getObjectKeys()const;
|
||||||
void setStoreId(const std::string& storeId);
|
void setObjectKeys(const std::string& objectKeys);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string objectKeys_;
|
std::string originUrls_;
|
||||||
std::string originUrls_;
|
std::string storeId_;
|
||||||
std::string storeId_;
|
std::string objectKeys_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,43 +35,43 @@ namespace AlibabaCloud
|
|||||||
ListVisitorsRequest();
|
ListVisitorsRequest();
|
||||||
~ListVisitorsRequest();
|
~ListVisitorsRequest();
|
||||||
|
|
||||||
std::string getPkId()const;
|
|
||||||
void setPkId(const std::string& pkId);
|
|
||||||
std::string getGender()const;
|
std::string getGender()const;
|
||||||
void setGender(const std::string& gender);
|
void setGender(const std::string& gender);
|
||||||
long getUkId()const;
|
long getUkId()const;
|
||||||
void setUkId(long ukId);
|
void setUkId(long ukId);
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
std::string getLocationIds()const;
|
std::string getLocationIds()const;
|
||||||
void setLocationIds(const std::string& locationIds);
|
void setLocationIds(const std::string& locationIds);
|
||||||
std::string getEndTime()const;
|
std::string getStartTime()const;
|
||||||
void setEndTime(const std::string& endTime);
|
void setStartTime(const std::string& startTime);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
long getEnterCount()const;
|
long getEnterCount()const;
|
||||||
void setEnterCount(long enterCount);
|
void setEnterCount(long enterCount);
|
||||||
int getPageIndex()const;
|
int getPageIndex()const;
|
||||||
void setPageIndex(int pageIndex);
|
void setPageIndex(int pageIndex);
|
||||||
std::string getStartTime()const;
|
|
||||||
void setStartTime(const std::string& startTime);
|
|
||||||
long getAgeStart()const;
|
long getAgeStart()const;
|
||||||
void setAgeStart(long ageStart);
|
void setAgeStart(long ageStart);
|
||||||
long getAgeEnd()const;
|
long getAgeEnd()const;
|
||||||
void setAgeEnd(long ageEnd);
|
void setAgeEnd(long ageEnd);
|
||||||
|
std::string getPkId()const;
|
||||||
|
void setPkId(const std::string& pkId);
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
std::string getStoreIds()const;
|
std::string getStoreIds()const;
|
||||||
void setStoreIds(const std::string& storeIds);
|
void setStoreIds(const std::string& storeIds);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string pkId_;
|
|
||||||
std::string gender_;
|
std::string gender_;
|
||||||
long ukId_;
|
long ukId_;
|
||||||
int pageSize_;
|
|
||||||
std::string locationIds_;
|
std::string locationIds_;
|
||||||
std::string endTime_;
|
std::string startTime_;
|
||||||
|
int pageSize_;
|
||||||
long enterCount_;
|
long enterCount_;
|
||||||
int pageIndex_;
|
int pageIndex_;
|
||||||
std::string startTime_;
|
|
||||||
long ageStart_;
|
long ageStart_;
|
||||||
long ageEnd_;
|
long ageEnd_;
|
||||||
|
std::string pkId_;
|
||||||
|
std::string endTime_;
|
||||||
std::string storeIds_;
|
std::string storeIds_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
|||||||
SearchPersonByImgRequest();
|
SearchPersonByImgRequest();
|
||||||
~SearchPersonByImgRequest();
|
~SearchPersonByImgRequest();
|
||||||
|
|
||||||
std::string getImgUrl()const;
|
|
||||||
void setImgUrl(const std::string& imgUrl);
|
|
||||||
long getStoreId()const;
|
long getStoreId()const;
|
||||||
void setStoreId(long storeId);
|
void setStoreId(long storeId);
|
||||||
|
std::string getImgUrl()const;
|
||||||
|
void setImgUrl(const std::string& imgUrl);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string imgUrl_;
|
|
||||||
long storeId_;
|
long storeId_;
|
||||||
|
std::string imgUrl_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,21 +31,21 @@ Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(const Credentials &cred
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cusanalytic_sc_online");
|
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) :
|
Cusanalytic_sc_onlineClient::Cusanalytic_sc_onlineClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cusanalytic_sc_online");
|
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) :
|
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)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cusanalytic_sc_online");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
Cusanalytic_sc_onlineClient::~Cusanalytic_sc_onlineClient()
|
Cusanalytic_sc_onlineClient::~Cusanalytic_sc_onlineClient()
|
||||||
|
|||||||
@@ -36,28 +36,6 @@ void DescribeActionDataRequest::setTsEnd(long tsEnd)
|
|||||||
setCoreParameter("TsEnd", std::to_string(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
|
std::string DescribeActionDataRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return storeId_;
|
||||||
@@ -80,3 +58,25 @@ void DescribeActionDataRequest::setPageLimit(int pageLimit)
|
|||||||
setCoreParameter("PageLimit", std::to_string(pageLimit));
|
setCoreParameter("PageLimit", std::to_string(pageLimit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ DescribeActionDataResult::~DescribeActionDataResult()
|
|||||||
|
|
||||||
void DescribeActionDataResult::parse(const std::string &payload)
|
void DescribeActionDataResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allActionsMsgItems = value["ActionsMsgItems"]["ActionsMsgItem"];
|
auto allActionsMsgItems = value["ActionsMsgItems"]["ActionsMsgItem"];
|
||||||
for (auto value : allActionsMsgItems)
|
for (auto value : allActionsMsgItems)
|
||||||
@@ -76,20 +72,20 @@ void DescribeActionDataResult::parse(const std::string &payload)
|
|||||||
actionsMsgItemsObject.actionInfosItem.rawId = std::stol(actionInfosItemNode["RawId"].asString());
|
actionsMsgItemsObject.actionInfosItem.rawId = std::stol(actionInfosItemNode["RawId"].asString());
|
||||||
if(!actionInfosItemNode["Mints"].isNull())
|
if(!actionInfosItemNode["Mints"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.mints = std::stol(actionInfosItemNode["Mints"].asString());
|
actionsMsgItemsObject.actionInfosItem.mints = std::stol(actionInfosItemNode["Mints"].asString());
|
||||||
auto pointNode = actionInfosItemNode["Point"];
|
auto mapImagePointNode = actionInfosItemNode["MapImagePoint"];
|
||||||
if(!pointNode["X"].isNull())
|
if(!mapImagePointNode["X"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.point.x = std::stof(pointNode["X"].asString());
|
actionsMsgItemsObject.actionInfosItem.mapImagePoint.x = std::stof(mapImagePointNode["X"].asString());
|
||||||
if(!pointNode["Y"].isNull())
|
if(!mapImagePointNode["Y"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.point.y = std::stof(pointNode["Y"].asString());
|
actionsMsgItemsObject.actionInfosItem.mapImagePoint.y = std::stof(mapImagePointNode["Y"].asString());
|
||||||
auto senseRectEntityItemNode = actionInfosItemNode["SenseRectEntityItem"];
|
auto faceImgRectNode = actionInfosItemNode["FaceImgRect"];
|
||||||
if(!senseRectEntityItemNode["Bottom"].isNull())
|
if(!faceImgRectNode["Bottom"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.bottom = std::stof(senseRectEntityItemNode["Bottom"].asString());
|
actionsMsgItemsObject.actionInfosItem.faceImgRect.bottom = std::stof(faceImgRectNode["Bottom"].asString());
|
||||||
if(!senseRectEntityItemNode["Left"].isNull())
|
if(!faceImgRectNode["Left"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.left = std::stof(senseRectEntityItemNode["Left"].asString());
|
actionsMsgItemsObject.actionInfosItem.faceImgRect.left = std::stof(faceImgRectNode["Left"].asString());
|
||||||
if(!senseRectEntityItemNode["Top"].isNull())
|
if(!faceImgRectNode["Top"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.top = std::stof(senseRectEntityItemNode["Top"].asString());
|
actionsMsgItemsObject.actionInfosItem.faceImgRect.top = std::stof(faceImgRectNode["Top"].asString());
|
||||||
if(!senseRectEntityItemNode["Right"].isNull())
|
if(!faceImgRectNode["Right"].isNull())
|
||||||
actionsMsgItemsObject.actionInfosItem.senseRectEntityItem.right = std::stof(senseRectEntityItemNode["Right"].asString());
|
actionsMsgItemsObject.actionInfosItem.faceImgRect.right = std::stof(faceImgRectNode["Right"].asString());
|
||||||
auto attributesMsgItemNode = value["AttributesMsgItem"];
|
auto attributesMsgItemNode = value["AttributesMsgItem"];
|
||||||
if(!attributesMsgItemNode["ImgUrl"].isNull())
|
if(!attributesMsgItemNode["ImgUrl"].isNull())
|
||||||
actionsMsgItemsObject.attributesMsgItem.imgUrl = attributesMsgItemNode["ImgUrl"].asString();
|
actionsMsgItemsObject.attributesMsgItem.imgUrl = attributesMsgItemNode["ImgUrl"].asString();
|
||||||
@@ -101,6 +97,8 @@ void DescribeActionDataResult::parse(const std::string &payload)
|
|||||||
actionsMsgItemsObject.attributesMsgItem.isClerk = std::stol(attributesMsgItemNode["IsClerk"].asString());
|
actionsMsgItemsObject.attributesMsgItem.isClerk = std::stol(attributesMsgItemNode["IsClerk"].asString());
|
||||||
if(!attributesMsgItemNode["AgeNum"].isNull())
|
if(!attributesMsgItemNode["AgeNum"].isNull())
|
||||||
actionsMsgItemsObject.attributesMsgItem.ageNum = std::stoi(attributesMsgItemNode["AgeNum"].asString());
|
actionsMsgItemsObject.attributesMsgItem.ageNum = std::stoi(attributesMsgItemNode["AgeNum"].asString());
|
||||||
|
if(!attributesMsgItemNode["ImgObjectKey"].isNull())
|
||||||
|
actionsMsgItemsObject.attributesMsgItem.imgObjectKey = attributesMsgItemNode["ImgObjectKey"].asString();
|
||||||
if(!attributesMsgItemNode["ImgType"].isNull())
|
if(!attributesMsgItemNode["ImgType"].isNull())
|
||||||
actionsMsgItemsObject.attributesMsgItem.imgType = attributesMsgItemNode["ImgType"].asString();
|
actionsMsgItemsObject.attributesMsgItem.imgType = attributesMsgItemNode["ImgType"].asString();
|
||||||
actionsMsgItems_.push_back(actionsMsgItemsObject);
|
actionsMsgItems_.push_back(actionsMsgItemsObject);
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ DescribeLocationsResult::~DescribeLocationsResult()
|
|||||||
|
|
||||||
void DescribeLocationsResult::parse(const std::string &payload)
|
void DescribeLocationsResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allLocationMsgItems = value["LocationMsgItems"]["LocationMsgItem"];
|
auto allLocationMsgItems = value["LocationMsgItems"]["LocationMsgItem"];
|
||||||
for (auto value : allLocationMsgItems)
|
for (auto value : allLocationMsgItems)
|
||||||
|
|||||||
@@ -25,14 +25,14 @@ GetActionCursorRequest::GetActionCursorRequest() :
|
|||||||
GetActionCursorRequest::~GetActionCursorRequest()
|
GetActionCursorRequest::~GetActionCursorRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string GetActionCursorRequest::getStoreId()const
|
std::string GetActionCursorRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return storeId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetActionCursorRequest::setStoreId(const std::string& storeId)
|
void GetActionCursorRequest::setStoreId(const std::string& storeId)
|
||||||
{
|
{
|
||||||
storeId_ = storeId;
|
storeId_ = storeId;
|
||||||
setCoreParameter("StoreId", storeId);
|
setCoreParameter("StoreId", storeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetActionCursorResult::~GetActionCursorResult()
|
|||||||
|
|
||||||
void GetActionCursorResult::parse(const std::string &payload)
|
void GetActionCursorResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["ErrorMsg"].isNull())
|
if(!value["ErrorMsg"].isNull())
|
||||||
errorMsg_ = value["ErrorMsg"].asString();
|
errorMsg_ = value["ErrorMsg"].asString();
|
||||||
|
|||||||
@@ -25,26 +25,26 @@ GetAnalyzeCommodityDataRequest::GetAnalyzeCommodityDataRequest() :
|
|||||||
GetAnalyzeCommodityDataRequest::~GetAnalyzeCommodityDataRequest()
|
GetAnalyzeCommodityDataRequest::~GetAnalyzeCommodityDataRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long GetAnalyzeCommodityDataRequest::getStartUserCount()const
|
long GetAnalyzeCommodityDataRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return startUserCount_;
|
return storeId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetAnalyzeCommodityDataRequest::setStartUserCount(long startUserCount)
|
void GetAnalyzeCommodityDataRequest::setStoreId(long storeId)
|
||||||
{
|
{
|
||||||
startUserCount_ = startUserCount;
|
storeId_ = storeId;
|
||||||
setCoreParameter("StartUserCount", std::to_string(startUserCount));
|
setCoreParameter("StoreId", std::to_string(storeId));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetAnalyzeCommodityDataRequest::getEndDate()const
|
std::string GetAnalyzeCommodityDataRequest::getStartDate()const
|
||||||
{
|
{
|
||||||
return endDate_;
|
return startDate_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetAnalyzeCommodityDataRequest::setEndDate(const std::string& endDate)
|
void GetAnalyzeCommodityDataRequest::setStartDate(const std::string& startDate)
|
||||||
{
|
{
|
||||||
endDate_ = endDate;
|
startDate_ = startDate;
|
||||||
setCoreParameter("EndDate", endDate);
|
setCoreParameter("StartDate", startDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
long GetAnalyzeCommodityDataRequest::getEndUserCount()const
|
long GetAnalyzeCommodityDataRequest::getEndUserCount()const
|
||||||
@@ -69,17 +69,6 @@ void GetAnalyzeCommodityDataRequest::setPageSize(int pageSize)
|
|||||||
setCoreParameter("PageSize", std::to_string(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
|
int GetAnalyzeCommodityDataRequest::getPageIndex()const
|
||||||
{
|
{
|
||||||
return pageIndex_;
|
return pageIndex_;
|
||||||
@@ -91,28 +80,6 @@ void GetAnalyzeCommodityDataRequest::setPageIndex(int pageIndex)
|
|||||||
setCoreParameter("PageIndex", std::to_string(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
|
long GetAnalyzeCommodityDataRequest::getStayPeriod()const
|
||||||
{
|
{
|
||||||
return stayPeriod_;
|
return stayPeriod_;
|
||||||
@@ -124,3 +91,36 @@ void GetAnalyzeCommodityDataRequest::setStayPeriod(long stayPeriod)
|
|||||||
setCoreParameter("StayPeriod", std::to_string(stayPeriod));
|
setCoreParameter("StayPeriod", std::to_string(stayPeriod));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long GetAnalyzeCommodityDataRequest::getStartUserCount()const
|
||||||
|
{
|
||||||
|
return startUserCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAnalyzeCommodityDataRequest::setStartUserCount(long startUserCount)
|
||||||
|
{
|
||||||
|
startUserCount_ = startUserCount;
|
||||||
|
setCoreParameter("StartUserCount", std::to_string(startUserCount));
|
||||||
|
}
|
||||||
|
|
||||||
|
long GetAnalyzeCommodityDataRequest::getMinSupportCount()const
|
||||||
|
{
|
||||||
|
return minSupportCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAnalyzeCommodityDataRequest::setMinSupportCount(long minSupportCount)
|
||||||
|
{
|
||||||
|
minSupportCount_ = minSupportCount;
|
||||||
|
setCoreParameter("MinSupportCount", std::to_string(minSupportCount));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetAnalyzeCommodityDataRequest::getEndDate()const
|
||||||
|
{
|
||||||
|
return endDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetAnalyzeCommodityDataRequest::setEndDate(const std::string& endDate)
|
||||||
|
{
|
||||||
|
endDate_ = endDate;
|
||||||
|
setCoreParameter("EndDate", endDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetAnalyzeCommodityDataResult::~GetAnalyzeCommodityDataResult()
|
|||||||
|
|
||||||
void GetAnalyzeCommodityDataResult::parse(const std::string &payload)
|
void GetAnalyzeCommodityDataResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allAnalyzeCommodityItems = value["AnalyzeCommodityItems"]["AnalyzeCommodityItem"];
|
auto allAnalyzeCommodityItems = value["AnalyzeCommodityItems"]["AnalyzeCommodityItem"];
|
||||||
for (auto value : allAnalyzeCommodityItems)
|
for (auto value : allAnalyzeCommodityItems)
|
||||||
|
|||||||
@@ -47,39 +47,6 @@ void GetAnalyzePlaceDataRequest::setParentAmount(long parentAmount)
|
|||||||
setCoreParameter("ParentAmount", std::to_string(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
|
std::string GetAnalyzePlaceDataRequest::getStartDate()const
|
||||||
{
|
{
|
||||||
return startDate_;
|
return startDate_;
|
||||||
@@ -113,3 +80,36 @@ void GetAnalyzePlaceDataRequest::setStoreId(long storeId)
|
|||||||
setCoreParameter("StoreId", std::to_string(storeId));
|
setCoreParameter("StoreId", std::to_string(storeId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetAnalyzePlaceDataResult::~GetAnalyzePlaceDataResult()
|
|||||||
|
|
||||||
void GetAnalyzePlaceDataResult::parse(const std::string &payload)
|
void GetAnalyzePlaceDataResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allAnalyzePlaceItems = value["AnalyzePlaceItems"]["AnalyzePlaceItem"];
|
auto allAnalyzePlaceItems = value["AnalyzePlaceItems"]["AnalyzePlaceItem"];
|
||||||
for (auto value : allAnalyzePlaceItems)
|
for (auto value : allAnalyzePlaceItems)
|
||||||
|
|||||||
@@ -25,17 +25,6 @@ GetEMapRequest::GetEMapRequest() :
|
|||||||
GetEMapRequest::~GetEMapRequest()
|
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
|
long GetEMapRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return storeId_;
|
||||||
@@ -47,3 +36,14 @@ void GetEMapRequest::setStoreId(long storeId)
|
|||||||
setCoreParameter("StoreId", std::to_string(storeId));
|
setCoreParameter("StoreId", std::to_string(storeId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long GetEMapRequest::getLocationId()const
|
||||||
|
{
|
||||||
|
return locationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetEMapRequest::setLocationId(long locationId)
|
||||||
|
{
|
||||||
|
locationId_ = locationId;
|
||||||
|
setCoreParameter("LocationId", std::to_string(locationId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetEMapResult::~GetEMapResult()
|
|||||||
|
|
||||||
void GetEMapResult::parse(const std::string &payload)
|
void GetEMapResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["StoreId"].isNull())
|
if(!value["StoreId"].isNull())
|
||||||
storeId_ = std::stol(value["StoreId"].asString());
|
storeId_ = std::stol(value["StoreId"].asString());
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetHeatMapDataResult::~GetHeatMapDataResult()
|
|||||||
|
|
||||||
void GetHeatMapDataResult::parse(const std::string &payload)
|
void GetHeatMapDataResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allHeatMapItems = value["HeatMapItems"]["HeatMapItem"];
|
auto allHeatMapItems = value["HeatMapItems"]["HeatMapItem"];
|
||||||
for (auto value : allHeatMapItems)
|
for (auto value : allHeatMapItems)
|
||||||
|
|||||||
@@ -25,36 +25,36 @@ GetImageUrlRequest::GetImageUrlRequest() :
|
|||||||
GetImageUrlRequest::~GetImageUrlRequest()
|
GetImageUrlRequest::~GetImageUrlRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string GetImageUrlRequest::getObjectKeys()const
|
std::string GetImageUrlRequest::getOriginUrls()const
|
||||||
{
|
{
|
||||||
return objectKeys_;
|
return originUrls_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetImageUrlRequest::setObjectKeys(const std::string& objectKeys)
|
void GetImageUrlRequest::setOriginUrls(const std::string& originUrls)
|
||||||
{
|
{
|
||||||
objectKeys_ = objectKeys;
|
originUrls_ = originUrls;
|
||||||
setCoreParameter("ObjectKeys", objectKeys);
|
setCoreParameter("OriginUrls", originUrls);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetImageUrlRequest::getOriginUrls()const
|
std::string GetImageUrlRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return originUrls_;
|
return storeId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetImageUrlRequest::setOriginUrls(const std::string& originUrls)
|
void GetImageUrlRequest::setStoreId(const std::string& storeId)
|
||||||
{
|
{
|
||||||
originUrls_ = originUrls;
|
storeId_ = storeId;
|
||||||
setCoreParameter("OriginUrls", originUrls);
|
setCoreParameter("StoreId", storeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetImageUrlRequest::getStoreId()const
|
std::string GetImageUrlRequest::getObjectKeys()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return objectKeys_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetImageUrlRequest::setStoreId(const std::string& storeId)
|
void GetImageUrlRequest::setObjectKeys(const std::string& objectKeys)
|
||||||
{
|
{
|
||||||
storeId_ = storeId;
|
objectKeys_ = objectKeys;
|
||||||
setCoreParameter("StoreId", storeId);
|
setCoreParameter("ObjectKeys", objectKeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetImageUrlResult::~GetImageUrlResult()
|
|||||||
|
|
||||||
void GetImageUrlResult::parse(const std::string &payload)
|
void GetImageUrlResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allUrls = value["Urls"]["ImageUrl"];
|
auto allUrls = value["Urls"]["ImageUrl"];
|
||||||
for (auto value : allUrls)
|
for (auto value : allUrls)
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetLocationsResult::~GetLocationsResult()
|
|||||||
|
|
||||||
void GetLocationsResult::parse(const std::string &payload)
|
void GetLocationsResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allLocationItems = value["LocationItems"]["LocationItem"];
|
auto allLocationItems = value["LocationItems"]["LocationItem"];
|
||||||
for (auto value : allLocationItems)
|
for (auto value : allLocationItems)
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetOverviewDataResult::~GetOverviewDataResult()
|
|||||||
|
|
||||||
void GetOverviewDataResult::parse(const std::string &payload)
|
void GetOverviewDataResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["StayDeepAvg"].isNull())
|
if(!value["StayDeepAvg"].isNull())
|
||||||
stayDeepAvg_ = std::stof(value["StayDeepAvg"].asString());
|
stayDeepAvg_ = std::stof(value["StayDeepAvg"].asString());
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetPortrayalResult::~GetPortrayalResult()
|
|||||||
|
|
||||||
void GetPortrayalResult::parse(const std::string &payload)
|
void GetPortrayalResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["FemalePercent"].isNull())
|
if(!value["FemalePercent"].isNull())
|
||||||
femalePercent_ = std::stof(value["FemalePercent"].asString());
|
femalePercent_ = std::stof(value["FemalePercent"].asString());
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ GetSupportStoreResult::~GetSupportStoreResult()
|
|||||||
|
|
||||||
void GetSupportStoreResult::parse(const std::string &payload)
|
void GetSupportStoreResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allStorePopDTOs = value["StorePopDTOs"]["StorePopDTO"];
|
auto allStorePopDTOs = value["StorePopDTOs"]["StorePopDTO"];
|
||||||
for (auto value : allStorePopDTOs)
|
for (auto value : allStorePopDTOs)
|
||||||
|
|||||||
@@ -25,17 +25,6 @@ ListVisitorsRequest::ListVisitorsRequest() :
|
|||||||
ListVisitorsRequest::~ListVisitorsRequest()
|
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
|
std::string ListVisitorsRequest::getGender()const
|
||||||
{
|
{
|
||||||
return gender_;
|
return gender_;
|
||||||
@@ -58,17 +47,6 @@ void ListVisitorsRequest::setUkId(long ukId)
|
|||||||
setCoreParameter("UkId", std::to_string(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
|
std::string ListVisitorsRequest::getLocationIds()const
|
||||||
{
|
{
|
||||||
return locationIds_;
|
return locationIds_;
|
||||||
@@ -80,15 +58,26 @@ void ListVisitorsRequest::setLocationIds(const std::string& locationIds)
|
|||||||
setCoreParameter("LocationIds", locationIds);
|
setCoreParameter("LocationIds", locationIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListVisitorsRequest::getEndTime()const
|
std::string ListVisitorsRequest::getStartTime()const
|
||||||
{
|
{
|
||||||
return endTime_;
|
return startTime_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListVisitorsRequest::setEndTime(const std::string& endTime)
|
void ListVisitorsRequest::setStartTime(const std::string& startTime)
|
||||||
{
|
{
|
||||||
endTime_ = endTime;
|
startTime_ = startTime;
|
||||||
setCoreParameter("EndTime", endTime);
|
setCoreParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListVisitorsRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListVisitorsRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
long ListVisitorsRequest::getEnterCount()const
|
long ListVisitorsRequest::getEnterCount()const
|
||||||
@@ -113,17 +102,6 @@ void ListVisitorsRequest::setPageIndex(int pageIndex)
|
|||||||
setCoreParameter("PageIndex", std::to_string(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
|
long ListVisitorsRequest::getAgeStart()const
|
||||||
{
|
{
|
||||||
return ageStart_;
|
return ageStart_;
|
||||||
@@ -146,6 +124,28 @@ void ListVisitorsRequest::setAgeEnd(long ageEnd)
|
|||||||
setCoreParameter("AgeEnd", std::to_string(ageEnd));
|
setCoreParameter("AgeEnd", std::to_string(ageEnd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ListVisitorsRequest::getPkId()const
|
||||||
|
{
|
||||||
|
return pkId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListVisitorsRequest::setPkId(const std::string& pkId)
|
||||||
|
{
|
||||||
|
pkId_ = pkId;
|
||||||
|
setCoreParameter("PkId", pkId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListVisitorsRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListVisitorsRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setCoreParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
std::string ListVisitorsRequest::getStoreIds()const
|
std::string ListVisitorsRequest::getStoreIds()const
|
||||||
{
|
{
|
||||||
return storeIds_;
|
return storeIds_;
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ ListVisitorsResult::~ListVisitorsResult()
|
|||||||
|
|
||||||
void ListVisitorsResult::parse(const std::string &payload)
|
void ListVisitorsResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allVisitorItems = value["VisitorItems"]["VisitorItem"];
|
auto allVisitorItems = value["VisitorItems"]["VisitorItem"];
|
||||||
for (auto value : allVisitorItems)
|
for (auto value : allVisitorItems)
|
||||||
|
|||||||
@@ -25,17 +25,6 @@ SearchPersonByImgRequest::SearchPersonByImgRequest() :
|
|||||||
SearchPersonByImgRequest::~SearchPersonByImgRequest()
|
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
|
long SearchPersonByImgRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return storeId_;
|
||||||
@@ -47,3 +36,14 @@ void SearchPersonByImgRequest::setStoreId(long storeId)
|
|||||||
setCoreParameter("StoreId", std::to_string(storeId));
|
setCoreParameter("StoreId", std::to_string(storeId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SearchPersonByImgRequest::getImgUrl()const
|
||||||
|
{
|
||||||
|
return imgUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SearchPersonByImgRequest::setImgUrl(const std::string& imgUrl)
|
||||||
|
{
|
||||||
|
imgUrl_ = imgUrl;
|
||||||
|
setCoreParameter("ImgUrl", imgUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,13 +35,9 @@ SearchPersonByImgResult::~SearchPersonByImgResult()
|
|||||||
|
|
||||||
void SearchPersonByImgResult::parse(const std::string &payload)
|
void SearchPersonByImgResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::CharReaderBuilder builder;
|
Json::Reader reader;
|
||||||
Json::CharReader *reader = builder.newCharReader();
|
|
||||||
Json::Value *val;
|
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
JSONCPP_STRING *errs;
|
reader.parse(payload, value);
|
||||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
|
||||||
value = *val;
|
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto allPersonSearchResultItems = value["PersonSearchResultItems"]["PersonSearchResultItem"];
|
auto allPersonSearchResultItems = value["PersonSearchResultItems"]["PersonSearchResultItem"];
|
||||||
for (auto value : allPersonSearchResultItems)
|
for (auto value : allPersonSearchResultItems)
|
||||||
|
|||||||
Reference in New Issue
Block a user