regenerate code

This commit is contained in:
wb-hx510875
2020-03-26 17:27:13 +08:00
committed by Axios
parent cba94f2119
commit f0c2600a26
6249 changed files with 188711 additions and 43443 deletions

View File

@@ -267,6 +267,114 @@ Cusanalytic_sc_onlineClient::GetAnalyzePlaceDataOutcomeCallable Cusanalytic_sc_o
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetBaseAgeDataOutcome Cusanalytic_sc_onlineClient::getBaseAgeData(const GetBaseAgeDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetBaseAgeDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetBaseAgeDataOutcome(GetBaseAgeDataResult(outcome.result()));
else
return GetBaseAgeDataOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::getBaseAgeDataAsync(const GetBaseAgeDataRequest& request, const GetBaseAgeDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getBaseAgeData(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::GetBaseAgeDataOutcomeCallable Cusanalytic_sc_onlineClient::getBaseAgeDataCallable(const GetBaseAgeDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetBaseAgeDataOutcome()>>(
[this, request]()
{
return this->getBaseAgeData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetCameraStatisticOutcome Cusanalytic_sc_onlineClient::getCameraStatistic(const GetCameraStatisticRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetCameraStatisticOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetCameraStatisticOutcome(GetCameraStatisticResult(outcome.result()));
else
return GetCameraStatisticOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::getCameraStatisticAsync(const GetCameraStatisticRequest& request, const GetCameraStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getCameraStatistic(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::GetCameraStatisticOutcomeCallable Cusanalytic_sc_onlineClient::getCameraStatisticCallable(const GetCameraStatisticRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetCameraStatisticOutcome()>>(
[this, request]()
{
return this->getCameraStatistic(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetDailyStatisticsDataOutcome Cusanalytic_sc_onlineClient::getDailyStatisticsData(const GetDailyStatisticsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDailyStatisticsDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDailyStatisticsDataOutcome(GetDailyStatisticsDataResult(outcome.result()));
else
return GetDailyStatisticsDataOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::getDailyStatisticsDataAsync(const GetDailyStatisticsDataRequest& request, const GetDailyStatisticsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDailyStatisticsData(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::GetDailyStatisticsDataOutcomeCallable Cusanalytic_sc_onlineClient::getDailyStatisticsDataCallable(const GetDailyStatisticsDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDailyStatisticsDataOutcome()>>(
[this, request]()
{
return this->getDailyStatisticsData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetEMapOutcome Cusanalytic_sc_onlineClient::getEMap(const GetEMapRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,6 +447,42 @@ Cusanalytic_sc_onlineClient::GetHeatMapDataOutcomeCallable Cusanalytic_sc_online
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetHourlyStatisticsDataOutcome Cusanalytic_sc_onlineClient::getHourlyStatisticsData(const GetHourlyStatisticsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetHourlyStatisticsDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetHourlyStatisticsDataOutcome(GetHourlyStatisticsDataResult(outcome.result()));
else
return GetHourlyStatisticsDataOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::getHourlyStatisticsDataAsync(const GetHourlyStatisticsDataRequest& request, const GetHourlyStatisticsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getHourlyStatisticsData(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::GetHourlyStatisticsDataOutcomeCallable Cusanalytic_sc_onlineClient::getHourlyStatisticsDataCallable(const GetHourlyStatisticsDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetHourlyStatisticsDataOutcome()>>(
[this, request]()
{
return this->getHourlyStatisticsData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetImageUrlOutcome Cusanalytic_sc_onlineClient::getImageUrl(const GetImageUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +555,42 @@ Cusanalytic_sc_onlineClient::GetLocationsOutcomeCallable Cusanalytic_sc_onlineCl
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetMin5StatisticsDataOutcome Cusanalytic_sc_onlineClient::getMin5StatisticsData(const GetMin5StatisticsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMin5StatisticsDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMin5StatisticsDataOutcome(GetMin5StatisticsDataResult(outcome.result()));
else
return GetMin5StatisticsDataOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::getMin5StatisticsDataAsync(const GetMin5StatisticsDataRequest& request, const GetMin5StatisticsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMin5StatisticsData(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::GetMin5StatisticsDataOutcomeCallable Cusanalytic_sc_onlineClient::getMin5StatisticsDataCallable(const GetMin5StatisticsDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMin5StatisticsDataOutcome()>>(
[this, request]()
{
return this->getMin5StatisticsData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetOverviewDataOutcome Cusanalytic_sc_onlineClient::getOverviewData(const GetOverviewDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +735,42 @@ Cusanalytic_sc_onlineClient::GetRoiRankingOutcomeCallable Cusanalytic_sc_onlineC
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetStayDistributionOutcome Cusanalytic_sc_onlineClient::getStayDistribution(const GetStayDistributionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetStayDistributionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetStayDistributionOutcome(GetStayDistributionResult(outcome.result()));
else
return GetStayDistributionOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::getStayDistributionAsync(const GetStayDistributionRequest& request, const GetStayDistributionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getStayDistribution(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::GetStayDistributionOutcomeCallable Cusanalytic_sc_onlineClient::getStayDistributionCallable(const GetStayDistributionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetStayDistributionOutcome()>>(
[this, request]()
{
return this->getStayDistribution(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::GetSupportStoreOutcome Cusanalytic_sc_onlineClient::getSupportStore(const GetSupportStoreRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,6 +843,42 @@ Cusanalytic_sc_onlineClient::ListVisitorsOutcomeCallable Cusanalytic_sc_onlineCl
return task->get_future();
}
Cusanalytic_sc_onlineClient::MemberSynchronousOutcome Cusanalytic_sc_onlineClient::memberSynchronous(const MemberSynchronousRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MemberSynchronousOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return MemberSynchronousOutcome(MemberSynchronousResult(outcome.result()));
else
return MemberSynchronousOutcome(outcome.error());
}
void Cusanalytic_sc_onlineClient::memberSynchronousAsync(const MemberSynchronousRequest& request, const MemberSynchronousAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, memberSynchronous(request), context);
};
asyncExecute(new Runnable(fn));
}
Cusanalytic_sc_onlineClient::MemberSynchronousOutcomeCallable Cusanalytic_sc_onlineClient::memberSynchronousCallable(const MemberSynchronousRequest &request) const
{
auto task = std::make_shared<std::packaged_task<MemberSynchronousOutcome()>>(
[this, request]()
{
return this->memberSynchronous(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Cusanalytic_sc_onlineClient::SearchPersonByImgOutcome Cusanalytic_sc_onlineClient::searchPersonByImg(const SearchPersonByImgRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::DescribeActionDataRequest;
DescribeActionDataRequest::DescribeActionDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeActionData")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeActionDataRequest::~DescribeActionDataRequest()
{}
@@ -33,7 +35,7 @@ long DescribeActionDataRequest::getTsEnd()const
void DescribeActionDataRequest::setTsEnd(long tsEnd)
{
tsEnd_ = tsEnd;
setCoreParameter("TsEnd", std::to_string(tsEnd));
setBodyParameter("TsEnd", std::to_string(tsEnd));
}
std::string DescribeActionDataRequest::getStoreId()const
@@ -44,7 +46,7 @@ std::string DescribeActionDataRequest::getStoreId()const
void DescribeActionDataRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
int DescribeActionDataRequest::getPageLimit()const
@@ -55,7 +57,7 @@ int DescribeActionDataRequest::getPageLimit()const
void DescribeActionDataRequest::setPageLimit(int pageLimit)
{
pageLimit_ = pageLimit;
setCoreParameter("PageLimit", std::to_string(pageLimit));
setBodyParameter("PageLimit", std::to_string(pageLimit));
}
int DescribeActionDataRequest::getPageNo()const
@@ -66,7 +68,7 @@ int DescribeActionDataRequest::getPageNo()const
void DescribeActionDataRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setCoreParameter("PageNo", std::to_string(pageNo));
setBodyParameter("PageNo", std::to_string(pageNo));
}
long DescribeActionDataRequest::getTsStart()const
@@ -77,6 +79,6 @@ long DescribeActionDataRequest::getTsStart()const
void DescribeActionDataRequest::setTsStart(long tsStart)
{
tsStart_ = tsStart;
setCoreParameter("TsStart", std::to_string(tsStart));
setBodyParameter("TsStart", std::to_string(tsStart));
}

View File

@@ -72,6 +72,8 @@ 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());
if(!actionInfosItemNode["InStay"].isNull())
actionsMsgItemsObject.actionInfosItem.inStay = std::stol(actionInfosItemNode["InStay"].asString());
auto mapImagePointNode = actionInfosItemNode["MapImagePoint"];
if(!mapImagePointNode["X"].isNull())
actionsMsgItemsObject.actionInfosItem.mapImagePoint.x = std::stof(mapImagePointNode["X"].asString());

View File

@@ -20,63 +20,65 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::DescribeHistoryActionDataReque
DescribeHistoryActionDataRequest::DescribeHistoryActionDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeHistoryActionData")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeHistoryActionDataRequest::~DescribeHistoryActionDataRequest()
{}
long DescribeHistoryActionDataRequest::getTsEnd()const
{
return tsEnd_;
}
void DescribeHistoryActionDataRequest::setTsEnd(long tsEnd)
{
tsEnd_ = tsEnd;
setCoreParameter("TsEnd", std::to_string(tsEnd));
}
std::string DescribeHistoryActionDataRequest::getStoreId()const
{
return storeId_;
}
void DescribeHistoryActionDataRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", storeId);
}
int DescribeHistoryActionDataRequest::getPageLimit()const
{
return pageLimit_;
}
void DescribeHistoryActionDataRequest::setPageLimit(int pageLimit)
{
pageLimit_ = pageLimit;
setCoreParameter("PageLimit", std::to_string(pageLimit));
}
int DescribeHistoryActionDataRequest::getPageNo()const
{
return pageNo_;
}
void DescribeHistoryActionDataRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setCoreParameter("PageNo", std::to_string(pageNo));
}
long DescribeHistoryActionDataRequest::getTsStart()const
{
return tsStart_;
}
void DescribeHistoryActionDataRequest::setTsStart(long tsStart)
{
tsStart_ = tsStart;
setCoreParameter("TsStart", std::to_string(tsStart));
}
long DescribeHistoryActionDataRequest::getTsEnd()const
{
return tsEnd_;
}
void DescribeHistoryActionDataRequest::setTsEnd(long tsEnd)
{
tsEnd_ = tsEnd;
setBodyParameter("TsEnd", std::to_string(tsEnd));
}
std::string DescribeHistoryActionDataRequest::getStoreId()const
{
return storeId_;
}
void DescribeHistoryActionDataRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribeHistoryActionDataRequest::getPageLimit()const
{
return pageLimit_;
}
void DescribeHistoryActionDataRequest::setPageLimit(int pageLimit)
{
pageLimit_ = pageLimit;
setBodyParameter("PageLimit", std::to_string(pageLimit));
}
int DescribeHistoryActionDataRequest::getPageNo()const
{
return pageNo_;
}
void DescribeHistoryActionDataRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setBodyParameter("PageNo", std::to_string(pageNo));
}
long DescribeHistoryActionDataRequest::getTsStart()const
{
return tsStart_;
}
void DescribeHistoryActionDataRequest::setTsStart(long tsStart)
{
tsStart_ = tsStart;
setBodyParameter("TsStart", std::to_string(tsStart));
}

View File

@@ -62,6 +62,8 @@ void DescribeHistoryActionDataResult::parse(const std::string &payload)
if(!valueActionsMsgItemsActionsMsgItem["LocationLayerType"].isNull())
actionsMsgItemsObject.locationLayerType = valueActionsMsgItemsActionsMsgItem["LocationLayerType"].asString();
auto infosNode = value["Infos"];
if(!infosNode["InStay"].isNull())
actionsMsgItemsObject.infos.inStay = std::stol(infosNode["InStay"].asString());
if(!infosNode["Maxts"].isNull())
actionsMsgItemsObject.infos.maxts = std::stol(infosNode["Maxts"].asString());
if(!infosNode["StayValid"].isNull())
@@ -117,6 +119,8 @@ void DescribeHistoryActionDataResult::parse(const std::string &payload)
errorMsg_ = value["ErrorMsg"].asString();
if(!value["StoreId"].isNull())
storeId_ = value["StoreId"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["TsEnd"].isNull())
tsEnd_ = std::stol(value["TsEnd"].asString());
@@ -127,6 +131,11 @@ bool DescribeHistoryActionDataResult::getIsSuccess()const
return isSuccess_;
}
long DescribeHistoryActionDataResult::getTotalCount()const
{
return totalCount_;
}
long DescribeHistoryActionDataResult::getTsStart()const
{
return tsStart_;

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::DescribeLocationsRequest;
DescribeLocationsRequest::DescribeLocationsRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "DescribeLocations")
{}
{
setMethod(HttpRequest::Method::Post);
}
DescribeLocationsRequest::~DescribeLocationsRequest()
{}
@@ -33,6 +35,6 @@ std::string DescribeLocationsRequest::getStoreId()const
void DescribeLocationsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetActionCursorRequest;
GetActionCursorRequest::GetActionCursorRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetActionCursor")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetActionCursorRequest::~GetActionCursorRequest()
{}
@@ -33,6 +35,6 @@ std::string GetActionCursorRequest::getStoreId()const
void GetActionCursorRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetAnalyzeCommodityDataRequest
GetAnalyzeCommodityDataRequest::GetAnalyzeCommodityDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzeCommodityData")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetAnalyzeCommodityDataRequest::~GetAnalyzeCommodityDataRequest()
{}
@@ -33,7 +35,7 @@ long GetAnalyzeCommodityDataRequest::getStoreId()const
void GetAnalyzeCommodityDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string GetAnalyzeCommodityDataRequest::getStartDate()const
@@ -44,7 +46,7 @@ std::string GetAnalyzeCommodityDataRequest::getStartDate()const
void GetAnalyzeCommodityDataRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setCoreParameter("StartDate", startDate);
setBodyParameter("StartDate", startDate);
}
long GetAnalyzeCommodityDataRequest::getEndUserCount()const
@@ -55,7 +57,7 @@ long GetAnalyzeCommodityDataRequest::getEndUserCount()const
void GetAnalyzeCommodityDataRequest::setEndUserCount(long endUserCount)
{
endUserCount_ = endUserCount;
setCoreParameter("EndUserCount", std::to_string(endUserCount));
setBodyParameter("EndUserCount", std::to_string(endUserCount));
}
int GetAnalyzeCommodityDataRequest::getPageSize()const
@@ -66,7 +68,7 @@ int GetAnalyzeCommodityDataRequest::getPageSize()const
void GetAnalyzeCommodityDataRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setBodyParameter("PageSize", std::to_string(pageSize));
}
int GetAnalyzeCommodityDataRequest::getPageIndex()const
@@ -77,7 +79,7 @@ int GetAnalyzeCommodityDataRequest::getPageIndex()const
void GetAnalyzeCommodityDataRequest::setPageIndex(int pageIndex)
{
pageIndex_ = pageIndex;
setCoreParameter("PageIndex", std::to_string(pageIndex));
setBodyParameter("PageIndex", std::to_string(pageIndex));
}
long GetAnalyzeCommodityDataRequest::getStayPeriod()const
@@ -88,7 +90,7 @@ long GetAnalyzeCommodityDataRequest::getStayPeriod()const
void GetAnalyzeCommodityDataRequest::setStayPeriod(long stayPeriod)
{
stayPeriod_ = stayPeriod;
setCoreParameter("StayPeriod", std::to_string(stayPeriod));
setBodyParameter("StayPeriod", std::to_string(stayPeriod));
}
long GetAnalyzeCommodityDataRequest::getStartUserCount()const
@@ -99,7 +101,7 @@ long GetAnalyzeCommodityDataRequest::getStartUserCount()const
void GetAnalyzeCommodityDataRequest::setStartUserCount(long startUserCount)
{
startUserCount_ = startUserCount;
setCoreParameter("StartUserCount", std::to_string(startUserCount));
setBodyParameter("StartUserCount", std::to_string(startUserCount));
}
long GetAnalyzeCommodityDataRequest::getMinSupportCount()const
@@ -110,7 +112,7 @@ long GetAnalyzeCommodityDataRequest::getMinSupportCount()const
void GetAnalyzeCommodityDataRequest::setMinSupportCount(long minSupportCount)
{
minSupportCount_ = minSupportCount;
setCoreParameter("MinSupportCount", std::to_string(minSupportCount));
setBodyParameter("MinSupportCount", std::to_string(minSupportCount));
}
std::string GetAnalyzeCommodityDataRequest::getEndDate()const
@@ -121,6 +123,6 @@ std::string GetAnalyzeCommodityDataRequest::getEndDate()const
void GetAnalyzeCommodityDataRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setCoreParameter("EndDate", endDate);
setBodyParameter("EndDate", endDate);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetAnalyzePlaceDataRequest;
GetAnalyzePlaceDataRequest::GetAnalyzePlaceDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetAnalyzePlaceData")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetAnalyzePlaceDataRequest::~GetAnalyzePlaceDataRequest()
{}
@@ -33,18 +35,7 @@ long GetAnalyzePlaceDataRequest::getEndUVCount()const
void GetAnalyzePlaceDataRequest::setEndUVCount(long endUVCount)
{
endUVCount_ = endUVCount;
setCoreParameter("EndUVCount", std::to_string(endUVCount));
}
long GetAnalyzePlaceDataRequest::getParentAmount()const
{
return parentAmount_;
}
void GetAnalyzePlaceDataRequest::setParentAmount(long parentAmount)
{
parentAmount_ = parentAmount;
setCoreParameter("ParentAmount", std::to_string(parentAmount));
setBodyParameter("EndUVCount", std::to_string(endUVCount));
}
std::string GetAnalyzePlaceDataRequest::getStartDate()const
@@ -55,18 +46,7 @@ std::string GetAnalyzePlaceDataRequest::getStartDate()const
void GetAnalyzePlaceDataRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setCoreParameter("StartDate", startDate);
}
long GetAnalyzePlaceDataRequest::getStartUVCount()const
{
return startUVCount_;
}
void GetAnalyzePlaceDataRequest::setStartUVCount(long startUVCount)
{
startUVCount_ = startUVCount;
setCoreParameter("StartUVCount", std::to_string(startUVCount));
setBodyParameter("StartDate", startDate);
}
long GetAnalyzePlaceDataRequest::getStoreId()const
@@ -77,7 +57,29 @@ long GetAnalyzePlaceDataRequest::getStoreId()const
void GetAnalyzePlaceDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
setBodyParameter("StoreId", std::to_string(storeId));
}
long GetAnalyzePlaceDataRequest::getParentAmount()const
{
return parentAmount_;
}
void GetAnalyzePlaceDataRequest::setParentAmount(long parentAmount)
{
parentAmount_ = parentAmount;
setBodyParameter("ParentAmount", std::to_string(parentAmount));
}
long GetAnalyzePlaceDataRequest::getStartUVCount()const
{
return startUVCount_;
}
void GetAnalyzePlaceDataRequest::setStartUVCount(long startUVCount)
{
startUVCount_ = startUVCount;
setBodyParameter("StartUVCount", std::to_string(startUVCount));
}
std::string GetAnalyzePlaceDataRequest::getEndDate()const
@@ -88,7 +90,7 @@ std::string GetAnalyzePlaceDataRequest::getEndDate()const
void GetAnalyzePlaceDataRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setCoreParameter("EndDate", endDate);
setBodyParameter("EndDate", endDate);
}
long GetAnalyzePlaceDataRequest::getLocationId()const
@@ -99,7 +101,7 @@ long GetAnalyzePlaceDataRequest::getLocationId()const
void GetAnalyzePlaceDataRequest::setLocationId(long locationId)
{
locationId_ = locationId;
setCoreParameter("LocationId", std::to_string(locationId));
setBodyParameter("LocationId", std::to_string(locationId));
}
std::string GetAnalyzePlaceDataRequest::getParentLocationIds()const
@@ -110,6 +112,6 @@ std::string GetAnalyzePlaceDataRequest::getParentLocationIds()const
void GetAnalyzePlaceDataRequest::setParentLocationIds(const std::string& parentLocationIds)
{
parentLocationIds_ = parentLocationIds;
setCoreParameter("ParentLocationIds", parentLocationIds);
setBodyParameter("ParentLocationIds", parentLocationIds);
}

View File

@@ -55,6 +55,20 @@ void GetAnalyzePlaceDataResult::parse(const std::string &payload)
analyzePlaceItemsObject.storeId = std::stol(valueAnalyzePlaceItemsAnalyzePlaceItem["StoreId"].asString());
if(!valueAnalyzePlaceItemsAnalyzePlaceItem["Percent"].isNull())
analyzePlaceItemsObject.percent = std::stof(valueAnalyzePlaceItemsAnalyzePlaceItem["Percent"].asString());
if(!valueAnalyzePlaceItemsAnalyzePlaceItem["MaleCount"].isNull())
analyzePlaceItemsObject.maleCount = std::stoi(valueAnalyzePlaceItemsAnalyzePlaceItem["MaleCount"].asString());
if(!valueAnalyzePlaceItemsAnalyzePlaceItem["FemaleCount"].isNull())
analyzePlaceItemsObject.femaleCount = std::stoi(valueAnalyzePlaceItemsAnalyzePlaceItem["FemaleCount"].asString());
auto allAgeItemsNode = allAnalyzePlaceItemsNode["AgeItems"]["AgeItem"];
for (auto allAnalyzePlaceItemsNodeAgeItemsAgeItem : allAgeItemsNode)
{
AnalyzePlaceItem::AgeItem ageItemsObject;
if(!allAnalyzePlaceItemsNodeAgeItemsAgeItem["Count"].isNull())
ageItemsObject.count = std::stoi(allAnalyzePlaceItemsNodeAgeItemsAgeItem["Count"].asString());
if(!allAnalyzePlaceItemsNodeAgeItemsAgeItem["Age"].isNull())
ageItemsObject.age = std::stoi(allAnalyzePlaceItemsNodeAgeItemsAgeItem["Age"].asString());
analyzePlaceItemsObject.ageItems.push_back(ageItemsObject);
}
analyzePlaceItems_.push_back(analyzePlaceItemsObject);
}
if(!value["Count"].isNull())

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetBaseAgeDataRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::GetBaseAgeDataRequest;
GetBaseAgeDataRequest::GetBaseAgeDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetBaseAgeData")
{
setMethod(HttpRequest::Method::Post);
}
GetBaseAgeDataRequest::~GetBaseAgeDataRequest()
{}
long GetBaseAgeDataRequest::getStoreId()const
{
return storeId_;
}
void GetBaseAgeDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string GetBaseAgeDataRequest::getHour()const
{
return hour_;
}
void GetBaseAgeDataRequest::setHour(const std::string& hour)
{
hour_ = hour;
setBodyParameter("Hour", hour);
}
std::string GetBaseAgeDataRequest::getSummaryType()const
{
return summaryType_;
}
void GetBaseAgeDataRequest::setSummaryType(const std::string& summaryType)
{
summaryType_ = summaryType;
setBodyParameter("SummaryType", summaryType);
}
long GetBaseAgeDataRequest::getLocationId()const
{
return locationId_;
}
void GetBaseAgeDataRequest::setLocationId(long locationId)
{
locationId_ = locationId;
setBodyParameter("LocationId", std::to_string(locationId));
}
std::string GetBaseAgeDataRequest::getDay()const
{
return day_;
}
void GetBaseAgeDataRequest::setDay(const std::string& day)
{
day_ = day;
setBodyParameter("Day", day);
}

View File

@@ -0,0 +1,138 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetBaseAgeDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
GetBaseAgeDataResult::GetBaseAgeDataResult() :
ServiceResult()
{}
GetBaseAgeDataResult::GetBaseAgeDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBaseAgeDataResult::~GetBaseAgeDataResult()
{}
void GetBaseAgeDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allageItemsNode = value["ageItems"]["AgeItem"];
for (auto valueageItemsAgeItem : allageItemsNode)
{
AgeItem ageItemsObject;
if(!valueageItemsAgeItem["Name"].isNull())
ageItemsObject.name = valueageItemsAgeItem["Name"].asString();
if(!valueageItemsAgeItem["Count"].isNull())
ageItemsObject.count = std::stoi(valueageItemsAgeItem["Count"].asString());
ageItems_.push_back(ageItemsObject);
}
auto allfemaleAgeItemsNode = value["femaleAgeItems"]["AgeItem"];
for (auto valuefemaleAgeItemsAgeItem : allfemaleAgeItemsNode)
{
AgeItem femaleAgeItemsObject;
if(!valuefemaleAgeItemsAgeItem["Name"].isNull())
femaleAgeItemsObject.name = valuefemaleAgeItemsAgeItem["Name"].asString();
if(!valuefemaleAgeItemsAgeItem["Count"].isNull())
femaleAgeItemsObject.count = std::stoi(valuefemaleAgeItemsAgeItem["Count"].asString());
femaleAgeItems_.push_back(femaleAgeItemsObject);
}
auto allmaleAgeItemsNode = value["maleAgeItems"]["AgeItem"];
for (auto valuemaleAgeItemsAgeItem : allmaleAgeItemsNode)
{
AgeItem maleAgeItemsObject;
if(!valuemaleAgeItemsAgeItem["Name"].isNull())
maleAgeItemsObject.name = valuemaleAgeItemsAgeItem["Name"].asString();
if(!valuemaleAgeItemsAgeItem["Count"].isNull())
maleAgeItemsObject.count = std::stoi(valuemaleAgeItemsAgeItem["Count"].asString());
maleAgeItems_.push_back(maleAgeItemsObject);
}
if(!value["Day"].isNull())
day_ = value["Day"].asString();
if(!value["StoreId"].isNull())
storeId_ = std::stol(value["StoreId"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["Hour"].isNull())
hour_ = value["Hour"].asString();
if(!value["LocationId"].isNull())
locationId_ = std::stol(value["LocationId"].asString());
if(!value["SummaryType"].isNull())
summaryType_ = value["SummaryType"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetBaseAgeDataResult::getSummaryType()const
{
return summaryType_;
}
std::vector<GetBaseAgeDataResult::AgeItem> GetBaseAgeDataResult::getfemaleAgeItems()const
{
return femaleAgeItems_;
}
long GetBaseAgeDataResult::getStoreId()const
{
return storeId_;
}
std::string GetBaseAgeDataResult::getHour()const
{
return hour_;
}
std::vector<GetBaseAgeDataResult::AgeItem> GetBaseAgeDataResult::getmaleAgeItems()const
{
return maleAgeItems_;
}
std::string GetBaseAgeDataResult::getErrorMsg()const
{
return errorMsg_;
}
long GetBaseAgeDataResult::getLocationId()const
{
return locationId_;
}
std::vector<GetBaseAgeDataResult::AgeItem> GetBaseAgeDataResult::getageItems()const
{
return ageItems_;
}
std::string GetBaseAgeDataResult::getDay()const
{
return day_;
}
bool GetBaseAgeDataResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetCameraStatisticRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::GetCameraStatisticRequest;
GetCameraStatisticRequest::GetCameraStatisticRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetCameraStatistic")
{
setMethod(HttpRequest::Method::Post);
}
GetCameraStatisticRequest::~GetCameraStatisticRequest()
{}
long GetCameraStatisticRequest::getStartTs()const
{
return startTs_;
}
void GetCameraStatisticRequest::setStartTs(long startTs)
{
startTs_ = startTs;
setBodyParameter("StartTs", std::to_string(startTs));
}
long GetCameraStatisticRequest::getStoreId()const
{
return storeId_;
}
void GetCameraStatisticRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
long GetCameraStatisticRequest::getEndTs()const
{
return endTs_;
}
void GetCameraStatisticRequest::setEndTs(long endTs)
{
endTs_ = endTs;
setBodyParameter("EndTs", std::to_string(endTs));
}

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetCameraStatisticResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
GetCameraStatisticResult::GetCameraStatisticResult() :
ServiceResult()
{}
GetCameraStatisticResult::GetCameraStatisticResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCameraStatisticResult::~GetCameraStatisticResult()
{}
void GetCameraStatisticResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPvStatisticResultsNode = value["PvStatisticResults"]["PvStatisticResult"];
for (auto valuePvStatisticResultsPvStatisticResult : allPvStatisticResultsNode)
{
PvStatisticResult pvStatisticResultsObject;
if(!valuePvStatisticResultsPvStatisticResult["ProcessCursor"].isNull())
pvStatisticResultsObject.processCursor = std::stol(valuePvStatisticResultsPvStatisticResult["ProcessCursor"].asString());
if(!valuePvStatisticResultsPvStatisticResult["IpcId"].isNull())
pvStatisticResultsObject.ipcId = std::stol(valuePvStatisticResultsPvStatisticResult["IpcId"].asString());
if(!valuePvStatisticResultsPvStatisticResult["LocationId"].isNull())
pvStatisticResultsObject.locationId = std::stol(valuePvStatisticResultsPvStatisticResult["LocationId"].asString());
if(!valuePvStatisticResultsPvStatisticResult["PvCount"].isNull())
pvStatisticResultsObject.pvCount = std::stol(valuePvStatisticResultsPvStatisticResult["PvCount"].asString());
auto allPvRectsNode = allPvStatisticResultsNode["PvRects"]["Rect"];
for (auto allPvStatisticResultsNodePvRectsRect : allPvRectsNode)
{
PvStatisticResult::Rect pvRectsObject;
if(!allPvStatisticResultsNodePvRectsRect["Right"].isNull())
pvRectsObject.right = std::stof(allPvStatisticResultsNodePvRectsRect["Right"].asString());
if(!allPvStatisticResultsNodePvRectsRect["Bottom"].isNull())
pvRectsObject.bottom = std::stof(allPvStatisticResultsNodePvRectsRect["Bottom"].asString());
if(!allPvStatisticResultsNodePvRectsRect["Top"].isNull())
pvRectsObject.top = std::stof(allPvStatisticResultsNodePvRectsRect["Top"].asString());
if(!allPvStatisticResultsNodePvRectsRect["Left"].isNull())
pvRectsObject.left = std::stof(allPvStatisticResultsNodePvRectsRect["Left"].asString());
pvStatisticResultsObject.pvRects.push_back(pvRectsObject);
}
pvStatisticResults_.push_back(pvStatisticResultsObject);
}
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetCameraStatisticResult::PvStatisticResult> GetCameraStatisticResult::getPvStatisticResults()const
{
return pvStatisticResults_;
}
std::string GetCameraStatisticResult::getErrorMsg()const
{
return errorMsg_;
}
bool GetCameraStatisticResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetDailyStatisticsDataRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::GetDailyStatisticsDataRequest;
GetDailyStatisticsDataRequest::GetDailyStatisticsDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetDailyStatisticsData")
{
setMethod(HttpRequest::Method::Post);
}
GetDailyStatisticsDataRequest::~GetDailyStatisticsDataRequest()
{}
long GetDailyStatisticsDataRequest::getStoreId()const
{
return storeId_;
}
void GetDailyStatisticsDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string GetDailyStatisticsDataRequest::getDay()const
{
return day_;
}
void GetDailyStatisticsDataRequest::setDay(const std::string& day)
{
day_ = day;
setBodyParameter("Day", day);
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetDailyStatisticsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
GetDailyStatisticsDataResult::GetDailyStatisticsDataResult() :
ServiceResult()
{}
GetDailyStatisticsDataResult::GetDailyStatisticsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDailyStatisticsDataResult::~GetDailyStatisticsDataResult()
{}
void GetDailyStatisticsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBaseStatisticsDatasNode = value["BaseStatisticsDatas"]["BaseStatisticsData"];
for (auto valueBaseStatisticsDatasBaseStatisticsData : allBaseStatisticsDatasNode)
{
BaseStatisticsData baseStatisticsDatasObject;
if(!valueBaseStatisticsDatasBaseStatisticsData["MaleUvCount"].isNull())
baseStatisticsDatasObject.maleUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["MaleUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["StoreId"].isNull())
baseStatisticsDatasObject.storeId = std::stol(valueBaseStatisticsDatasBaseStatisticsData["StoreId"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Day"].isNull())
baseStatisticsDatasObject.day = valueBaseStatisticsDatasBaseStatisticsData["Day"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["LocationId"].isNull())
baseStatisticsDatasObject.locationId = std::stol(valueBaseStatisticsDatasBaseStatisticsData["LocationId"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["StayPeriod"].isNull())
baseStatisticsDatasObject.stayPeriod = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["StayPeriod"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["UvCount"].isNull())
baseStatisticsDatasObject.uvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["UvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["OnlyBodyUvCount"].isNull())
baseStatisticsDatasObject.onlyBodyUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["OnlyBodyUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Hour"].isNull())
baseStatisticsDatasObject.hour = valueBaseStatisticsDatasBaseStatisticsData["Hour"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["FemaleUvCount"].isNull())
baseStatisticsDatasObject.femaleUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["FemaleUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["OldCount"].isNull())
baseStatisticsDatasObject.oldCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["OldCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["NewCount"].isNull())
baseStatisticsDatasObject.newCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["NewCount"].asString());
baseStatisticsDatas_.push_back(baseStatisticsDatasObject);
}
if(!value["CursorTime"].isNull())
cursorTime_ = value["CursorTime"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetDailyStatisticsDataResult::BaseStatisticsData> GetDailyStatisticsDataResult::getBaseStatisticsDatas()const
{
return baseStatisticsDatas_;
}
std::string GetDailyStatisticsDataResult::getErrorMsg()const
{
return errorMsg_;
}
std::string GetDailyStatisticsDataResult::getCursorTime()const
{
return cursorTime_;
}
bool GetDailyStatisticsDataResult::getSuccess()const
{
return success_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetEMapRequest;
GetEMapRequest::GetEMapRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetEMap")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetEMapRequest::~GetEMapRequest()
{}
@@ -33,7 +35,7 @@ long GetEMapRequest::getStoreId()const
void GetEMapRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
setBodyParameter("StoreId", std::to_string(storeId));
}
long GetEMapRequest::getLocationId()const
@@ -44,6 +46,6 @@ long GetEMapRequest::getLocationId()const
void GetEMapRequest::setLocationId(long locationId)
{
locationId_ = locationId;
setCoreParameter("LocationId", std::to_string(locationId));
setBodyParameter("LocationId", std::to_string(locationId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetHeatMapDataRequest;
GetHeatMapDataRequest::GetHeatMapDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetHeatMapData")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetHeatMapDataRequest::~GetHeatMapDataRequest()
{}
@@ -33,7 +35,7 @@ std::string GetHeatMapDataRequest::getEMapName()const
void GetHeatMapDataRequest::setEMapName(const std::string& eMapName)
{
eMapName_ = eMapName;
setCoreParameter("EMapName", eMapName);
setBodyParameter("EMapName", eMapName);
}
long GetHeatMapDataRequest::getStoreId()const
@@ -44,7 +46,7 @@ long GetHeatMapDataRequest::getStoreId()const
void GetHeatMapDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string GetHeatMapDataRequest::getStatDate()const
@@ -55,6 +57,6 @@ std::string GetHeatMapDataRequest::getStatDate()const
void GetHeatMapDataRequest::setStatDate(const std::string& statDate)
{
statDate_ = statDate;
setCoreParameter("StatDate", statDate);
setBodyParameter("StatDate", statDate);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetHourlyStatisticsDataRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::GetHourlyStatisticsDataRequest;
GetHourlyStatisticsDataRequest::GetHourlyStatisticsDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetHourlyStatisticsData")
{
setMethod(HttpRequest::Method::Post);
}
GetHourlyStatisticsDataRequest::~GetHourlyStatisticsDataRequest()
{}
long GetHourlyStatisticsDataRequest::getStoreId()const
{
return storeId_;
}
void GetHourlyStatisticsDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
long GetHourlyStatisticsDataRequest::getLocationId()const
{
return locationId_;
}
void GetHourlyStatisticsDataRequest::setLocationId(long locationId)
{
locationId_ = locationId;
setBodyParameter("LocationId", std::to_string(locationId));
}
std::string GetHourlyStatisticsDataRequest::getDay()const
{
return day_;
}
void GetHourlyStatisticsDataRequest::setDay(const std::string& day)
{
day_ = day;
setBodyParameter("Day", day);
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetHourlyStatisticsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
GetHourlyStatisticsDataResult::GetHourlyStatisticsDataResult() :
ServiceResult()
{}
GetHourlyStatisticsDataResult::GetHourlyStatisticsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetHourlyStatisticsDataResult::~GetHourlyStatisticsDataResult()
{}
void GetHourlyStatisticsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBaseStatisticsDatasNode = value["BaseStatisticsDatas"]["BaseStatisticsData"];
for (auto valueBaseStatisticsDatasBaseStatisticsData : allBaseStatisticsDatasNode)
{
BaseStatisticsData baseStatisticsDatasObject;
if(!valueBaseStatisticsDatasBaseStatisticsData["MaleUvCount"].isNull())
baseStatisticsDatasObject.maleUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["MaleUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["StoreId"].isNull())
baseStatisticsDatasObject.storeId = std::stol(valueBaseStatisticsDatasBaseStatisticsData["StoreId"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Day"].isNull())
baseStatisticsDatasObject.day = valueBaseStatisticsDatasBaseStatisticsData["Day"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["LocationId"].isNull())
baseStatisticsDatasObject.locationId = std::stol(valueBaseStatisticsDatasBaseStatisticsData["LocationId"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["StayPeriod"].isNull())
baseStatisticsDatasObject.stayPeriod = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["StayPeriod"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["UvCount"].isNull())
baseStatisticsDatasObject.uvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["UvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["OnlyBodyUvCount"].isNull())
baseStatisticsDatasObject.onlyBodyUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["OnlyBodyUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Hour"].isNull())
baseStatisticsDatasObject.hour = valueBaseStatisticsDatasBaseStatisticsData["Hour"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["FemaleUvCount"].isNull())
baseStatisticsDatasObject.femaleUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["FemaleUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["OldCount"].isNull())
baseStatisticsDatasObject.oldCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["OldCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["NewCount"].isNull())
baseStatisticsDatasObject.newCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["NewCount"].asString());
baseStatisticsDatas_.push_back(baseStatisticsDatasObject);
}
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["CursorTime"].isNull())
cursorTime_ = value["CursorTime"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetHourlyStatisticsDataResult::BaseStatisticsData> GetHourlyStatisticsDataResult::getBaseStatisticsDatas()const
{
return baseStatisticsDatas_;
}
std::string GetHourlyStatisticsDataResult::getErrorMsg()const
{
return errorMsg_;
}
std::string GetHourlyStatisticsDataResult::getCursorTime()const
{
return cursorTime_;
}
bool GetHourlyStatisticsDataResult::getSuccess()const
{
return success_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetImageUrlRequest;
GetImageUrlRequest::GetImageUrlRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetImageUrl")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetImageUrlRequest::~GetImageUrlRequest()
{}
@@ -33,7 +35,7 @@ std::string GetImageUrlRequest::getOriginUrls()const
void GetImageUrlRequest::setOriginUrls(const std::string& originUrls)
{
originUrls_ = originUrls;
setCoreParameter("OriginUrls", originUrls);
setBodyParameter("OriginUrls", originUrls);
}
std::string GetImageUrlRequest::getStoreId()const
@@ -44,7 +46,7 @@ std::string GetImageUrlRequest::getStoreId()const
void GetImageUrlRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
std::string GetImageUrlRequest::getObjectKeys()const
@@ -55,6 +57,6 @@ std::string GetImageUrlRequest::getObjectKeys()const
void GetImageUrlRequest::setObjectKeys(const std::string& objectKeys)
{
objectKeys_ = objectKeys;
setCoreParameter("ObjectKeys", objectKeys);
setBodyParameter("ObjectKeys", objectKeys);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetLocationsRequest;
GetLocationsRequest::GetLocationsRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetLocations")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetLocationsRequest::~GetLocationsRequest()
{}
@@ -33,6 +35,6 @@ long GetLocationsRequest::getStoreId()const
void GetLocationsRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
setBodyParameter("StoreId", std::to_string(storeId));
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetMin5StatisticsDataRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::GetMin5StatisticsDataRequest;
GetMin5StatisticsDataRequest::GetMin5StatisticsDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetMin5StatisticsData")
{
setMethod(HttpRequest::Method::Post);
}
GetMin5StatisticsDataRequest::~GetMin5StatisticsDataRequest()
{}
long GetMin5StatisticsDataRequest::getStoreId()const
{
return storeId_;
}
void GetMin5StatisticsDataRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
long GetMin5StatisticsDataRequest::getTime()const
{
return time_;
}
void GetMin5StatisticsDataRequest::setTime(long time)
{
time_ = time;
setBodyParameter("Time", std::to_string(time));
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetMin5StatisticsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
GetMin5StatisticsDataResult::GetMin5StatisticsDataResult() :
ServiceResult()
{}
GetMin5StatisticsDataResult::GetMin5StatisticsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMin5StatisticsDataResult::~GetMin5StatisticsDataResult()
{}
void GetMin5StatisticsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBaseStatisticsDatasNode = value["BaseStatisticsDatas"]["BaseStatisticsData"];
for (auto valueBaseStatisticsDatasBaseStatisticsData : allBaseStatisticsDatasNode)
{
BaseStatisticsData baseStatisticsDatasObject;
if(!valueBaseStatisticsDatasBaseStatisticsData["MaleUvCount"].isNull())
baseStatisticsDatasObject.maleUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["MaleUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Minute"].isNull())
baseStatisticsDatasObject.minute = valueBaseStatisticsDatasBaseStatisticsData["Minute"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["StoreId"].isNull())
baseStatisticsDatasObject.storeId = std::stol(valueBaseStatisticsDatasBaseStatisticsData["StoreId"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Day"].isNull())
baseStatisticsDatasObject.day = valueBaseStatisticsDatasBaseStatisticsData["Day"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["LocationId"].isNull())
baseStatisticsDatasObject.locationId = std::stol(valueBaseStatisticsDatasBaseStatisticsData["LocationId"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["StayPeriod"].isNull())
baseStatisticsDatasObject.stayPeriod = std::stol(valueBaseStatisticsDatasBaseStatisticsData["StayPeriod"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["UvCount"].isNull())
baseStatisticsDatasObject.uvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["UvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["OnlyBodyUvCount"].isNull())
baseStatisticsDatasObject.onlyBodyUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["OnlyBodyUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["Hour"].isNull())
baseStatisticsDatasObject.hour = valueBaseStatisticsDatasBaseStatisticsData["Hour"].asString();
if(!valueBaseStatisticsDatasBaseStatisticsData["FemaleUvCount"].isNull())
baseStatisticsDatasObject.femaleUvCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["FemaleUvCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["OldCount"].isNull())
baseStatisticsDatasObject.oldCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["OldCount"].asString());
if(!valueBaseStatisticsDatasBaseStatisticsData["NewCount"].isNull())
baseStatisticsDatasObject.newCount = std::stoi(valueBaseStatisticsDatasBaseStatisticsData["NewCount"].asString());
baseStatisticsDatas_.push_back(baseStatisticsDatasObject);
}
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["CursorTime"].isNull())
cursorTime_ = value["CursorTime"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetMin5StatisticsDataResult::BaseStatisticsData> GetMin5StatisticsDataResult::getBaseStatisticsDatas()const
{
return baseStatisticsDatas_;
}
std::string GetMin5StatisticsDataResult::getErrorMsg()const
{
return errorMsg_;
}
std::string GetMin5StatisticsDataResult::getCursorTime()const
{
return cursorTime_;
}
bool GetMin5StatisticsDataResult::getSuccess()const
{
return success_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetOverviewDataRequest;
GetOverviewDataRequest::GetOverviewDataRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetOverviewData")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetOverviewDataRequest::~GetOverviewDataRequest()
{}
@@ -33,7 +35,7 @@ std::string GetOverviewDataRequest::getDate()const
void GetOverviewDataRequest::setDate(const std::string& date)
{
date_ = date;
setCoreParameter("Date", date);
setBodyParameter("Date", date);
}
std::string GetOverviewDataRequest::getStoreIds()const
@@ -44,6 +46,6 @@ std::string GetOverviewDataRequest::getStoreIds()const
void GetOverviewDataRequest::setStoreIds(const std::string& storeIds)
{
storeIds_ = storeIds;
setCoreParameter("StoreIds", storeIds);
setBodyParameter("StoreIds", storeIds);
}

View File

@@ -20,30 +20,32 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetPersonInStore5MinRequest;
GetPersonInStore5MinRequest::GetPersonInStore5MinRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetPersonInStore5Min")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetPersonInStore5MinRequest::~GetPersonInStore5MinRequest()
{}
std::string GetPersonInStore5MinRequest::getDate()const
{
return date_;
}
void GetPersonInStore5MinRequest::setDate(const std::string& date)
{
date_ = date;
setCoreParameter("Date", date);
}
long GetPersonInStore5MinRequest::getStoreId()const
{
return storeId_;
}
void GetPersonInStore5MinRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
}
std::string GetPersonInStore5MinRequest::getDate()const
{
return date_;
}
void GetPersonInStore5MinRequest::setDate(const std::string& date)
{
date_ = date;
setBodyParameter("Date", date);
}
long GetPersonInStore5MinRequest::getStoreId()const
{
return storeId_;
}
void GetPersonInStore5MinRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetPortrayalRequest;
GetPortrayalRequest::GetPortrayalRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetPortrayal")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetPortrayalRequest::~GetPortrayalRequest()
{}
@@ -33,7 +35,7 @@ std::string GetPortrayalRequest::getDate()const
void GetPortrayalRequest::setDate(const std::string& date)
{
date_ = date;
setCoreParameter("Date", date);
setBodyParameter("Date", date);
}
std::string GetPortrayalRequest::getLocationIds()const
@@ -44,7 +46,7 @@ std::string GetPortrayalRequest::getLocationIds()const
void GetPortrayalRequest::setLocationIds(const std::string& locationIds)
{
locationIds_ = locationIds;
setCoreParameter("LocationIds", locationIds);
setBodyParameter("LocationIds", locationIds);
}
std::string GetPortrayalRequest::getStoreIds()const
@@ -55,6 +57,6 @@ std::string GetPortrayalRequest::getStoreIds()const
void GetPortrayalRequest::setStoreIds(const std::string& storeIds)
{
storeIds_ = storeIds;
setCoreParameter("StoreIds", storeIds);
setBodyParameter("StoreIds", storeIds);
}

View File

@@ -20,30 +20,32 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetRoiRankingRequest;
GetRoiRankingRequest::GetRoiRankingRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetRoiRanking")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetRoiRankingRequest::~GetRoiRankingRequest()
{}
std::string GetRoiRankingRequest::getDate()const
{
return date_;
}
void GetRoiRankingRequest::setDate(const std::string& date)
{
date_ = date;
setCoreParameter("Date", date);
}
long GetRoiRankingRequest::getStoreId()const
{
return storeId_;
}
void GetRoiRankingRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
}
std::string GetRoiRankingRequest::getDate()const
{
return date_;
}
void GetRoiRankingRequest::setDate(const std::string& date)
{
date_ = date;
setBodyParameter("Date", date);
}
long GetRoiRankingRequest::getStoreId()const
{
return storeId_;
}
void GetRoiRankingRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetStayDistributionRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::GetStayDistributionRequest;
GetStayDistributionRequest::GetStayDistributionRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetStayDistribution")
{
setMethod(HttpRequest::Method::Post);
}
GetStayDistributionRequest::~GetStayDistributionRequest()
{}
long GetStayDistributionRequest::getSummaryTime()const
{
return summaryTime_;
}
void GetStayDistributionRequest::setSummaryTime(long summaryTime)
{
summaryTime_ = summaryTime;
setBodyParameter("SummaryTime", std::to_string(summaryTime));
}
long GetStayDistributionRequest::getStoreId()const
{
return storeId_;
}
void GetStayDistributionRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string GetStayDistributionRequest::getSummaryType()const
{
return summaryType_;
}
void GetStayDistributionRequest::setSummaryType(const std::string& summaryType)
{
summaryType_ = summaryType;
setBodyParameter("SummaryType", summaryType);
}
long GetStayDistributionRequest::getLocationId()const
{
return locationId_;
}
void GetStayDistributionRequest::setLocationId(long locationId)
{
locationId_ = locationId;
setBodyParameter("LocationId", std::to_string(locationId));
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/GetStayDistributionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
GetStayDistributionResult::GetStayDistributionResult() :
ServiceResult()
{}
GetStayDistributionResult::GetStayDistributionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetStayDistributionResult::~GetStayDistributionResult()
{}
void GetStayDistributionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStayDistributionItemsNode = value["StayDistributionItems"]["StayDistributionItem"];
for (auto valueStayDistributionItemsStayDistributionItem : allStayDistributionItemsNode)
{
StayDistributionItem stayDistributionItemsObject;
if(!valueStayDistributionItemsStayDistributionItem["EndTs"].isNull())
stayDistributionItemsObject.endTs = std::stol(valueStayDistributionItemsStayDistributionItem["EndTs"].asString());
if(!valueStayDistributionItemsStayDistributionItem["Count"].isNull())
stayDistributionItemsObject.count = std::stoi(valueStayDistributionItemsStayDistributionItem["Count"].asString());
if(!valueStayDistributionItemsStayDistributionItem["StartTs"].isNull())
stayDistributionItemsObject.startTs = std::stol(valueStayDistributionItemsStayDistributionItem["StartTs"].asString());
stayDistributionItems_.push_back(stayDistributionItemsObject);
}
if(!value["StoreId"].isNull())
storeId_ = std::stol(value["StoreId"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["LocationId"].isNull())
locationId_ = std::stol(value["LocationId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<GetStayDistributionResult::StayDistributionItem> GetStayDistributionResult::getStayDistributionItems()const
{
return stayDistributionItems_;
}
long GetStayDistributionResult::getStoreId()const
{
return storeId_;
}
std::string GetStayDistributionResult::getErrorMsg()const
{
return errorMsg_;
}
long GetStayDistributionResult::getLocationId()const
{
return locationId_;
}
bool GetStayDistributionResult::getSuccess()const
{
return success_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::GetSupportStoreRequest;
GetSupportStoreRequest::GetSupportStoreRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "GetSupportStore")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetSupportStoreRequest::~GetSupportStoreRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::ListVisitorsRequest;
ListVisitorsRequest::ListVisitorsRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "ListVisitors")
{}
{
setMethod(HttpRequest::Method::Post);
}
ListVisitorsRequest::~ListVisitorsRequest()
{}
@@ -33,7 +35,7 @@ std::string ListVisitorsRequest::getGender()const
void ListVisitorsRequest::setGender(const std::string& gender)
{
gender_ = gender;
setCoreParameter("Gender", gender);
setBodyParameter("Gender", gender);
}
long ListVisitorsRequest::getUkId()const
@@ -44,7 +46,7 @@ long ListVisitorsRequest::getUkId()const
void ListVisitorsRequest::setUkId(long ukId)
{
ukId_ = ukId;
setCoreParameter("UkId", std::to_string(ukId));
setBodyParameter("UkId", std::to_string(ukId));
}
std::string ListVisitorsRequest::getLocationIds()const
@@ -55,7 +57,7 @@ std::string ListVisitorsRequest::getLocationIds()const
void ListVisitorsRequest::setLocationIds(const std::string& locationIds)
{
locationIds_ = locationIds;
setCoreParameter("LocationIds", locationIds);
setBodyParameter("LocationIds", locationIds);
}
std::string ListVisitorsRequest::getStartTime()const
@@ -66,7 +68,7 @@ std::string ListVisitorsRequest::getStartTime()const
void ListVisitorsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
setBodyParameter("StartTime", startTime);
}
int ListVisitorsRequest::getPageSize()const
@@ -77,7 +79,7 @@ int ListVisitorsRequest::getPageSize()const
void ListVisitorsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setBodyParameter("PageSize", std::to_string(pageSize));
}
long ListVisitorsRequest::getEnterCount()const
@@ -88,7 +90,7 @@ long ListVisitorsRequest::getEnterCount()const
void ListVisitorsRequest::setEnterCount(long enterCount)
{
enterCount_ = enterCount;
setCoreParameter("EnterCount", std::to_string(enterCount));
setBodyParameter("EnterCount", std::to_string(enterCount));
}
int ListVisitorsRequest::getPageIndex()const
@@ -99,7 +101,7 @@ int ListVisitorsRequest::getPageIndex()const
void ListVisitorsRequest::setPageIndex(int pageIndex)
{
pageIndex_ = pageIndex;
setCoreParameter("PageIndex", std::to_string(pageIndex));
setBodyParameter("PageIndex", std::to_string(pageIndex));
}
long ListVisitorsRequest::getAgeStart()const
@@ -110,7 +112,7 @@ long ListVisitorsRequest::getAgeStart()const
void ListVisitorsRequest::setAgeStart(long ageStart)
{
ageStart_ = ageStart;
setCoreParameter("AgeStart", std::to_string(ageStart));
setBodyParameter("AgeStart", std::to_string(ageStart));
}
long ListVisitorsRequest::getAgeEnd()const
@@ -121,7 +123,7 @@ long ListVisitorsRequest::getAgeEnd()const
void ListVisitorsRequest::setAgeEnd(long ageEnd)
{
ageEnd_ = ageEnd;
setCoreParameter("AgeEnd", std::to_string(ageEnd));
setBodyParameter("AgeEnd", std::to_string(ageEnd));
}
std::string ListVisitorsRequest::getPkId()const
@@ -132,7 +134,7 @@ std::string ListVisitorsRequest::getPkId()const
void ListVisitorsRequest::setPkId(const std::string& pkId)
{
pkId_ = pkId;
setCoreParameter("PkId", pkId);
setBodyParameter("PkId", pkId);
}
std::string ListVisitorsRequest::getEndTime()const
@@ -143,7 +145,7 @@ std::string ListVisitorsRequest::getEndTime()const
void ListVisitorsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
setBodyParameter("EndTime", endTime);
}
std::string ListVisitorsRequest::getStoreIds()const
@@ -154,6 +156,6 @@ std::string ListVisitorsRequest::getStoreIds()const
void ListVisitorsRequest::setStoreIds(const std::string& storeIds)
{
storeIds_ = storeIds;
setCoreParameter("StoreIds", storeIds);
setBodyParameter("StoreIds", storeIds);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/MemberSynchronousRequest.h>
using AlibabaCloud::Cusanalytic_sc_online::Model::MemberSynchronousRequest;
MemberSynchronousRequest::MemberSynchronousRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "MemberSynchronous")
{
setMethod(HttpRequest::Method::Post);
}
MemberSynchronousRequest::~MemberSynchronousRequest()
{}
long MemberSynchronousRequest::getUkId()const
{
return ukId_;
}
void MemberSynchronousRequest::setUkId(long ukId)
{
ukId_ = ukId;
setBodyParameter("UkId", std::to_string(ukId));
}
std::string MemberSynchronousRequest::getFaceUrls()const
{
return faceUrls_;
}
void MemberSynchronousRequest::setFaceUrls(const std::string& faceUrls)
{
faceUrls_ = faceUrls;
setBodyParameter("FaceUrls", faceUrls);
}
long MemberSynchronousRequest::getStoreId()const
{
return storeId_;
}
void MemberSynchronousRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string MemberSynchronousRequest::getType()const
{
return type_;
}
void MemberSynchronousRequest::setType(const std::string& type)
{
type_ = type;
setBodyParameter("Type", type);
}
long MemberSynchronousRequest::getCustId()const
{
return custId_;
}
void MemberSynchronousRequest::setCustId(long custId)
{
custId_ = custId;
setBodyParameter("CustId", std::to_string(custId));
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cusanalytic_sc_online/model/MemberSynchronousResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cusanalytic_sc_online;
using namespace AlibabaCloud::Cusanalytic_sc_online::Model;
MemberSynchronousResult::MemberSynchronousResult() :
ServiceResult()
{}
MemberSynchronousResult::MemberSynchronousResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
MemberSynchronousResult::~MemberSynchronousResult()
{}
void MemberSynchronousResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Msg"].isNull())
msg_ = value["Msg"].asString();
if(!value["UkId"].isNull())
ukId_ = std::stol(value["UkId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string MemberSynchronousResult::getMsg()const
{
return msg_;
}
long MemberSynchronousResult::getUkId()const
{
return ukId_;
}
bool MemberSynchronousResult::getSuccess()const
{
return success_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Cusanalytic_sc_online::Model::SearchPersonByImgRequest;
SearchPersonByImgRequest::SearchPersonByImgRequest() :
RpcServiceRequest("cusanalytic_sc_online", "2019-05-24", "SearchPersonByImg")
{}
{
setMethod(HttpRequest::Method::Post);
}
SearchPersonByImgRequest::~SearchPersonByImgRequest()
{}
@@ -33,7 +35,7 @@ long SearchPersonByImgRequest::getStoreId()const
void SearchPersonByImgRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setCoreParameter("StoreId", std::to_string(storeId));
setBodyParameter("StoreId", std::to_string(storeId));
}
std::string SearchPersonByImgRequest::getImgUrl()const
@@ -44,6 +46,6 @@ std::string SearchPersonByImgRequest::getImgUrl()const
void SearchPersonByImgRequest::setImgUrl(const std::string& imgUrl)
{
imgUrl_ = imgUrl;
setCoreParameter("ImgUrl", imgUrl);
setBodyParameter("ImgUrl", imgUrl);
}