Generated 2019-05-24 for cusanalytic_sc_online.
This commit is contained in:
@@ -51,7 +51,7 @@ set(cusanalytic_sc_online_public_header_model
|
||||
include/alibabacloud/cusanalytic_sc_online/model/SearchPersonByImgResult.h )
|
||||
|
||||
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/DescribeLocationsResult.cc
|
||||
src/model/GetSupportStoreRequest.cc
|
||||
|
||||
@@ -37,21 +37,21 @@ namespace AlibabaCloud
|
||||
|
||||
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);
|
||||
int getPageNo()const;
|
||||
void setPageNo(int pageNo);
|
||||
long getTsStart()const;
|
||||
void setTsStart(long tsStart);
|
||||
|
||||
private:
|
||||
long tsEnd_;
|
||||
int pageNo_;
|
||||
long tsStart_;
|
||||
std::string storeId_;
|
||||
int pageLimit_;
|
||||
int pageNo_;
|
||||
long tsStart_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,28 +36,29 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct ActionInfosItem
|
||||
{
|
||||
struct Point
|
||||
struct MapImagePoint
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
};
|
||||
struct SenseRectEntityItem
|
||||
struct FaceImgRect
|
||||
{
|
||||
float left;
|
||||
float top;
|
||||
float right;
|
||||
float bottom;
|
||||
};
|
||||
SenseRectEntityItem senseRectEntityItem;
|
||||
long rawId;
|
||||
long stayPeriod;
|
||||
MapImagePoint mapImagePoint;
|
||||
FaceImgRect faceImgRect;
|
||||
long maxts;
|
||||
Point point;
|
||||
long stayValid;
|
||||
long mints;
|
||||
};
|
||||
struct AttributesMsgItem
|
||||
{
|
||||
std::string imgObjectKey;
|
||||
long score;
|
||||
int ageNum;
|
||||
std::string imgType;
|
||||
|
||||
@@ -35,11 +35,11 @@ namespace AlibabaCloud
|
||||
GetActionCursorRequest();
|
||||
~GetActionCursorRequest();
|
||||
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
|
||||
private:
|
||||
std::string storeId_;
|
||||
std::string storeId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
||||
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 getEndUserCount()const;
|
||||
void setEndUserCount(long endUserCount);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getPageIndex()const;
|
||||
void setPageIndex(int pageIndex);
|
||||
long getStayPeriod()const;
|
||||
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:
|
||||
long startUserCount_;
|
||||
std::string endDate_;
|
||||
long endUserCount_;
|
||||
int pageSize_;
|
||||
long minSupportCount_;
|
||||
int pageIndex_;
|
||||
long storeId_;
|
||||
std::string startDate_;
|
||||
long endUserCount_;
|
||||
int pageSize_;
|
||||
int pageIndex_;
|
||||
long stayPeriod_;
|
||||
long startUserCount_;
|
||||
long minSupportCount_;
|
||||
std::string endDate_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,28 +39,28 @@ namespace AlibabaCloud
|
||||
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);
|
||||
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:
|
||||
long endUVCount_;
|
||||
long parentAmount_;
|
||||
std::string endDate_;
|
||||
long locationId_;
|
||||
std::string parentLocationIds_;
|
||||
std::string startDate_;
|
||||
long startUVCount_;
|
||||
long storeId_;
|
||||
std::string endDate_;
|
||||
long locationId_;
|
||||
std::string parentLocationIds_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
||||
GetEMapRequest();
|
||||
~GetEMapRequest();
|
||||
|
||||
long getLocationId()const;
|
||||
void setLocationId(long locationId);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
long getLocationId()const;
|
||||
void setLocationId(long locationId);
|
||||
|
||||
private:
|
||||
long locationId_;
|
||||
long storeId_;
|
||||
long locationId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
||||
GetImageUrlRequest();
|
||||
~GetImageUrlRequest();
|
||||
|
||||
std::string getObjectKeys()const;
|
||||
void setObjectKeys(const std::string& objectKeys);
|
||||
std::string getOriginUrls()const;
|
||||
void setOriginUrls(const std::string& originUrls);
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
std::string getOriginUrls()const;
|
||||
void setOriginUrls(const std::string& originUrls);
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
std::string getObjectKeys()const;
|
||||
void setObjectKeys(const std::string& objectKeys);
|
||||
|
||||
private:
|
||||
std::string objectKeys_;
|
||||
std::string originUrls_;
|
||||
std::string storeId_;
|
||||
std::string originUrls_;
|
||||
std::string storeId_;
|
||||
std::string objectKeys_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,43 +35,43 @@ namespace AlibabaCloud
|
||||
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);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
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 getPkId()const;
|
||||
void setPkId(const std::string& pkId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
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_;
|
||||
std::string startTime_;
|
||||
int pageSize_;
|
||||
long enterCount_;
|
||||
int pageIndex_;
|
||||
std::string startTime_;
|
||||
long ageStart_;
|
||||
long ageEnd_;
|
||||
std::string pkId_;
|
||||
std::string endTime_;
|
||||
std::string storeIds_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
||||
SearchPersonByImgRequest();
|
||||
~SearchPersonByImgRequest();
|
||||
|
||||
std::string getImgUrl()const;
|
||||
void setImgUrl(const std::string& imgUrl);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
std::string getImgUrl()const;
|
||||
void setImgUrl(const std::string& imgUrl);
|
||||
|
||||
private:
|
||||
std::string imgUrl_;
|
||||
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)
|
||||
{
|
||||
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) :
|
||||
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_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) :
|
||||
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_online");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
Cusanalytic_sc_onlineClient::~Cusanalytic_sc_onlineClient()
|
||||
|
||||
@@ -36,28 +36,6 @@ void DescribeActionDataRequest::setTsEnd(long 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_;
|
||||
@@ -80,3 +58,25 @@ void DescribeActionDataRequest::setPageLimit(int 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)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActionsMsgItems = value["ActionsMsgItems"]["ActionsMsgItem"];
|
||||
for (auto value : allActionsMsgItems)
|
||||
@@ -76,20 +72,20 @@ void DescribeActionDataResult::parse(const std::string &payload)
|
||||
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 mapImagePointNode = actionInfosItemNode["MapImagePoint"];
|
||||
if(!mapImagePointNode["X"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.mapImagePoint.x = std::stof(mapImagePointNode["X"].asString());
|
||||
if(!mapImagePointNode["Y"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.mapImagePoint.y = std::stof(mapImagePointNode["Y"].asString());
|
||||
auto faceImgRectNode = actionInfosItemNode["FaceImgRect"];
|
||||
if(!faceImgRectNode["Bottom"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.faceImgRect.bottom = std::stof(faceImgRectNode["Bottom"].asString());
|
||||
if(!faceImgRectNode["Left"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.faceImgRect.left = std::stof(faceImgRectNode["Left"].asString());
|
||||
if(!faceImgRectNode["Top"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.faceImgRect.top = std::stof(faceImgRectNode["Top"].asString());
|
||||
if(!faceImgRectNode["Right"].isNull())
|
||||
actionsMsgItemsObject.actionInfosItem.faceImgRect.right = std::stof(faceImgRectNode["Right"].asString());
|
||||
auto attributesMsgItemNode = value["AttributesMsgItem"];
|
||||
if(!attributesMsgItemNode["ImgUrl"].isNull())
|
||||
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());
|
||||
if(!attributesMsgItemNode["AgeNum"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.ageNum = std::stoi(attributesMsgItemNode["AgeNum"].asString());
|
||||
if(!attributesMsgItemNode["ImgObjectKey"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.imgObjectKey = attributesMsgItemNode["ImgObjectKey"].asString();
|
||||
if(!attributesMsgItemNode["ImgType"].isNull())
|
||||
actionsMsgItemsObject.attributesMsgItem.imgType = attributesMsgItemNode["ImgType"].asString();
|
||||
actionsMsgItems_.push_back(actionsMsgItemsObject);
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeLocationsResult::~DescribeLocationsResult()
|
||||
|
||||
void DescribeLocationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLocationMsgItems = value["LocationMsgItems"]["LocationMsgItem"];
|
||||
for (auto value : allLocationMsgItems)
|
||||
|
||||
@@ -25,14 +25,14 @@ GetActionCursorRequest::GetActionCursorRequest() :
|
||||
GetActionCursorRequest::~GetActionCursorRequest()
|
||||
{}
|
||||
|
||||
std::string GetActionCursorRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetActionCursorRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
std::string GetActionCursorRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetActionCursorRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ GetActionCursorResult::~GetActionCursorResult()
|
||||
|
||||
void GetActionCursorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
@@ -25,26 +25,26 @@ 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;
|
||||
setCoreParameter("StartUserCount", std::to_string(startUserCount));
|
||||
storeId_ = storeId;
|
||||
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;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long GetAnalyzeCommodityDataRequest::getEndUserCount()const
|
||||
@@ -69,17 +69,6 @@ void GetAnalyzeCommodityDataRequest::setPageSize(int 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_;
|
||||
@@ -91,28 +80,6 @@ void GetAnalyzeCommodityDataRequest::setPageIndex(int 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_;
|
||||
@@ -124,3 +91,36 @@ void GetAnalyzeCommodityDataRequest::setStayPeriod(long 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)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAnalyzeCommodityItems = value["AnalyzeCommodityItems"]["AnalyzeCommodityItem"];
|
||||
for (auto value : allAnalyzeCommodityItems)
|
||||
|
||||
@@ -47,39 +47,6 @@ void GetAnalyzePlaceDataRequest::setParentAmount(long 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_;
|
||||
@@ -113,3 +80,36 @@ void GetAnalyzePlaceDataRequest::setStoreId(long 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)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAnalyzePlaceItems = value["AnalyzePlaceItems"]["AnalyzePlaceItem"];
|
||||
for (auto value : allAnalyzePlaceItems)
|
||||
|
||||
@@ -25,17 +25,6 @@ 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
|
||||
{
|
||||
return storeId_;
|
||||
@@ -47,3 +36,14 @@ void GetEMapRequest::setStoreId(long 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)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StoreId"].isNull())
|
||||
storeId_ = std::stol(value["StoreId"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ GetHeatMapDataResult::~GetHeatMapDataResult()
|
||||
|
||||
void GetHeatMapDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHeatMapItems = value["HeatMapItems"]["HeatMapItem"];
|
||||
for (auto value : allHeatMapItems)
|
||||
|
||||
@@ -25,36 +25,36 @@ GetImageUrlRequest::GetImageUrlRequest() :
|
||||
GetImageUrlRequest::~GetImageUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageUrlRequest::getObjectKeys()const
|
||||
{
|
||||
return objectKeys_;
|
||||
}
|
||||
|
||||
void GetImageUrlRequest::setObjectKeys(const std::string& objectKeys)
|
||||
{
|
||||
objectKeys_ = objectKeys;
|
||||
setCoreParameter("ObjectKeys", objectKeys);
|
||||
}
|
||||
|
||||
std::string GetImageUrlRequest::getOriginUrls()const
|
||||
{
|
||||
return originUrls_;
|
||||
}
|
||||
|
||||
void GetImageUrlRequest::setOriginUrls(const std::string& originUrls)
|
||||
{
|
||||
originUrls_ = originUrls;
|
||||
setCoreParameter("OriginUrls", originUrls);
|
||||
}
|
||||
|
||||
std::string GetImageUrlRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetImageUrlRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
std::string GetImageUrlRequest::getOriginUrls()const
|
||||
{
|
||||
return originUrls_;
|
||||
}
|
||||
|
||||
void GetImageUrlRequest::setOriginUrls(const std::string& originUrls)
|
||||
{
|
||||
originUrls_ = originUrls;
|
||||
setCoreParameter("OriginUrls", originUrls);
|
||||
}
|
||||
|
||||
std::string GetImageUrlRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void GetImageUrlRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setCoreParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
std::string GetImageUrlRequest::getObjectKeys()const
|
||||
{
|
||||
return objectKeys_;
|
||||
}
|
||||
|
||||
void GetImageUrlRequest::setObjectKeys(const std::string& objectKeys)
|
||||
{
|
||||
objectKeys_ = objectKeys;
|
||||
setCoreParameter("ObjectKeys", objectKeys);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ GetImageUrlResult::~GetImageUrlResult()
|
||||
|
||||
void GetImageUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUrls = value["Urls"]["ImageUrl"];
|
||||
for (auto value : allUrls)
|
||||
|
||||
@@ -35,13 +35,9 @@ GetLocationsResult::~GetLocationsResult()
|
||||
|
||||
void GetLocationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLocationItems = value["LocationItems"]["LocationItem"];
|
||||
for (auto value : allLocationItems)
|
||||
|
||||
@@ -35,13 +35,9 @@ GetOverviewDataResult::~GetOverviewDataResult()
|
||||
|
||||
void GetOverviewDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StayDeepAvg"].isNull())
|
||||
stayDeepAvg_ = std::stof(value["StayDeepAvg"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ GetPortrayalResult::~GetPortrayalResult()
|
||||
|
||||
void GetPortrayalResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["FemalePercent"].isNull())
|
||||
femalePercent_ = std::stof(value["FemalePercent"].asString());
|
||||
|
||||
@@ -35,13 +35,9 @@ GetSupportStoreResult::~GetSupportStoreResult()
|
||||
|
||||
void GetSupportStoreResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStorePopDTOs = value["StorePopDTOs"]["StorePopDTO"];
|
||||
for (auto value : allStorePopDTOs)
|
||||
|
||||
@@ -25,17 +25,6 @@ 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
|
||||
{
|
||||
return gender_;
|
||||
@@ -58,17 +47,6 @@ void ListVisitorsRequest::setUkId(long 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_;
|
||||
@@ -80,15 +58,26 @@ void ListVisitorsRequest::setLocationIds(const std::string& 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;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
startTime_ = startTime;
|
||||
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
|
||||
@@ -113,17 +102,6 @@ void ListVisitorsRequest::setPageIndex(int 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_;
|
||||
@@ -146,6 +124,28 @@ void ListVisitorsRequest::setAgeEnd(long 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
|
||||
{
|
||||
return storeIds_;
|
||||
|
||||
@@ -35,13 +35,9 @@ ListVisitorsResult::~ListVisitorsResult()
|
||||
|
||||
void ListVisitorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVisitorItems = value["VisitorItems"]["VisitorItem"];
|
||||
for (auto value : allVisitorItems)
|
||||
|
||||
@@ -25,17 +25,6 @@ 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
|
||||
{
|
||||
return storeId_;
|
||||
@@ -47,3 +36,14 @@ void SearchPersonByImgRequest::setStoreId(long 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)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPersonSearchResultItems = value["PersonSearchResultItems"]["PersonSearchResultItem"];
|
||||
for (auto value : allPersonSearchResultItems)
|
||||
|
||||
Reference in New Issue
Block a user