CDRS First edition.
This commit is contained in:
1061
cdrs/src/CDRSClient.cc
Normal file
1061
cdrs/src/CDRSClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
62
cdrs/src/model/ListCityMapAoisRequest.cc
Normal file
62
cdrs/src/model/ListCityMapAoisRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListCityMapAoisRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCityMapAoisRequest;
|
||||
|
||||
ListCityMapAoisRequest::ListCityMapAoisRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCityMapAois")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCityMapAoisRequest::~ListCityMapAoisRequest()
|
||||
{}
|
||||
|
||||
std::string ListCityMapAoisRequest::getLatitude()const
|
||||
{
|
||||
return latitude_;
|
||||
}
|
||||
|
||||
void ListCityMapAoisRequest::setLatitude(const std::string& latitude)
|
||||
{
|
||||
latitude_ = latitude;
|
||||
setBodyParameter("Latitude", latitude);
|
||||
}
|
||||
|
||||
int ListCityMapAoisRequest::getRadius()const
|
||||
{
|
||||
return radius_;
|
||||
}
|
||||
|
||||
void ListCityMapAoisRequest::setRadius(int radius)
|
||||
{
|
||||
radius_ = radius;
|
||||
setBodyParameter("Radius", std::to_string(radius));
|
||||
}
|
||||
|
||||
std::string ListCityMapAoisRequest::getLongitude()const
|
||||
{
|
||||
return longitude_;
|
||||
}
|
||||
|
||||
void ListCityMapAoisRequest::setLongitude(const std::string& longitude)
|
||||
{
|
||||
longitude_ = longitude;
|
||||
setBodyParameter("Longitude", longitude);
|
||||
}
|
||||
|
||||
80
cdrs/src/model/ListCityMapAoisResult.cc
Normal file
80
cdrs/src/model/ListCityMapAoisResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCityMapAoisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCityMapAoisResult::ListCityMapAoisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCityMapAoisResult::ListCityMapAoisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCityMapAoisResult::~ListCityMapAoisResult()
|
||||
{}
|
||||
|
||||
void ListCityMapAoisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Id"].isNull())
|
||||
dataObject.id = valueDataDatas["Id"].asString();
|
||||
if(!valueDataDatas["Value"].isNull())
|
||||
dataObject.value = valueDataDatas["Value"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListCityMapAoisResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCityMapAoisResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListCityMapAoisResult::Datas> ListCityMapAoisResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCityMapAoisResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
cdrs/src/model/ListCityMapCameraResultsRequest.cc
Normal file
62
cdrs/src/model/ListCityMapCameraResultsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCityMapCameraResultsRequest;
|
||||
|
||||
ListCityMapCameraResultsRequest::ListCityMapCameraResultsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCityMapCameraResults")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCityMapCameraResultsRequest::~ListCityMapCameraResultsRequest()
|
||||
{}
|
||||
|
||||
long ListCityMapCameraResultsRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraResultsRequest::setPageNum(long pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setBodyParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListCityMapCameraResultsRequest::getDataSourceIdList()const
|
||||
{
|
||||
return dataSourceIdList_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraResultsRequest::setDataSourceIdList(const std::map<std::string, std::string>& dataSourceIdList)
|
||||
{
|
||||
dataSourceIdList_ = dataSourceIdList;
|
||||
setJsonParameters("DataSourceIdList", dataSourceIdList);
|
||||
}
|
||||
|
||||
long ListCityMapCameraResultsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraResultsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
104
cdrs/src/model/ListCityMapCameraResultsResult.cc
Normal file
104
cdrs/src/model/ListCityMapCameraResultsResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCityMapCameraResultsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCityMapCameraResultsResult::ListCityMapCameraResultsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCityMapCameraResultsResult::ListCityMapCameraResultsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCityMapCameraResultsResult::~ListCityMapCameraResultsResult()
|
||||
{}
|
||||
|
||||
void ListCityMapCameraResultsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
if(!valueDataDatas["NearPoi"].isNull())
|
||||
dataObject.nearPoi = valueDataDatas["NearPoi"].asString();
|
||||
if(!valueDataDatas["DataSourcePoi"].isNull())
|
||||
dataObject.dataSourcePoi = valueDataDatas["DataSourcePoi"].asString();
|
||||
if(!valueDataDatas["DataSourceName"].isNull())
|
||||
dataObject.dataSourceName = valueDataDatas["DataSourceName"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = value["PageNum"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
|
||||
}
|
||||
|
||||
long ListCityMapCameraResultsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraResultsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraResultsResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraResultsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<ListCityMapCameraResultsResult::Datas> ListCityMapCameraResultsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraResultsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
cdrs/src/model/ListCityMapCameraStatisticsRequest.cc
Normal file
84
cdrs/src/model/ListCityMapCameraStatisticsRequest.cc
Normal 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/cdrs/model/ListCityMapCameraStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCityMapCameraStatisticsRequest;
|
||||
|
||||
ListCityMapCameraStatisticsRequest::ListCityMapCameraStatisticsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCityMapCameraStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCityMapCameraStatisticsRequest::~ListCityMapCameraStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string ListCityMapCameraStatisticsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraStatisticsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraStatisticsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraStatisticsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListCityMapCameraStatisticsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraStatisticsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraStatisticsRequest::getDataSourceIdList()const
|
||||
{
|
||||
return dataSourceIdList_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraStatisticsRequest::setDataSourceIdList(const std::string& dataSourceIdList)
|
||||
{
|
||||
dataSourceIdList_ = dataSourceIdList;
|
||||
setBodyParameter("DataSourceIdList", dataSourceIdList);
|
||||
}
|
||||
|
||||
long ListCityMapCameraStatisticsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCityMapCameraStatisticsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
114
cdrs/src/model/ListCityMapCameraStatisticsResult.cc
Normal file
114
cdrs/src/model/ListCityMapCameraStatisticsResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCityMapCameraStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCityMapCameraStatisticsResult::ListCityMapCameraStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCityMapCameraStatisticsResult::ListCityMapCameraStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCityMapCameraStatisticsResult::~ListCityMapCameraStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListCityMapCameraStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
if(!valueDataDatas["DataSourceName"].isNull())
|
||||
dataObject.dataSourceName = valueDataDatas["DataSourceName"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["AdultValue"].isNull())
|
||||
dataObject.adultValue = valueDataDatas["AdultValue"].asString();
|
||||
if(!valueDataDatas["WomanValue"].isNull())
|
||||
dataObject.womanValue = valueDataDatas["WomanValue"].asString();
|
||||
if(!valueDataDatas["MotorValue"].isNull())
|
||||
dataObject.motorValue = valueDataDatas["MotorValue"].asString();
|
||||
if(!valueDataDatas["ManValue"].isNull())
|
||||
dataObject.manValue = valueDataDatas["ManValue"].asString();
|
||||
if(!valueDataDatas["OldValue"].isNull())
|
||||
dataObject.oldValue = valueDataDatas["OldValue"].asString();
|
||||
if(!valueDataDatas["ChildValue"].isNull())
|
||||
dataObject.childValue = valueDataDatas["ChildValue"].asString();
|
||||
if(!valueDataDatas["StatisticTime"].isNull())
|
||||
dataObject.statisticTime = valueDataDatas["StatisticTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListCityMapCameraStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraStatisticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListCityMapCameraStatisticsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListCityMapCameraStatisticsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCityMapCameraStatisticsResult::Datas> ListCityMapCameraStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCityMapCameraStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
cdrs/src/model/ListCityMapImageDetailsRequest.cc
Normal file
62
cdrs/src/model/ListCityMapImageDetailsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListCityMapImageDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCityMapImageDetailsRequest;
|
||||
|
||||
ListCityMapImageDetailsRequest::ListCityMapImageDetailsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCityMapImageDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCityMapImageDetailsRequest::~ListCityMapImageDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string ListCityMapImageDetailsRequest::getTimeInterval()const
|
||||
{
|
||||
return timeInterval_;
|
||||
}
|
||||
|
||||
void ListCityMapImageDetailsRequest::setTimeInterval(const std::string& timeInterval)
|
||||
{
|
||||
timeInterval_ = timeInterval;
|
||||
setBodyParameter("TimeInterval", timeInterval);
|
||||
}
|
||||
|
||||
long ListCityMapImageDetailsRequest::getRecordNumber()const
|
||||
{
|
||||
return recordNumber_;
|
||||
}
|
||||
|
||||
void ListCityMapImageDetailsRequest::setRecordNumber(long recordNumber)
|
||||
{
|
||||
recordNumber_ = recordNumber;
|
||||
setBodyParameter("RecordNumber", std::to_string(recordNumber));
|
||||
}
|
||||
|
||||
std::string ListCityMapImageDetailsRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListCityMapImageDetailsRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
140
cdrs/src/model/ListCityMapImageDetailsResult.cc
Normal file
140
cdrs/src/model/ListCityMapImageDetailsResult.cc
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCityMapImageDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCityMapImageDetailsResult::ListCityMapImageDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCityMapImageDetailsResult::ListCityMapImageDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCityMapImageDetailsResult::~ListCityMapImageDetailsResult()
|
||||
{}
|
||||
|
||||
void ListCityMapImageDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["PersonTargetImageStoragePath"].isNull())
|
||||
dataObject.personTargetImageStoragePath = valueDataDatas["PersonTargetImageStoragePath"].asString();
|
||||
if(!valueDataDatas["AgeLowerLimit"].isNull())
|
||||
dataObject.ageLowerLimit = valueDataDatas["AgeLowerLimit"].asString();
|
||||
if(!valueDataDatas["AgeUpLimit"].isNull())
|
||||
dataObject.ageUpLimit = valueDataDatas["AgeUpLimit"].asString();
|
||||
if(!valueDataDatas["VehicleColor"].isNull())
|
||||
dataObject.vehicleColor = valueDataDatas["VehicleColor"].asString();
|
||||
if(!valueDataDatas["TrousersColor"].isNull())
|
||||
dataObject.trousersColor = valueDataDatas["TrousersColor"].asString();
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["AgeLowerLimitReliability"].isNull())
|
||||
dataObject.ageLowerLimitReliability = valueDataDatas["AgeLowerLimitReliability"].asString();
|
||||
if(!valueDataDatas["GenderCodeReliability"].isNull())
|
||||
dataObject.genderCodeReliability = valueDataDatas["GenderCodeReliability"].asString();
|
||||
if(!valueDataDatas["VehicleClassReliability"].isNull())
|
||||
dataObject.vehicleClassReliability = valueDataDatas["VehicleClassReliability"].asString();
|
||||
if(!valueDataDatas["RecordId"].isNull())
|
||||
dataObject.recordId = valueDataDatas["RecordId"].asString();
|
||||
if(!valueDataDatas["AgeCodeReliability"].isNull())
|
||||
dataObject.ageCodeReliability = valueDataDatas["AgeCodeReliability"].asString();
|
||||
if(!valueDataDatas["SourceImageStoragePath"].isNull())
|
||||
dataObject.sourceImageStoragePath = valueDataDatas["SourceImageStoragePath"].asString();
|
||||
if(!valueDataDatas["VehicleClass"].isNull())
|
||||
dataObject.vehicleClass = valueDataDatas["VehicleClass"].asString();
|
||||
if(!valueDataDatas["MotorTargetImageStoragePath"].isNull())
|
||||
dataObject.motorTargetImageStoragePath = valueDataDatas["MotorTargetImageStoragePath"].asString();
|
||||
if(!valueDataDatas["CoatColor"].isNull())
|
||||
dataObject.coatColor = valueDataDatas["CoatColor"].asString();
|
||||
if(!valueDataDatas["FaceTargetImageStoragePath"].isNull())
|
||||
dataObject.faceTargetImageStoragePath = valueDataDatas["FaceTargetImageStoragePath"].asString();
|
||||
if(!valueDataDatas["ShotTime"].isNull())
|
||||
dataObject.shotTime = valueDataDatas["ShotTime"].asString();
|
||||
if(!valueDataDatas["VehicleColorReliability"].isNull())
|
||||
dataObject.vehicleColorReliability = valueDataDatas["VehicleColorReliability"].asString();
|
||||
if(!valueDataDatas["TrousersColorReliability"].isNull())
|
||||
dataObject.trousersColorReliability = valueDataDatas["TrousersColorReliability"].asString();
|
||||
if(!valueDataDatas["CoatColorReliability"].isNull())
|
||||
dataObject.coatColorReliability = valueDataDatas["CoatColorReliability"].asString();
|
||||
if(!valueDataDatas["LeftTopX"].isNull())
|
||||
dataObject.leftTopX = valueDataDatas["LeftTopX"].asString();
|
||||
if(!valueDataDatas["LeftTopY"].isNull())
|
||||
dataObject.leftTopY = valueDataDatas["LeftTopY"].asString();
|
||||
if(!valueDataDatas["RightBottomX"].isNull())
|
||||
dataObject.rightBottomX = valueDataDatas["RightBottomX"].asString();
|
||||
if(!valueDataDatas["RightBottomY"].isNull())
|
||||
dataObject.rightBottomY = valueDataDatas["RightBottomY"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListCityMapImageDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCityMapImageDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListCityMapImageDetailsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListCityMapImageDetailsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCityMapImageDetailsResult::Datas> ListCityMapImageDetailsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCityMapImageDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
cdrs/src/model/ListCityMapPersonFlowRequest.cc
Normal file
106
cdrs/src/model/ListCityMapPersonFlowRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCityMapPersonFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCityMapPersonFlowRequest;
|
||||
|
||||
ListCityMapPersonFlowRequest::ListCityMapPersonFlowRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCityMapPersonFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCityMapPersonFlowRequest::~ListCityMapPersonFlowRequest()
|
||||
{}
|
||||
|
||||
std::string ListCityMapPersonFlowRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListCityMapPersonFlowRequest::getRange()const
|
||||
{
|
||||
return range_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setRange(const std::string& range)
|
||||
{
|
||||
range_ = range;
|
||||
setBodyParameter("Range", range);
|
||||
}
|
||||
|
||||
std::string ListCityMapPersonFlowRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListCityMapPersonFlowRequest::getOriginDataSourceIdList()const
|
||||
{
|
||||
return originDataSourceIdList_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setOriginDataSourceIdList(const std::map<std::string, std::string>& originDataSourceIdList)
|
||||
{
|
||||
originDataSourceIdList_ = originDataSourceIdList;
|
||||
setJsonParameters("OriginDataSourceIdList", originDataSourceIdList);
|
||||
}
|
||||
|
||||
long ListCityMapPersonFlowRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListCityMapPersonFlowRequest::getTargetDataSourceIdList()const
|
||||
{
|
||||
return targetDataSourceIdList_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setTargetDataSourceIdList(const std::string& targetDataSourceIdList)
|
||||
{
|
||||
targetDataSourceIdList_ = targetDataSourceIdList;
|
||||
setBodyParameter("TargetDataSourceIdList", targetDataSourceIdList);
|
||||
}
|
||||
|
||||
long ListCityMapPersonFlowRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCityMapPersonFlowRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
98
cdrs/src/model/ListCityMapPersonFlowResult.cc
Normal file
98
cdrs/src/model/ListCityMapPersonFlowResult.cc
Normal 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/cdrs/model/ListCityMapPersonFlowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCityMapPersonFlowResult::ListCityMapPersonFlowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCityMapPersonFlowResult::ListCityMapPersonFlowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCityMapPersonFlowResult::~ListCityMapPersonFlowResult()
|
||||
{}
|
||||
|
||||
void ListCityMapPersonFlowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["OriginDataSourceId"].isNull())
|
||||
dataObject.originDataSourceId = valueDataDatas["OriginDataSourceId"].asString();
|
||||
if(!valueDataDatas["TargetDataSourceId"].isNull())
|
||||
dataObject.targetDataSourceId = valueDataDatas["TargetDataSourceId"].asString();
|
||||
if(!valueDataDatas["FlowNumber"].isNull())
|
||||
dataObject.flowNumber = valueDataDatas["FlowNumber"].asString();
|
||||
if(!valueDataDatas["FlowDirection"].isNull())
|
||||
dataObject.flowDirection = valueDataDatas["FlowDirection"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListCityMapPersonFlowResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCityMapPersonFlowResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListCityMapPersonFlowResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListCityMapPersonFlowResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCityMapPersonFlowResult::Datas> ListCityMapPersonFlowResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCityMapPersonFlowResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/ListCityMapRangeStatisticRequest.cc
Normal file
95
cdrs/src/model/ListCityMapRangeStatisticRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListCityMapRangeStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCityMapRangeStatisticRequest;
|
||||
|
||||
ListCityMapRangeStatisticRequest::ListCityMapRangeStatisticRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCityMapRangeStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCityMapRangeStatisticRequest::~ListCityMapRangeStatisticRequest()
|
||||
{}
|
||||
|
||||
std::string ListCityMapRangeStatisticRequest::getLatitude()const
|
||||
{
|
||||
return latitude_;
|
||||
}
|
||||
|
||||
void ListCityMapRangeStatisticRequest::setLatitude(const std::string& latitude)
|
||||
{
|
||||
latitude_ = latitude;
|
||||
setBodyParameter("Latitude", latitude);
|
||||
}
|
||||
|
||||
std::string ListCityMapRangeStatisticRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCityMapRangeStatisticRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long ListCityMapRangeStatisticRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCityMapRangeStatisticRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListCityMapRangeStatisticRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCityMapRangeStatisticRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListCityMapRangeStatisticRequest::getRadius()const
|
||||
{
|
||||
return radius_;
|
||||
}
|
||||
|
||||
void ListCityMapRangeStatisticRequest::setRadius(int radius)
|
||||
{
|
||||
radius_ = radius;
|
||||
setBodyParameter("Radius", std::to_string(radius));
|
||||
}
|
||||
|
||||
std::string ListCityMapRangeStatisticRequest::getLongitude()const
|
||||
{
|
||||
return longitude_;
|
||||
}
|
||||
|
||||
void ListCityMapRangeStatisticRequest::setLongitude(const std::string& longitude)
|
||||
{
|
||||
longitude_ = longitude;
|
||||
setBodyParameter("Longitude", longitude);
|
||||
}
|
||||
|
||||
112
cdrs/src/model/ListCityMapRangeStatisticResult.cc
Normal file
112
cdrs/src/model/ListCityMapRangeStatisticResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCityMapRangeStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCityMapRangeStatisticResult::ListCityMapRangeStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCityMapRangeStatisticResult::ListCityMapRangeStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCityMapRangeStatisticResult::~ListCityMapRangeStatisticResult()
|
||||
{}
|
||||
|
||||
void ListCityMapRangeStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
if(!valueDataDatas["DataSourceName"].isNull())
|
||||
dataObject.dataSourceName = valueDataDatas["DataSourceName"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["AdultValue"].isNull())
|
||||
dataObject.adultValue = valueDataDatas["AdultValue"].asString();
|
||||
if(!valueDataDatas["WomanValue"].isNull())
|
||||
dataObject.womanValue = valueDataDatas["WomanValue"].asString();
|
||||
if(!valueDataDatas["MotorValue"].isNull())
|
||||
dataObject.motorValue = valueDataDatas["MotorValue"].asString();
|
||||
if(!valueDataDatas["ManValue"].isNull())
|
||||
dataObject.manValue = valueDataDatas["ManValue"].asString();
|
||||
if(!valueDataDatas["OldValue"].isNull())
|
||||
dataObject.oldValue = valueDataDatas["OldValue"].asString();
|
||||
if(!valueDataDatas["ChildValue"].isNull())
|
||||
dataObject.childValue = valueDataDatas["ChildValue"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListCityMapRangeStatisticResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCityMapRangeStatisticResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListCityMapRangeStatisticResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListCityMapRangeStatisticResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCityMapRangeStatisticResult::Datas> ListCityMapRangeStatisticResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCityMapRangeStatisticResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
cdrs/src/model/ListDataStatisticsByDayRequest.cc
Normal file
62
cdrs/src/model/ListDataStatisticsByDayRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListDataStatisticsByDayRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDataStatisticsByDayRequest;
|
||||
|
||||
ListDataStatisticsByDayRequest::ListDataStatisticsByDayRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDataStatisticsByDay")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDataStatisticsByDayRequest::~ListDataStatisticsByDayRequest()
|
||||
{}
|
||||
|
||||
std::string ListDataStatisticsByDayRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListDataStatisticsByDayRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsByDayRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListDataStatisticsByDayRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsByDayRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListDataStatisticsByDayRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
104
cdrs/src/model/ListDataStatisticsByDayResult.cc
Normal file
104
cdrs/src/model/ListDataStatisticsByDayResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListDataStatisticsByDayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDataStatisticsByDayResult::ListDataStatisticsByDayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDataStatisticsByDayResult::ListDataStatisticsByDayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDataStatisticsByDayResult::~ListDataStatisticsByDayResult()
|
||||
{}
|
||||
|
||||
void ListDataStatisticsByDayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Date"].isNull())
|
||||
dataObject.date = valueDataDatas["Date"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["FaceNumber"].isNull())
|
||||
dataObject.faceNumber = std::stoi(valueDataDatas["FaceNumber"].asString());
|
||||
if(!valueDataDatas["BodyNumber"].isNull())
|
||||
dataObject.bodyNumber = std::stoi(valueDataDatas["BodyNumber"].asString());
|
||||
if(!valueDataDatas["MotorNumber"].isNull())
|
||||
dataObject.motorNumber = std::stoi(valueDataDatas["MotorNumber"].asString());
|
||||
if(!valueDataDatas["NonMotorNumber"].isNull())
|
||||
dataObject.nonMotorNumber = std::stoi(valueDataDatas["NonMotorNumber"].asString());
|
||||
if(!valueDataDatas["TotalNumber"].isNull())
|
||||
dataObject.totalNumber = std::stoi(valueDataDatas["TotalNumber"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDataStatisticsByDayResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsByDayResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListDataStatisticsByDayResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListDataStatisticsByDayResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListDataStatisticsByDayResult::Datas> ListDataStatisticsByDayResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsByDayResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
cdrs/src/model/ListDataStatisticsRequest.cc
Normal file
51
cdrs/src/model/ListDataStatisticsRequest.cc
Normal 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/cdrs/model/ListDataStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDataStatisticsRequest;
|
||||
|
||||
ListDataStatisticsRequest::ListDataStatisticsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDataStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDataStatisticsRequest::~ListDataStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDataStatisticsRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListDataStatisticsRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsRequest::getBackCategory()const
|
||||
{
|
||||
return backCategory_;
|
||||
}
|
||||
|
||||
void ListDataStatisticsRequest::setBackCategory(const std::string& backCategory)
|
||||
{
|
||||
backCategory_ = backCategory;
|
||||
setBodyParameter("BackCategory", backCategory);
|
||||
}
|
||||
|
||||
94
cdrs/src/model/ListDataStatisticsResult.cc
Normal file
94
cdrs/src/model/ListDataStatisticsResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListDataStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDataStatisticsResult::ListDataStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDataStatisticsResult::ListDataStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDataStatisticsResult::~ListDataStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListDataStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["Number"].isNull())
|
||||
dataObject.number = valueDataDatas["Number"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDataStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListDataStatisticsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListDataStatisticsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListDataStatisticsResult::Datas> ListDataStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDataStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListDeviceDetailRequest.cc
Normal file
73
cdrs/src/model/ListDeviceDetailRequest.cc
Normal 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/cdrs/model/ListDeviceDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDeviceDetailRequest;
|
||||
|
||||
ListDeviceDetailRequest::ListDeviceDetailRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDeviceDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeviceDetailRequest::~ListDeviceDetailRequest()
|
||||
{}
|
||||
|
||||
std::string ListDeviceDetailRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListDeviceDetailRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long ListDeviceDetailRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDeviceDetailRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListDeviceDetailRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListDeviceDetailRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
long ListDeviceDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDeviceDetailRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
104
cdrs/src/model/ListDeviceDetailResult.cc
Normal file
104
cdrs/src/model/ListDeviceDetailResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListDeviceDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDeviceDetailResult::ListDeviceDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeviceDetailResult::ListDeviceDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeviceDetailResult::~ListDeviceDetailResult()
|
||||
{}
|
||||
|
||||
void ListDeviceDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["DataSourceName"].isNull())
|
||||
dataObject.dataSourceName = valueDataDatas["DataSourceName"].asString();
|
||||
if(!valueDataDatas["DataSourcePoi"].isNull())
|
||||
dataObject.dataSourcePoi = valueDataDatas["DataSourcePoi"].asString();
|
||||
if(!valueDataDatas["NearPoi"].isNull())
|
||||
dataObject.nearPoi = valueDataDatas["NearPoi"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDeviceDetailResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDeviceDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListDeviceDetailResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListDeviceDetailResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListDeviceDetailResult::Datas> ListDeviceDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDeviceDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListDeviceGenderStatisticsRequest.cc
Normal file
73
cdrs/src/model/ListDeviceGenderStatisticsRequest.cc
Normal 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/cdrs/model/ListDeviceGenderStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDeviceGenderStatisticsRequest;
|
||||
|
||||
ListDeviceGenderStatisticsRequest::ListDeviceGenderStatisticsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDeviceGenderStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeviceGenderStatisticsRequest::~ListDeviceGenderStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDeviceGenderStatisticsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListDeviceGenderStatisticsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListDeviceGenderStatisticsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListDeviceGenderStatisticsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListDeviceGenderStatisticsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListDeviceGenderStatisticsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListDeviceGenderStatisticsRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListDeviceGenderStatisticsRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
82
cdrs/src/model/ListDeviceGenderStatisticsResult.cc
Normal file
82
cdrs/src/model/ListDeviceGenderStatisticsResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListDeviceGenderStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDeviceGenderStatisticsResult::ListDeviceGenderStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeviceGenderStatisticsResult::ListDeviceGenderStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeviceGenderStatisticsResult::~ListDeviceGenderStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListDeviceGenderStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["Number"].isNull())
|
||||
dataObject.number = valueDataDatas["Number"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDeviceGenderStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDeviceGenderStatisticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListDeviceGenderStatisticsResult::Datas> ListDeviceGenderStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDeviceGenderStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
cdrs/src/model/ListDevicePersonRequest.cc
Normal file
106
cdrs/src/model/ListDevicePersonRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListDevicePersonRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDevicePersonRequest;
|
||||
|
||||
ListDevicePersonRequest::ListDevicePersonRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDevicePerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDevicePersonRequest::~ListDevicePersonRequest()
|
||||
{}
|
||||
|
||||
std::string ListDevicePersonRequest::getStatisticsType()const
|
||||
{
|
||||
return statisticsType_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setStatisticsType(const std::string& statisticsType)
|
||||
{
|
||||
statisticsType_ = statisticsType;
|
||||
setBodyParameter("StatisticsType", statisticsType);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListDevicePersonRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListDevicePersonRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
long ListDevicePersonRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDevicePersonRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
100
cdrs/src/model/ListDevicePersonResult.cc
Normal file
100
cdrs/src/model/ListDevicePersonResult.cc
Normal 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/cdrs/model/ListDevicePersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDevicePersonResult::ListDevicePersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDevicePersonResult::ListDevicePersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDevicePersonResult::~ListDevicePersonResult()
|
||||
{}
|
||||
|
||||
void ListDevicePersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["FreqNum"].isNull())
|
||||
dataObject.freqNum = valueDataDatas["FreqNum"].asString();
|
||||
if(!valueDataDatas["TargetPicUrlPath"].isNull())
|
||||
dataObject.targetPicUrlPath = valueDataDatas["TargetPicUrlPath"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDevicePersonResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDevicePersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListDevicePersonResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListDevicePersonResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListDevicePersonResult::Datas> ListDevicePersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDevicePersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
cdrs/src/model/ListDevicePersonStatisticsRequest.cc
Normal file
84
cdrs/src/model/ListDevicePersonStatisticsRequest.cc
Normal 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/cdrs/model/ListDevicePersonStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDevicePersonStatisticsRequest;
|
||||
|
||||
ListDevicePersonStatisticsRequest::ListDevicePersonStatisticsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDevicePersonStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDevicePersonStatisticsRequest::~ListDevicePersonStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDevicePersonStatisticsRequest::getStatisticsType()const
|
||||
{
|
||||
return statisticsType_;
|
||||
}
|
||||
|
||||
void ListDevicePersonStatisticsRequest::setStatisticsType(const std::string& statisticsType)
|
||||
{
|
||||
statisticsType_ = statisticsType;
|
||||
setBodyParameter("StatisticsType", statisticsType);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonStatisticsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListDevicePersonStatisticsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonStatisticsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListDevicePersonStatisticsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonStatisticsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListDevicePersonStatisticsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListDevicePersonStatisticsRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListDevicePersonStatisticsRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
82
cdrs/src/model/ListDevicePersonStatisticsResult.cc
Normal file
82
cdrs/src/model/ListDevicePersonStatisticsResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListDevicePersonStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDevicePersonStatisticsResult::ListDevicePersonStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDevicePersonStatisticsResult::ListDevicePersonStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDevicePersonStatisticsResult::~ListDevicePersonStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListDevicePersonStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["ShotTime"].isNull())
|
||||
dataObject.shotTime = valueDataDatas["ShotTime"].asString();
|
||||
if(!valueDataDatas["Number"].isNull())
|
||||
dataObject.number = valueDataDatas["Number"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDevicePersonStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDevicePersonStatisticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListDevicePersonStatisticsResult::Datas> ListDevicePersonStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDevicePersonStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
cdrs/src/model/ListMapRouteDetailsRequest.cc
Normal file
40
cdrs/src/model/ListMapRouteDetailsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListMapRouteDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListMapRouteDetailsRequest;
|
||||
|
||||
ListMapRouteDetailsRequest::ListMapRouteDetailsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListMapRouteDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMapRouteDetailsRequest::~ListMapRouteDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string ListMapRouteDetailsRequest::getRouteList()const
|
||||
{
|
||||
return routeList_;
|
||||
}
|
||||
|
||||
void ListMapRouteDetailsRequest::setRouteList(const std::string& routeList)
|
||||
{
|
||||
routeList_ = routeList;
|
||||
setBodyParameter("RouteList", routeList);
|
||||
}
|
||||
|
||||
98
cdrs/src/model/ListMapRouteDetailsResult.cc
Normal file
98
cdrs/src/model/ListMapRouteDetailsResult.cc
Normal 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/cdrs/model/ListMapRouteDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListMapRouteDetailsResult::ListMapRouteDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMapRouteDetailsResult::ListMapRouteDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMapRouteDetailsResult::~ListMapRouteDetailsResult()
|
||||
{}
|
||||
|
||||
void ListMapRouteDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Destination"].isNull())
|
||||
dataObject.destination = valueDataDatas["Destination"].asString();
|
||||
if(!valueDataDatas["Origin"].isNull())
|
||||
dataObject.origin = valueDataDatas["Origin"].asString();
|
||||
if(!valueDataDatas["Route"].isNull())
|
||||
dataObject.route = valueDataDatas["Route"].asString();
|
||||
if(!valueDataDatas["Type"].isNull())
|
||||
dataObject.type = valueDataDatas["Type"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListMapRouteDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListMapRouteDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListMapRouteDetailsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListMapRouteDetailsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListMapRouteDetailsResult::Datas> ListMapRouteDetailsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListMapRouteDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/ListPersonDetailsRequest.cc
Normal file
95
cdrs/src/model/ListPersonDetailsRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListPersonDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListPersonDetailsRequest;
|
||||
|
||||
ListPersonDetailsRequest::ListPersonDetailsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPersonDetailsRequest::~ListPersonDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonDetailsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListPersonDetailsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListPersonDetailsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListPersonDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListPersonDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPersonDetailsRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void ListPersonDetailsRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
120
cdrs/src/model/ListPersonDetailsResult.cc
Normal file
120
cdrs/src/model/ListPersonDetailsResult.cc
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListPersonDetailsResult::ListPersonDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPersonDetailsResult::ListPersonDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPersonDetailsResult::~ListPersonDetailsResult()
|
||||
{}
|
||||
|
||||
void ListPersonDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["Age"].isNull())
|
||||
dataObject.age = valueDataDatas["Age"].asString();
|
||||
if(!valueDataDatas["Profession"].isNull())
|
||||
dataObject.profession = valueDataDatas["Profession"].asString();
|
||||
if(!valueDataDatas["Address"].isNull())
|
||||
dataObject.address = valueDataDatas["Address"].asString();
|
||||
if(!valueDataDatas["Transportation"].isNull())
|
||||
dataObject.transportation = valueDataDatas["Transportation"].asString();
|
||||
if(!valueDataDatas["PersonType"].isNull())
|
||||
dataObject.personType = valueDataDatas["PersonType"].asString();
|
||||
if(!valueDataDatas["HotSpotAddress"].isNull())
|
||||
dataObject.hotSpotAddress = valueDataDatas["HotSpotAddress"].asString();
|
||||
if(!valueDataDatas["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataDatas["UpdateTime"].asString();
|
||||
if(!valueDataDatas["PreferredColor"].isNull())
|
||||
dataObject.preferredColor = valueDataDatas["PreferredColor"].asString();
|
||||
if(!valueDataDatas["FaceSourceImage"].isNull())
|
||||
dataObject.faceSourceImage = valueDataDatas["FaceSourceImage"].asString();
|
||||
if(!valueDataDatas["FaceTargetImage"].isNull())
|
||||
dataObject.faceTargetImage = valueDataDatas["FaceTargetImage"].asString();
|
||||
if(!valueDataDatas["BodySourceImage"].isNull())
|
||||
dataObject.bodySourceImage = valueDataDatas["BodySourceImage"].asString();
|
||||
if(!valueDataDatas["BodyTargetImage"].isNull())
|
||||
dataObject.bodyTargetImage = valueDataDatas["BodyTargetImage"].asString();
|
||||
if(!valueDataDatas["PrefOutTime"].isNull())
|
||||
dataObject.prefOutTime = valueDataDatas["PrefOutTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListPersonDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListPersonDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListPersonDetailsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListPersonDetailsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonDetailsResult::Datas> ListPersonDetailsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPersonDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
117
cdrs/src/model/ListPersonResultRequest.cc
Normal file
117
cdrs/src/model/ListPersonResultRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonResultRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListPersonResultRequest;
|
||||
|
||||
ListPersonResultRequest::ListPersonResultRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPersonResultRequest::~ListPersonResultRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonResultRequest::getProfession()const
|
||||
{
|
||||
return profession_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setProfession(const std::string& profession)
|
||||
{
|
||||
profession_ = profession;
|
||||
setBodyParameter("Profession", profession);
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getGender()const
|
||||
{
|
||||
return gender_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setGender(const std::string& gender)
|
||||
{
|
||||
gender_ = gender;
|
||||
setBodyParameter("Gender", gender);
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListPersonResultRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListPersonResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getAge()const
|
||||
{
|
||||
return age_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setAge(const std::string& age)
|
||||
{
|
||||
age_ = age;
|
||||
setBodyParameter("Age", age);
|
||||
}
|
||||
|
||||
108
cdrs/src/model/ListPersonResultResult.cc
Normal file
108
cdrs/src/model/ListPersonResultResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListPersonResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListPersonResultResult::ListPersonResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPersonResultResult::ListPersonResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPersonResultResult::~ListPersonResultResult()
|
||||
{}
|
||||
|
||||
void ListPersonResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["Age"].isNull())
|
||||
dataObject.age = valueDataDatas["Age"].asString();
|
||||
if(!valueDataDatas["Profession"].isNull())
|
||||
dataObject.profession = valueDataDatas["Profession"].asString();
|
||||
if(!valueDataDatas["Address"].isNull())
|
||||
dataObject.address = valueDataDatas["Address"].asString();
|
||||
if(!valueDataDatas["Transportation"].isNull())
|
||||
dataObject.transportation = valueDataDatas["Transportation"].asString();
|
||||
if(!valueDataDatas["PersonType"].isNull())
|
||||
dataObject.personType = valueDataDatas["PersonType"].asString();
|
||||
if(!valueDataDatas["HotSpotAddress"].isNull())
|
||||
dataObject.hotSpotAddress = valueDataDatas["HotSpotAddress"].asString();
|
||||
if(!valueDataDatas["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataDatas["UpdateTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListPersonResultResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListPersonResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListPersonResultResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListPersonResultResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonResultResult::Datas> ListPersonResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPersonResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListPersonTagRequest.cc
Normal file
73
cdrs/src/model/ListPersonTagRequest.cc
Normal 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/cdrs/model/ListPersonTagRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListPersonTagRequest;
|
||||
|
||||
ListPersonTagRequest::ListPersonTagRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPersonTagRequest::~ListPersonTagRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTagRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListPersonTagRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long ListPersonTagRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPersonTagRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListPersonTagRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
}
|
||||
|
||||
void ListPersonTagRequest::setTagCode(const std::string& tagCode)
|
||||
{
|
||||
tagCode_ = tagCode;
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
long ListPersonTagRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPersonTagRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
96
cdrs/src/model/ListPersonTagResult.cc
Normal file
96
cdrs/src/model/ListPersonTagResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListPersonTagResult::ListPersonTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPersonTagResult::ListPersonTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPersonTagResult::~ListPersonTagResult()
|
||||
{}
|
||||
|
||||
void ListPersonTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDatas["TagValue"].asString();
|
||||
if(!valueDataDatas["Value"].isNull())
|
||||
dataObject.value = valueDataDatas["Value"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListPersonTagResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListPersonTagResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListPersonTagResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListPersonTagResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonTagResult::Datas> ListPersonTagResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPersonTagResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListPersonTopRequest.cc
Normal file
73
cdrs/src/model/ListPersonTopRequest.cc
Normal 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/cdrs/model/ListPersonTopRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListPersonTopRequest;
|
||||
|
||||
ListPersonTopRequest::ListPersonTopRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonTop")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPersonTopRequest::~ListPersonTopRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTopRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListPersonTopRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void ListPersonTopRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
102
cdrs/src/model/ListPersonTopResult.cc
Normal file
102
cdrs/src/model/ListPersonTopResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonTopResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListPersonTopResult::ListPersonTopResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPersonTopResult::ListPersonTopResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPersonTopResult::~ListPersonTopResult()
|
||||
{}
|
||||
|
||||
void ListPersonTopResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["PoiId"].isNull())
|
||||
dataObject.poiId = valueDataDatas["PoiId"].asString();
|
||||
if(!valueDataDatas["PoiName"].isNull())
|
||||
dataObject.poiName = valueDataDatas["PoiName"].asString();
|
||||
if(!valueDataDatas["PassHour"].isNull())
|
||||
dataObject.passHour = valueDataDatas["PassHour"].asString();
|
||||
if(!valueDataDatas["Frequency"].isNull())
|
||||
dataObject.frequency = valueDataDatas["Frequency"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListPersonTopResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListPersonTopResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListPersonTopResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListPersonTopResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonTopResult::Datas> ListPersonTopResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPersonTopResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/ListPersonTrackRequest.cc
Normal file
95
cdrs/src/model/ListPersonTrackRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListPersonTrackRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListPersonTrackRequest;
|
||||
|
||||
ListPersonTrackRequest::ListPersonTrackRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonTrack")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPersonTrackRequest::~ListPersonTrackRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTrackRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListPersonTrackRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListPersonTrackRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListPersonTrackRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListPersonTrackRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPersonTrackRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void ListPersonTrackRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
118
cdrs/src/model/ListPersonTrackResult.cc
Normal file
118
cdrs/src/model/ListPersonTrackResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonTrackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListPersonTrackResult::ListPersonTrackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPersonTrackResult::ListPersonTrackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPersonTrackResult::~ListPersonTrackResult()
|
||||
{}
|
||||
|
||||
void ListPersonTrackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["DataSourceName"].isNull())
|
||||
dataObject.dataSourceName = valueDataDatas["DataSourceName"].asString();
|
||||
if(!valueDataDatas["PicUrlPath"].isNull())
|
||||
dataObject.picUrlPath = valueDataDatas["PicUrlPath"].asString();
|
||||
if(!valueDataDatas["TargetPicUrlPath"].isNull())
|
||||
dataObject.targetPicUrlPath = valueDataDatas["TargetPicUrlPath"].asString();
|
||||
if(!valueDataDatas["RightBottomY"].isNull())
|
||||
dataObject.rightBottomY = valueDataDatas["RightBottomY"].asString();
|
||||
if(!valueDataDatas["RightBottomX"].isNull())
|
||||
dataObject.rightBottomX = valueDataDatas["RightBottomX"].asString();
|
||||
if(!valueDataDatas["LeftTopY"].isNull())
|
||||
dataObject.leftTopY = valueDataDatas["LeftTopY"].asString();
|
||||
if(!valueDataDatas["LeftTopX"].isNull())
|
||||
dataObject.leftTopX = valueDataDatas["LeftTopX"].asString();
|
||||
if(!valueDataDatas["ShotTime"].isNull())
|
||||
dataObject.shotTime = valueDataDatas["ShotTime"].asString();
|
||||
if(!valueDataDatas["Order"].isNull())
|
||||
dataObject.order = valueDataDatas["Order"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListPersonTrackResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListPersonTrackResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListPersonTrackResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListPersonTrackResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonTrackResult::Datas> ListPersonTrackResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPersonTrackResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
cdrs/src/model/ListRangeDeviceRequest.cc
Normal file
84
cdrs/src/model/ListRangeDeviceRequest.cc
Normal 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/cdrs/model/ListRangeDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListRangeDeviceRequest;
|
||||
|
||||
ListRangeDeviceRequest::ListRangeDeviceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListRangeDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListRangeDeviceRequest::~ListRangeDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string ListRangeDeviceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListRangeDeviceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long ListRangeDeviceRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListRangeDeviceRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListRangeDeviceRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListRangeDeviceRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
long ListRangeDeviceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListRangeDeviceRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListRangeDeviceRequest::getRadius()const
|
||||
{
|
||||
return radius_;
|
||||
}
|
||||
|
||||
void ListRangeDeviceRequest::setRadius(int radius)
|
||||
{
|
||||
radius_ = radius;
|
||||
setBodyParameter("Radius", std::to_string(radius));
|
||||
}
|
||||
|
||||
106
cdrs/src/model/ListRangeDeviceResult.cc
Normal file
106
cdrs/src/model/ListRangeDeviceResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListRangeDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListRangeDeviceResult::ListRangeDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRangeDeviceResult::ListRangeDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRangeDeviceResult::~ListRangeDeviceResult()
|
||||
{}
|
||||
|
||||
void ListRangeDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["NearPoi"].isNull())
|
||||
dataObject.nearPoi = valueDataDatas["NearPoi"].asString();
|
||||
if(!valueDataDatas["Distance"].isNull())
|
||||
dataObject.distance = valueDataDatas["Distance"].asString();
|
||||
if(!valueDataDatas["DataSourceIdPoi"].isNull())
|
||||
dataObject.dataSourceIdPoi = valueDataDatas["DataSourceIdPoi"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["DataSourceIdName"].isNull())
|
||||
dataObject.dataSourceIdName = valueDataDatas["DataSourceIdName"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListRangeDeviceResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListRangeDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListRangeDeviceResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListRangeDeviceResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListRangeDeviceResult::Datas> ListRangeDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListRangeDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
cdrs/src/model/ListStorageStatisticsRequest.cc
Normal file
40
cdrs/src/model/ListStorageStatisticsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListStorageStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListStorageStatisticsRequest;
|
||||
|
||||
ListStorageStatisticsRequest::ListStorageStatisticsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListStorageStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListStorageStatisticsRequest::~ListStorageStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string ListStorageStatisticsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListStorageStatisticsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
86
cdrs/src/model/ListStorageStatisticsResult.cc
Normal file
86
cdrs/src/model/ListStorageStatisticsResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListStorageStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListStorageStatisticsResult::ListStorageStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListStorageStatisticsResult::ListStorageStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListStorageStatisticsResult::~ListStorageStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListStorageStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["Number"].isNull())
|
||||
dataObject.number = valueDataDatas["Number"].asString();
|
||||
if(!valueDataDatas["TotalStore"].isNull())
|
||||
dataObject.totalStore = valueDataDatas["TotalStore"].asString();
|
||||
if(!valueDataDatas["UnusedStore"].isNull())
|
||||
dataObject.unusedStore = valueDataDatas["UnusedStore"].asString();
|
||||
if(!valueDataDatas["UsedStore"].isNull())
|
||||
dataObject.usedStore = valueDataDatas["UsedStore"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListStorageStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListStorageStatisticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListStorageStatisticsResult::Datas> ListStorageStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListStorageStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
cdrs/src/model/ListStructureStatisticsRequest.cc
Normal file
51
cdrs/src/model/ListStructureStatisticsRequest.cc
Normal 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/cdrs/model/ListStructureStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListStructureStatisticsRequest;
|
||||
|
||||
ListStructureStatisticsRequest::ListStructureStatisticsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListStructureStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListStructureStatisticsRequest::~ListStructureStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string ListStructureStatisticsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListStructureStatisticsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListStructureStatisticsRequest::getBackCategory()const
|
||||
{
|
||||
return backCategory_;
|
||||
}
|
||||
|
||||
void ListStructureStatisticsRequest::setBackCategory(const std::string& backCategory)
|
||||
{
|
||||
backCategory_ = backCategory;
|
||||
setBodyParameter("BackCategory", backCategory);
|
||||
}
|
||||
|
||||
94
cdrs/src/model/ListStructureStatisticsResult.cc
Normal file
94
cdrs/src/model/ListStructureStatisticsResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListStructureStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListStructureStatisticsResult::ListStructureStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListStructureStatisticsResult::ListStructureStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListStructureStatisticsResult::~ListStructureStatisticsResult()
|
||||
{}
|
||||
|
||||
void ListStructureStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Number"].isNull())
|
||||
dataObject.number = valueDataDatas["Number"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListStructureStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListStructureStatisticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListStructureStatisticsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListStructureStatisticsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListStructureStatisticsResult::Datas> ListStructureStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListStructureStatisticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/ListVehicleDetailsRequest.cc
Normal file
95
cdrs/src/model/ListVehicleDetailsRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListVehicleDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListVehicleDetailsRequest;
|
||||
|
||||
ListVehicleDetailsRequest::ListVehicleDetailsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListVehicleDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVehicleDetailsRequest::~ListVehicleDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVehicleDetailsRequest::getPlateId()const
|
||||
{
|
||||
return plateId_;
|
||||
}
|
||||
|
||||
void ListVehicleDetailsRequest::setPlateId(const std::string& plateId)
|
||||
{
|
||||
plateId_ = plateId;
|
||||
setBodyParameter("PlateId", plateId);
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListVehicleDetailsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListVehicleDetailsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListVehicleDetailsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListVehicleDetailsRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListVehicleDetailsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
116
cdrs/src/model/ListVehicleDetailsResult.cc
Normal file
116
cdrs/src/model/ListVehicleDetailsResult.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListVehicleDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListVehicleDetailsResult::ListVehicleDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVehicleDetailsResult::ListVehicleDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVehicleDetailsResult::~ListVehicleDetailsResult()
|
||||
{}
|
||||
|
||||
void ListVehicleDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["VehicleId"].isNull())
|
||||
dataObject.vehicleId = valueDataDatas["VehicleId"].asString();
|
||||
if(!valueDataDatas["VehicleColor"].isNull())
|
||||
dataObject.vehicleColor = valueDataDatas["VehicleColor"].asString();
|
||||
if(!valueDataDatas["TargetImageStoragePath"].isNull())
|
||||
dataObject.targetImageStoragePath = valueDataDatas["TargetImageStoragePath"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["PersonType"].isNull())
|
||||
dataObject.personType = valueDataDatas["PersonType"].asString();
|
||||
if(!valueDataDatas["PrefOutTime"].isNull())
|
||||
dataObject.prefOutTime = valueDataDatas["PrefOutTime"].asString();
|
||||
if(!valueDataDatas["PopularPoi"].isNull())
|
||||
dataObject.popularPoi = valueDataDatas["PopularPoi"].asString();
|
||||
if(!valueDataDatas["PopularAddress"].isNull())
|
||||
dataObject.popularAddress = valueDataDatas["PopularAddress"].asString();
|
||||
if(!valueDataDatas["SourceImageStoragePath"].isNull())
|
||||
dataObject.sourceImageStoragePath = valueDataDatas["SourceImageStoragePath"].asString();
|
||||
if(!valueDataDatas["VehicleClass"].isNull())
|
||||
dataObject.vehicleClass = valueDataDatas["VehicleClass"].asString();
|
||||
if(!valueDataDatas["VehicleApplication"].isNull())
|
||||
dataObject.vehicleApplication = valueDataDatas["VehicleApplication"].asString();
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["PlateId"].isNull())
|
||||
dataObject.plateId = valueDataDatas["PlateId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListVehicleDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListVehicleDetailsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListVehicleDetailsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListVehicleDetailsResult::Datas> ListVehicleDetailsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListVehicleDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
117
cdrs/src/model/ListVehicleResultsRequest.cc
Normal file
117
cdrs/src/model/ListVehicleResultsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListVehicleResultsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListVehicleResultsRequest;
|
||||
|
||||
ListVehicleResultsRequest::ListVehicleResultsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListVehicleResults")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVehicleResultsRequest::~ListVehicleResultsRequest()
|
||||
{}
|
||||
|
||||
std::string ListVehicleResultsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsRequest::getVehicleColor()const
|
||||
{
|
||||
return vehicleColor_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setVehicleColor(const std::string& vehicleColor)
|
||||
{
|
||||
vehicleColor_ = vehicleColor;
|
||||
setBodyParameter("VehicleColor", vehicleColor);
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsRequest::getVehicleApplication()const
|
||||
{
|
||||
return vehicleApplication_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setVehicleApplication(const std::string& vehicleApplication)
|
||||
{
|
||||
vehicleApplication_ = vehicleApplication;
|
||||
setBodyParameter("VehicleApplication", vehicleApplication);
|
||||
}
|
||||
|
||||
long ListVehicleResultsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsRequest::getVehicleClass()const
|
||||
{
|
||||
return vehicleClass_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setVehicleClass(const std::string& vehicleClass)
|
||||
{
|
||||
vehicleClass_ = vehicleClass;
|
||||
setBodyParameter("VehicleClass", vehicleClass);
|
||||
}
|
||||
|
||||
long ListVehicleResultsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListVehicleResultsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
108
cdrs/src/model/ListVehicleResultsResult.cc
Normal file
108
cdrs/src/model/ListVehicleResultsResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListVehicleResultsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListVehicleResultsResult::ListVehicleResultsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVehicleResultsResult::ListVehicleResultsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVehicleResultsResult::~ListVehicleResultsResult()
|
||||
{}
|
||||
|
||||
void ListVehicleResultsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["VehicleId"].isNull())
|
||||
dataObject.vehicleId = valueDataDatas["VehicleId"].asString();
|
||||
if(!valueDataDatas["Gender"].isNull())
|
||||
dataObject.gender = valueDataDatas["Gender"].asString();
|
||||
if(!valueDataDatas["VehicleClass"].isNull())
|
||||
dataObject.vehicleClass = valueDataDatas["VehicleClass"].asString();
|
||||
if(!valueDataDatas["Profession"].isNull())
|
||||
dataObject.profession = valueDataDatas["Profession"].asString();
|
||||
if(!valueDataDatas["LiveAddress"].isNull())
|
||||
dataObject.liveAddress = valueDataDatas["LiveAddress"].asString();
|
||||
if(!valueDataDatas["PlateId"].isNull())
|
||||
dataObject.plateId = valueDataDatas["PlateId"].asString();
|
||||
if(!valueDataDatas["VehicleApplication"].isNull())
|
||||
dataObject.vehicleApplication = valueDataDatas["VehicleApplication"].asString();
|
||||
if(!valueDataDatas["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataDatas["UpdateTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListVehicleResultsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListVehicleResultsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListVehicleResultsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListVehicleResultsResult::Datas> ListVehicleResultsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListVehicleResultsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListVehicleTagDistributeRequest.cc
Normal file
73
cdrs/src/model/ListVehicleTagDistributeRequest.cc
Normal 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/cdrs/model/ListVehicleTagDistributeRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListVehicleTagDistributeRequest;
|
||||
|
||||
ListVehicleTagDistributeRequest::ListVehicleTagDistributeRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListVehicleTagDistribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVehicleTagDistributeRequest::~ListVehicleTagDistributeRequest()
|
||||
{}
|
||||
|
||||
std::string ListVehicleTagDistributeRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListVehicleTagDistributeRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListVehicleTagDistributeRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListVehicleTagDistributeRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleTagDistributeRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListVehicleTagDistributeRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleTagDistributeRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
}
|
||||
|
||||
void ListVehicleTagDistributeRequest::setTagCode(const std::string& tagCode)
|
||||
{
|
||||
tagCode_ = tagCode;
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
96
cdrs/src/model/ListVehicleTagDistributeResult.cc
Normal file
96
cdrs/src/model/ListVehicleTagDistributeResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListVehicleTagDistributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListVehicleTagDistributeResult::ListVehicleTagDistributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVehicleTagDistributeResult::ListVehicleTagDistributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVehicleTagDistributeResult::~ListVehicleTagDistributeResult()
|
||||
{}
|
||||
|
||||
void ListVehicleTagDistributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDatas["TagValue"].asString();
|
||||
if(!valueDataDatas["Value"].isNull())
|
||||
dataObject.value = valueDataDatas["Value"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListVehicleTagDistributeResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListVehicleTagDistributeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListVehicleTagDistributeResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListVehicleTagDistributeResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListVehicleTagDistributeResult::Datas> ListVehicleTagDistributeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListVehicleTagDistributeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListVehicleTopRequest.cc
Normal file
73
cdrs/src/model/ListVehicleTopRequest.cc
Normal 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/cdrs/model/ListVehicleTopRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListVehicleTopRequest;
|
||||
|
||||
ListVehicleTopRequest::ListVehicleTopRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListVehicleTop")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVehicleTopRequest::~ListVehicleTopRequest()
|
||||
{}
|
||||
|
||||
std::string ListVehicleTopRequest::getPlateId()const
|
||||
{
|
||||
return plateId_;
|
||||
}
|
||||
|
||||
void ListVehicleTopRequest::setPlateId(const std::string& plateId)
|
||||
{
|
||||
plateId_ = plateId;
|
||||
setBodyParameter("PlateId", plateId);
|
||||
}
|
||||
|
||||
std::string ListVehicleTopRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListVehicleTopRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListVehicleTopRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListVehicleTopRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleTopRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListVehicleTopRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
102
cdrs/src/model/ListVehicleTopResult.cc
Normal file
102
cdrs/src/model/ListVehicleTopResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListVehicleTopResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListVehicleTopResult::ListVehicleTopResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVehicleTopResult::ListVehicleTopResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVehicleTopResult::~ListVehicleTopResult()
|
||||
{}
|
||||
|
||||
void ListVehicleTopResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["VehicleId"].isNull())
|
||||
dataObject.vehicleId = valueDataDatas["VehicleId"].asString();
|
||||
if(!valueDataDatas["PoiId"].isNull())
|
||||
dataObject.poiId = valueDataDatas["PoiId"].asString();
|
||||
if(!valueDataDatas["PoiName"].isNull())
|
||||
dataObject.poiName = valueDataDatas["PoiName"].asString();
|
||||
if(!valueDataDatas["PassHour"].isNull())
|
||||
dataObject.passHour = valueDataDatas["PassHour"].asString();
|
||||
if(!valueDataDatas["Frequency"].isNull())
|
||||
dataObject.frequency = valueDataDatas["Frequency"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListVehicleTopResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListVehicleTopResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListVehicleTopResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListVehicleTopResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListVehicleTopResult::Datas> ListVehicleTopResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListVehicleTopResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/ListVehicleTrackRequest.cc
Normal file
73
cdrs/src/model/ListVehicleTrackRequest.cc
Normal 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/cdrs/model/ListVehicleTrackRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListVehicleTrackRequest;
|
||||
|
||||
ListVehicleTrackRequest::ListVehicleTrackRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListVehicleTrack")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListVehicleTrackRequest::~ListVehicleTrackRequest()
|
||||
{}
|
||||
|
||||
std::string ListVehicleTrackRequest::getPlateId()const
|
||||
{
|
||||
return plateId_;
|
||||
}
|
||||
|
||||
void ListVehicleTrackRequest::setPlateId(const std::string& plateId)
|
||||
{
|
||||
plateId_ = plateId;
|
||||
setBodyParameter("PlateId", plateId);
|
||||
}
|
||||
|
||||
std::string ListVehicleTrackRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListVehicleTrackRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListVehicleTrackRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListVehicleTrackRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleTrackRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListVehicleTrackRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
118
cdrs/src/model/ListVehicleTrackResult.cc
Normal file
118
cdrs/src/model/ListVehicleTrackResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListVehicleTrackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListVehicleTrackResult::ListVehicleTrackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListVehicleTrackResult::ListVehicleTrackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListVehicleTrackResult::~ListVehicleTrackResult()
|
||||
{}
|
||||
|
||||
void ListVehicleTrackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["PlateId"].isNull())
|
||||
dataObject.plateId = valueDataDatas["PlateId"].asString();
|
||||
if(!valueDataDatas["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDatas["CorpId"].asString();
|
||||
if(!valueDataDatas["DataSourceId"].isNull())
|
||||
dataObject.dataSourceId = valueDataDatas["DataSourceId"].asString();
|
||||
if(!valueDataDatas["DataSourceName"].isNull())
|
||||
dataObject.dataSourceName = valueDataDatas["DataSourceName"].asString();
|
||||
if(!valueDataDatas["PicUrlPath"].isNull())
|
||||
dataObject.picUrlPath = valueDataDatas["PicUrlPath"].asString();
|
||||
if(!valueDataDatas["TargetPicUrlPath"].isNull())
|
||||
dataObject.targetPicUrlPath = valueDataDatas["TargetPicUrlPath"].asString();
|
||||
if(!valueDataDatas["RightBottomY"].isNull())
|
||||
dataObject.rightBottomY = valueDataDatas["RightBottomY"].asString();
|
||||
if(!valueDataDatas["RightBottomX"].isNull())
|
||||
dataObject.rightBottomX = valueDataDatas["RightBottomX"].asString();
|
||||
if(!valueDataDatas["LeftTopY"].isNull())
|
||||
dataObject.leftTopY = valueDataDatas["LeftTopY"].asString();
|
||||
if(!valueDataDatas["LeftTopX"].isNull())
|
||||
dataObject.leftTopX = valueDataDatas["LeftTopX"].asString();
|
||||
if(!valueDataDatas["PassTime"].isNull())
|
||||
dataObject.passTime = valueDataDatas["PassTime"].asString();
|
||||
if(!valueDataDatas["Order"].isNull())
|
||||
dataObject.order = valueDataDatas["Order"].asString();
|
||||
if(!valueDataDatas["Latitude"].isNull())
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListVehicleTrackResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListVehicleTrackResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long ListVehicleTrackResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListVehicleTrackResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListVehicleTrackResult::Datas> ListVehicleTrackResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListVehicleTrackResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/RecognizeImageRequest.cc
Normal file
73
cdrs/src/model/RecognizeImageRequest.cc
Normal 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/cdrs/model/RecognizeImageRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::RecognizeImageRequest;
|
||||
|
||||
RecognizeImageRequest::RecognizeImageRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "RecognizeImage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RecognizeImageRequest::~RecognizeImageRequest()
|
||||
{}
|
||||
|
||||
std::string RecognizeImageRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void RecognizeImageRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string RecognizeImageRequest::getVendor()const
|
||||
{
|
||||
return vendor_;
|
||||
}
|
||||
|
||||
void RecognizeImageRequest::setVendor(const std::string& vendor)
|
||||
{
|
||||
vendor_ = vendor;
|
||||
setBodyParameter("Vendor", vendor);
|
||||
}
|
||||
|
||||
std::string RecognizeImageRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void RecognizeImageRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
std::string RecognizeImageRequest::getImageContent()const
|
||||
{
|
||||
return imageContent_;
|
||||
}
|
||||
|
||||
void RecognizeImageRequest::setImageContent(const std::string& imageContent)
|
||||
{
|
||||
imageContent_ = imageContent;
|
||||
setBodyParameter("ImageContent", imageContent);
|
||||
}
|
||||
|
||||
107
cdrs/src/model/RecognizeImageResult.cc
Normal file
107
cdrs/src/model/RecognizeImageResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/RecognizeImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
RecognizeImageResult::RecognizeImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RecognizeImageResult::RecognizeImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RecognizeImageResult::~RecognizeImageResult()
|
||||
{}
|
||||
|
||||
void RecognizeImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allBodyListNode = dataNode["BodyList"]["BodyListItem"];
|
||||
for (auto dataNodeBodyListBodyListItem : allBodyListNode)
|
||||
{
|
||||
Data::BodyListItem bodyListItemObject;
|
||||
if(!dataNodeBodyListBodyListItem["LeftTopX"].isNull())
|
||||
bodyListItemObject.leftTopX = std::stoi(dataNodeBodyListBodyListItem["LeftTopX"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["LeftTopY"].isNull())
|
||||
bodyListItemObject.leftTopY = std::stoi(dataNodeBodyListBodyListItem["LeftTopY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["RightBottomX"].isNull())
|
||||
bodyListItemObject.rightBottomX = std::stoi(dataNodeBodyListBodyListItem["RightBottomX"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["RightBottomY"].isNull())
|
||||
bodyListItemObject.rightBottomY = std::stoi(dataNodeBodyListBodyListItem["RightBottomY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["Feature"].isNull())
|
||||
bodyListItemObject.feature = dataNodeBodyListBodyListItem["Feature"].asString();
|
||||
data_.bodyList.push_back(bodyListItemObject);
|
||||
}
|
||||
auto allFaceListNode = dataNode["FaceList"]["FaceListItem"];
|
||||
for (auto dataNodeFaceListFaceListItem : allFaceListNode)
|
||||
{
|
||||
Data::FaceListItem faceListItemObject;
|
||||
if(!dataNodeFaceListFaceListItem["LeftTopX"].isNull())
|
||||
faceListItemObject.leftTopX = std::stoi(dataNodeFaceListFaceListItem["LeftTopX"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["LeftTopY"].isNull())
|
||||
faceListItemObject.leftTopY = std::stoi(dataNodeFaceListFaceListItem["LeftTopY"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["RightBottomX"].isNull())
|
||||
faceListItemObject.rightBottomX = std::stoi(dataNodeFaceListFaceListItem["RightBottomX"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["RightBottomY"].isNull())
|
||||
faceListItemObject.rightBottomY = std::stoi(dataNodeFaceListFaceListItem["RightBottomY"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["FaceQuality"].isNull())
|
||||
faceListItemObject.faceQuality = std::stof(dataNodeFaceListFaceListItem["FaceQuality"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["FaceKeyPointQuality"].isNull())
|
||||
faceListItemObject.faceKeyPointQuality = std::stof(dataNodeFaceListFaceListItem["FaceKeyPointQuality"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["Feature"].isNull())
|
||||
faceListItemObject.feature = dataNodeFaceListFaceListItem["Feature"].asString();
|
||||
data_.faceList.push_back(faceListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RecognizeImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
RecognizeImageResult::Data RecognizeImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RecognizeImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string RecognizeImageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
161
cdrs/src/model/SearchObjectRequest.cc
Normal file
161
cdrs/src/model/SearchObjectRequest.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/cdrs/model/SearchObjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::SearchObjectRequest;
|
||||
|
||||
SearchObjectRequest::SearchObjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "SearchObject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchObjectRequest::~SearchObjectRequest()
|
||||
{}
|
||||
|
||||
std::string SearchObjectRequest::getShotTimeEnd()const
|
||||
{
|
||||
return shotTimeEnd_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setShotTimeEnd(const std::string& shotTimeEnd)
|
||||
{
|
||||
shotTimeEnd_ = shotTimeEnd;
|
||||
setBodyParameter("ShotTimeEnd", shotTimeEnd);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
int SearchObjectRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getFeature()const
|
||||
{
|
||||
return feature_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setFeature(const std::string& feature)
|
||||
{
|
||||
feature_ = feature;
|
||||
setBodyParameter("Feature", feature);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getVendor()const
|
||||
{
|
||||
return vendor_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setVendor(const std::string& vendor)
|
||||
{
|
||||
vendor_ = vendor;
|
||||
setBodyParameter("Vendor", vendor);
|
||||
}
|
||||
|
||||
int SearchObjectRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getImageContent()const
|
||||
{
|
||||
return imageContent_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setImageContent(const std::string& imageContent)
|
||||
{
|
||||
imageContent_ = imageContent;
|
||||
setBodyParameter("ImageContent", imageContent);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getObjectType()const
|
||||
{
|
||||
return objectType_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setObjectType(const std::string& objectType)
|
||||
{
|
||||
objectType_ = objectType;
|
||||
setBodyParameter("ObjectType", objectType);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getDeviceList()const
|
||||
{
|
||||
return deviceList_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setDeviceList(const std::string& deviceList)
|
||||
{
|
||||
deviceList_ = deviceList;
|
||||
setBodyParameter("DeviceList", deviceList);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getAttributes()const
|
||||
{
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setAttributes(const std::string& attributes)
|
||||
{
|
||||
attributes_ = attributes;
|
||||
setBodyParameter("Attributes", attributes);
|
||||
}
|
||||
|
||||
std::string SearchObjectRequest::getShotTimeStart()const
|
||||
{
|
||||
return shotTimeStart_;
|
||||
}
|
||||
|
||||
void SearchObjectRequest::setShotTimeStart(const std::string& shotTimeStart)
|
||||
{
|
||||
shotTimeStart_ = shotTimeStart;
|
||||
setBodyParameter("ShotTimeStart", shotTimeStart);
|
||||
}
|
||||
|
||||
189
cdrs/src/model/SearchObjectResult.cc
Normal file
189
cdrs/src/model/SearchObjectResult.cc
Normal file
@@ -0,0 +1,189 @@
|
||||
/*
|
||||
* 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/cdrs/model/SearchObjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
SearchObjectResult::SearchObjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchObjectResult::SearchObjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchObjectResult::~SearchObjectResult()
|
||||
{}
|
||||
|
||||
void SearchObjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allBodyListNode = dataNode["BodyList"]["BodyListItem"];
|
||||
for (auto dataNodeBodyListBodyListItem : allBodyListNode)
|
||||
{
|
||||
Data::BodyListItem bodyListItemObject;
|
||||
if(!dataNodeBodyListBodyListItem["DeviceID"].isNull())
|
||||
bodyListItemObject.deviceID = dataNodeBodyListBodyListItem["DeviceID"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["ObjectType"].isNull())
|
||||
bodyListItemObject.objectType = dataNodeBodyListBodyListItem["ObjectType"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["LeftTopX"].isNull())
|
||||
bodyListItemObject.leftTopX = std::stoi(dataNodeBodyListBodyListItem["LeftTopX"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["LeftTopY"].isNull())
|
||||
bodyListItemObject.leftTopY = std::stoi(dataNodeBodyListBodyListItem["LeftTopY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["RightBottomX"].isNull())
|
||||
bodyListItemObject.rightBottomX = std::stoi(dataNodeBodyListBodyListItem["RightBottomX"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["RightBottomY"].isNull())
|
||||
bodyListItemObject.rightBottomY = std::stoi(dataNodeBodyListBodyListItem["RightBottomY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["Score"].isNull())
|
||||
bodyListItemObject.score = std::stof(dataNodeBodyListBodyListItem["Score"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["ShotTime"].isNull())
|
||||
bodyListItemObject.shotTime = dataNodeBodyListBodyListItem["ShotTime"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["SourceImageUrl"].isNull())
|
||||
bodyListItemObject.sourceImageUrl = dataNodeBodyListBodyListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["TargetImageUrl"].isNull())
|
||||
bodyListItemObject.targetImageUrl = dataNodeBodyListBodyListItem["TargetImageUrl"].asString();
|
||||
data_.bodyList.push_back(bodyListItemObject);
|
||||
}
|
||||
auto allFaceListNode = dataNode["FaceList"]["FaceListItem"];
|
||||
for (auto dataNodeFaceListFaceListItem : allFaceListNode)
|
||||
{
|
||||
Data::FaceListItem faceListItemObject;
|
||||
if(!dataNodeFaceListFaceListItem["DeviceID"].isNull())
|
||||
faceListItemObject.deviceID = dataNodeFaceListFaceListItem["DeviceID"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["ObjectType"].isNull())
|
||||
faceListItemObject.objectType = dataNodeFaceListFaceListItem["ObjectType"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["LeftTopX"].isNull())
|
||||
faceListItemObject.leftTopX = std::stoi(dataNodeFaceListFaceListItem["LeftTopX"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["LeftTopY"].isNull())
|
||||
faceListItemObject.leftTopY = std::stoi(dataNodeFaceListFaceListItem["LeftTopY"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["RightBottomX"].isNull())
|
||||
faceListItemObject.rightBottomX = std::stoi(dataNodeFaceListFaceListItem["RightBottomX"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["RightBottomY"].isNull())
|
||||
faceListItemObject.rightBottomY = std::stoi(dataNodeFaceListFaceListItem["RightBottomY"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["Score"].isNull())
|
||||
faceListItemObject.score = std::stof(dataNodeFaceListFaceListItem["Score"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["ShotTime"].isNull())
|
||||
faceListItemObject.shotTime = dataNodeFaceListFaceListItem["ShotTime"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["SourceImageUrl"].isNull())
|
||||
faceListItemObject.sourceImageUrl = dataNodeFaceListFaceListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["TargetImageUrl"].isNull())
|
||||
faceListItemObject.targetImageUrl = dataNodeFaceListFaceListItem["TargetImageUrl"].asString();
|
||||
data_.faceList.push_back(faceListItemObject);
|
||||
}
|
||||
auto allMotorListNode = dataNode["MotorList"]["MotorListItem"];
|
||||
for (auto dataNodeMotorListMotorListItem : allMotorListNode)
|
||||
{
|
||||
Data::MotorListItem motorListItemObject;
|
||||
if(!dataNodeMotorListMotorListItem["DeviceID"].isNull())
|
||||
motorListItemObject.deviceID = dataNodeMotorListMotorListItem["DeviceID"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["ObjectType"].isNull())
|
||||
motorListItemObject.objectType = dataNodeMotorListMotorListItem["ObjectType"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["LeftTopX"].isNull())
|
||||
motorListItemObject.leftTopX = std::stoi(dataNodeMotorListMotorListItem["LeftTopX"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["LeftTopY"].isNull())
|
||||
motorListItemObject.leftTopY = std::stoi(dataNodeMotorListMotorListItem["LeftTopY"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["RightBottomX"].isNull())
|
||||
motorListItemObject.rightBottomX = std::stoi(dataNodeMotorListMotorListItem["RightBottomX"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["RightBottomY"].isNull())
|
||||
motorListItemObject.rightBottomY = std::stoi(dataNodeMotorListMotorListItem["RightBottomY"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["Score"].isNull())
|
||||
motorListItemObject.score = std::stof(dataNodeMotorListMotorListItem["Score"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["ShotTime"].isNull())
|
||||
motorListItemObject.shotTime = dataNodeMotorListMotorListItem["ShotTime"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["SourceImageUrl"].isNull())
|
||||
motorListItemObject.sourceImageUrl = dataNodeMotorListMotorListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["TargetImageUrl"].isNull())
|
||||
motorListItemObject.targetImageUrl = dataNodeMotorListMotorListItem["TargetImageUrl"].asString();
|
||||
data_.motorList.push_back(motorListItemObject);
|
||||
}
|
||||
auto allNonMotorListNode = dataNode["NonMotorList"]["NonMotorListItem"];
|
||||
for (auto dataNodeNonMotorListNonMotorListItem : allNonMotorListNode)
|
||||
{
|
||||
Data::NonMotorListItem nonMotorListItemObject;
|
||||
if(!dataNodeNonMotorListNonMotorListItem["DeviceID"].isNull())
|
||||
nonMotorListItemObject.deviceID = dataNodeNonMotorListNonMotorListItem["DeviceID"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["ObjectType"].isNull())
|
||||
nonMotorListItemObject.objectType = dataNodeNonMotorListNonMotorListItem["ObjectType"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["LeftTopX"].isNull())
|
||||
nonMotorListItemObject.leftTopX = std::stoi(dataNodeNonMotorListNonMotorListItem["LeftTopX"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["LeftTopY"].isNull())
|
||||
nonMotorListItemObject.leftTopY = std::stoi(dataNodeNonMotorListNonMotorListItem["LeftTopY"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["RightBottomX"].isNull())
|
||||
nonMotorListItemObject.rightBottomX = std::stoi(dataNodeNonMotorListNonMotorListItem["RightBottomX"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["RightBottomY"].isNull())
|
||||
nonMotorListItemObject.rightBottomY = std::stoi(dataNodeNonMotorListNonMotorListItem["RightBottomY"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["Score"].isNull())
|
||||
nonMotorListItemObject.score = std::stoi(dataNodeNonMotorListNonMotorListItem["Score"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["ShotTime"].isNull())
|
||||
nonMotorListItemObject.shotTime = dataNodeNonMotorListNonMotorListItem["ShotTime"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["SourceImageUrl"].isNull())
|
||||
nonMotorListItemObject.sourceImageUrl = dataNodeNonMotorListNonMotorListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["TargetImageUrl"].isNull())
|
||||
nonMotorListItemObject.targetImageUrl = dataNodeNonMotorListNonMotorListItem["TargetImageUrl"].asString();
|
||||
data_.nonMotorList.push_back(nonMotorListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SearchObjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long SearchObjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int SearchObjectResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
SearchObjectResult::Data SearchObjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchObjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SearchObjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user