Add function.

This commit is contained in:
sdk-team
2021-01-14 11:04:54 +00:00
parent 406b8fba46
commit c97337aa82
32 changed files with 2381 additions and 2 deletions

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/DetectTrajectoryRegularPatternRequest.h>
using AlibabaCloud::CDRS::Model::DetectTrajectoryRegularPatternRequest;
DetectTrajectoryRegularPatternRequest::DetectTrajectoryRegularPatternRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "DetectTrajectoryRegularPattern")
{
setMethod(HttpRequest::Method::Post);
}
DetectTrajectoryRegularPatternRequest::~DetectTrajectoryRegularPatternRequest()
{}
std::string DetectTrajectoryRegularPatternRequest::getPredictDate()const
{
return predictDate_;
}
void DetectTrajectoryRegularPatternRequest::setPredictDate(const std::string& predictDate)
{
predictDate_ = predictDate;
setBodyParameter("PredictDate", predictDate);
}
std::string DetectTrajectoryRegularPatternRequest::getCorpId()const
{
return corpId_;
}
void DetectTrajectoryRegularPatternRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string DetectTrajectoryRegularPatternRequest::getIdValue()const
{
return idValue_;
}
void DetectTrajectoryRegularPatternRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
std::string DetectTrajectoryRegularPatternRequest::getIdType()const
{
return idType_;
}
void DetectTrajectoryRegularPatternRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}

View File

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

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/IntersectTrajectoryRequest.h>
using AlibabaCloud::CDRS::Model::IntersectTrajectoryRequest;
IntersectTrajectoryRequest::IntersectTrajectoryRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "IntersectTrajectory")
{
setMethod(HttpRequest::Method::Post);
}
IntersectTrajectoryRequest::~IntersectTrajectoryRequest()
{}
std::string IntersectTrajectoryRequest::getCorpId()const
{
return corpId_;
}
void IntersectTrajectoryRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string IntersectTrajectoryRequest::getEndTime()const
{
return endTime_;
}
void IntersectTrajectoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
int IntersectTrajectoryRequest::getDeltaDistance()const
{
return deltaDistance_;
}
void IntersectTrajectoryRequest::setDeltaDistance(int deltaDistance)
{
deltaDistance_ = deltaDistance;
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
}
std::string IntersectTrajectoryRequest::getStartTime()const
{
return startTime_;
}
void IntersectTrajectoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
int IntersectTrajectoryRequest::getDeltaTime()const
{
return deltaTime_;
}
void IntersectTrajectoryRequest::setDeltaTime(int deltaTime)
{
deltaTime_ = deltaTime;
setBodyParameter("DeltaTime", std::to_string(deltaTime));
}
std::vector<IntersectTrajectoryRequest::IdList> IntersectTrajectoryRequest::getIdList()const
{
return idList_;
}
void IntersectTrajectoryRequest::setIdList(const std::vector<IdList>& idList)
{
idList_ = idList;
for(int dep1 = 0; dep1!= idList.size(); dep1++) {
auto idListObj = idList.at(dep1);
std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
setParameter(idListObjStr + ".IdType", idListObj.idType);
setParameter(idListObjStr + ".IdValue", idListObj.idValue);
}
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/PredictTrajectoryDestinationRequest.h>
using AlibabaCloud::CDRS::Model::PredictTrajectoryDestinationRequest;
PredictTrajectoryDestinationRequest::PredictTrajectoryDestinationRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "PredictTrajectoryDestination")
{
setMethod(HttpRequest::Method::Post);
}
PredictTrajectoryDestinationRequest::~PredictTrajectoryDestinationRequest()
{}
std::string PredictTrajectoryDestinationRequest::getCorpId()const
{
return corpId_;
}
void PredictTrajectoryDestinationRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string PredictTrajectoryDestinationRequest::getIdValue()const
{
return idValue_;
}
void PredictTrajectoryDestinationRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
std::string PredictTrajectoryDestinationRequest::getIdType()const
{
return idType_;
}
void PredictTrajectoryDestinationRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}
int PredictTrajectoryDestinationRequest::getPredictTimeSpan()const
{
return predictTimeSpan_;
}
void PredictTrajectoryDestinationRequest::setPredictTimeSpan(int predictTimeSpan)
{
predictTimeSpan_ = predictTimeSpan;
setBodyParameter("PredictTimeSpan", std::to_string(predictTimeSpan));
}

View File

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

View File

@@ -0,0 +1,93 @@
/*
* 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/QueryTrajectoryByIdRequest.h>
using AlibabaCloud::CDRS::Model::QueryTrajectoryByIdRequest;
QueryTrajectoryByIdRequest::QueryTrajectoryByIdRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "QueryTrajectoryById")
{
setMethod(HttpRequest::Method::Post);
}
QueryTrajectoryByIdRequest::~QueryTrajectoryByIdRequest()
{}
std::string QueryTrajectoryByIdRequest::getCorpId()const
{
return corpId_;
}
void QueryTrajectoryByIdRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string QueryTrajectoryByIdRequest::getEndTime()const
{
return endTime_;
}
void QueryTrajectoryByIdRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string QueryTrajectoryByIdRequest::getStartTime()const
{
return startTime_;
}
void QueryTrajectoryByIdRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::vector<QueryTrajectoryByIdRequest::DeviceList> QueryTrajectoryByIdRequest::getDeviceList()const
{
return deviceList_;
}
void QueryTrajectoryByIdRequest::setDeviceList(const std::vector<DeviceList>& deviceList)
{
deviceList_ = deviceList;
for(int dep1 = 0; dep1!= deviceList.size(); dep1++) {
auto deviceListObj = deviceList.at(dep1);
std::string deviceListObjStr = "DeviceList." + std::to_string(dep1 + 1);
setParameter(deviceListObjStr + ".DeviceId", deviceListObj.deviceId);
}
}
std::vector<QueryTrajectoryByIdRequest::IdList> QueryTrajectoryByIdRequest::getIdList()const
{
return idList_;
}
void QueryTrajectoryByIdRequest::setIdList(const std::vector<IdList>& idList)
{
idList_ = idList;
for(int dep1 = 0; dep1!= idList.size(); dep1++) {
auto idListObj = idList.at(dep1);
std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
setParameter(idListObjStr + ".IdType", idListObj.idType);
setParameter(idListObjStr + ".IdValue", idListObj.idValue);
}
}

View File

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

View File

@@ -0,0 +1,124 @@
/*
* 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/RecallTrajectoryByCoordinateRequest.h>
using AlibabaCloud::CDRS::Model::RecallTrajectoryByCoordinateRequest;
RecallTrajectoryByCoordinateRequest::RecallTrajectoryByCoordinateRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "RecallTrajectoryByCoordinate")
{
setMethod(HttpRequest::Method::Post);
}
RecallTrajectoryByCoordinateRequest::~RecallTrajectoryByCoordinateRequest()
{}
std::string RecallTrajectoryByCoordinateRequest::getCorpId()const
{
return corpId_;
}
void RecallTrajectoryByCoordinateRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::vector<RecallTrajectoryByCoordinateRequest::PointList> RecallTrajectoryByCoordinateRequest::getPointList()const
{
return pointList_;
}
void RecallTrajectoryByCoordinateRequest::setPointList(const std::vector<PointList>& pointList)
{
pointList_ = pointList;
for(int dep1 = 0; dep1!= pointList.size(); dep1++) {
auto pointListObj = pointList.at(dep1);
std::string pointListObjStr = "PointList." + std::to_string(dep1 + 1);
setParameter(pointListObjStr + ".Latitude", std::to_string(pointListObj.latitude));
setParameter(pointListObjStr + ".Longitude", std::to_string(pointListObj.longitude));
}
}
std::string RecallTrajectoryByCoordinateRequest::getEndTime()const
{
return endTime_;
}
void RecallTrajectoryByCoordinateRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
int RecallTrajectoryByCoordinateRequest::getDeltaDistance()const
{
return deltaDistance_;
}
void RecallTrajectoryByCoordinateRequest::setDeltaDistance(int deltaDistance)
{
deltaDistance_ = deltaDistance;
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
}
std::string RecallTrajectoryByCoordinateRequest::getStartTime()const
{
return startTime_;
}
void RecallTrajectoryByCoordinateRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::vector<std::string> RecallTrajectoryByCoordinateRequest::getOutputIdTypeList()const
{
return outputIdTypeList_;
}
void RecallTrajectoryByCoordinateRequest::setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList)
{
outputIdTypeList_ = outputIdTypeList;
for(int dep1 = 0; dep1!= outputIdTypeList.size(); dep1++) {
setBodyParameter("OutputIdTypeList."+ std::to_string(dep1), outputIdTypeList.at(dep1));
}
}
int RecallTrajectoryByCoordinateRequest::getDeltaTime()const
{
return deltaTime_;
}
void RecallTrajectoryByCoordinateRequest::setDeltaTime(int deltaTime)
{
deltaTime_ = deltaTime;
setBodyParameter("DeltaTime", std::to_string(deltaTime));
}
int RecallTrajectoryByCoordinateRequest::getOutputIdCount()const
{
return outputIdCount_;
}
void RecallTrajectoryByCoordinateRequest::setOutputIdCount(int outputIdCount)
{
outputIdCount_ = outputIdCount;
setBodyParameter("OutputIdCount", std::to_string(outputIdCount));
}

View File

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

View File

@@ -0,0 +1,130 @@
/*
* 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/RecallTrajectoryByIdRequest.h>
using AlibabaCloud::CDRS::Model::RecallTrajectoryByIdRequest;
RecallTrajectoryByIdRequest::RecallTrajectoryByIdRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "RecallTrajectoryById")
{
setMethod(HttpRequest::Method::Post);
}
RecallTrajectoryByIdRequest::~RecallTrajectoryByIdRequest()
{}
std::string RecallTrajectoryByIdRequest::getCorpId()const
{
return corpId_;
}
void RecallTrajectoryByIdRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string RecallTrajectoryByIdRequest::getEndTime()const
{
return endTime_;
}
void RecallTrajectoryByIdRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string RecallTrajectoryByIdRequest::getIdValue()const
{
return idValue_;
}
void RecallTrajectoryByIdRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
int RecallTrajectoryByIdRequest::getDeltaDistance()const
{
return deltaDistance_;
}
void RecallTrajectoryByIdRequest::setDeltaDistance(int deltaDistance)
{
deltaDistance_ = deltaDistance;
setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
}
std::string RecallTrajectoryByIdRequest::getStartTime()const
{
return startTime_;
}
void RecallTrajectoryByIdRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string RecallTrajectoryByIdRequest::getIdType()const
{
return idType_;
}
void RecallTrajectoryByIdRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}
std::vector<std::string> RecallTrajectoryByIdRequest::getOutputIdTypeList()const
{
return outputIdTypeList_;
}
void RecallTrajectoryByIdRequest::setOutputIdTypeList(const std::vector<std::string>& outputIdTypeList)
{
outputIdTypeList_ = outputIdTypeList;
for(int dep1 = 0; dep1!= outputIdTypeList.size(); dep1++) {
setBodyParameter("OutputIdTypeList."+ std::to_string(dep1), outputIdTypeList.at(dep1));
}
}
int RecallTrajectoryByIdRequest::getDeltaTime()const
{
return deltaTime_;
}
void RecallTrajectoryByIdRequest::setDeltaTime(int deltaTime)
{
deltaTime_ = deltaTime;
setBodyParameter("DeltaTime", std::to_string(deltaTime));
}
int RecallTrajectoryByIdRequest::getOutputIdCount()const
{
return outputIdCount_;
}
void RecallTrajectoryByIdRequest::setOutputIdCount(int outputIdCount)
{
outputIdCount_ = outputIdCount;
setBodyParameter("OutputIdCount", std::to_string(outputIdCount));
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/ValidateTrajectoryRequest.h>
using AlibabaCloud::CDRS::Model::ValidateTrajectoryRequest;
ValidateTrajectoryRequest::ValidateTrajectoryRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ValidateTrajectory")
{
setMethod(HttpRequest::Method::Post);
}
ValidateTrajectoryRequest::~ValidateTrajectoryRequest()
{}
std::string ValidateTrajectoryRequest::getCorpId()const
{
return corpId_;
}
void ValidateTrajectoryRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ValidateTrajectoryRequest::getEndTime()const
{
return endTime_;
}
void ValidateTrajectoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ValidateTrajectoryRequest::getIdValue()const
{
return idValue_;
}
void ValidateTrajectoryRequest::setIdValue(const std::string& idValue)
{
idValue_ = idValue;
setBodyParameter("IdValue", idValue);
}
std::string ValidateTrajectoryRequest::getStartTime()const
{
return startTime_;
}
void ValidateTrajectoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ValidateTrajectoryRequest::getIdType()const
{
return idType_;
}
void ValidateTrajectoryRequest::setIdType(const std::string& idType)
{
idType_ = idType;
setBodyParameter("IdType", idType);
}

View File

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