Generated 2020-10-29 for reid_cloud.
This commit is contained in:
File diff suppressed because one or more lines are too long
1
reid_cloud/2020-10-29/ListSpecialPersonnelByImage.xml
Normal file
1
reid_cloud/2020-10-29/ListSpecialPersonnelByImage.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK,BearerToken" responseLog="enable" isolationType="outer" parameterType="Single" product="reid_cloud" controlPolicy="malicious_user" visibility="Public" akProvenStatus="Disable" version="2020-10-29" keepClientResourceOwnerId="false" name="ListSpecialPersonnelByImage" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTP|HTTPS" method="POST" /><ErrorMapping exceptionExpress="success=false,errorCode,errorMessage,code,dynamicCode,dynamicMessage"><ErrorCodes /></ErrorMapping><IspProtocol timeout="10000" protocol="http" httpHost="http://reid_cloud_ack_shanghai/admin/OpenService4Pop/listSpecialPersonnelByImage/ListSpecialPersonnelByImageRequest#vpc" resultType="Object" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerSecurityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerBid" tagName="callerBid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="MFAPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="proxyTrustTransportInfo" tagName="proxy_trust_transport_info" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="proxyCallerSecurityTransport" tagName="proxy_original_security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="proxyCallerIp" tagName="proxy_original_source_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="resourceOwnerId" tagName="ResourceOwnerId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="apiName" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerBid" tagName="stsTokenCallerBid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="storeId" tagName="StoreId" type="Long" required="true" tagPosition="Body" checkBlank="false"/><Parameter name="imageUrl" tagName="ImageUrl" type="String" required="true" tagPosition="Body" checkBlank="false"/><Parameter name="source" tagName="Source" type="Long" required="false" tagPosition="Body" checkBlank="false"/><Parameter name="personType" tagName="PersonType" type="String" required="true" tagPosition="Body" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" userDefault="100" apiDefault="10000" /><PreIspProtocol timeout="10000" protocol="http" httpHost="http://reid_cloud_ack_pre/admin/OpenService4Pop/listSpecialPersonnelByImage/ListSpecialPersonnelByImageRequest#vpc" resultType="Object" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="Message" type="String" name="message"/><Member tagName="RequestId" type="String" name="requestId"/><Member tagName="DynamicCode" type="String" name="dynamicCode"/><Member tagName="DynamicMessage" type="String" name="dynamicMessage"/><Member tagName="ErrorCode" type="String" name="errorCode"/><Member tagName="ErrorMessage" type="String" name="errorMessage"/><Member tagName="Code" type="String" name="code"/><Member tagName="Success" type="Boolean" name="success"/><Array tagName="ListPersonResultItems" itemName="ListPersonResultItem" name="listPersonResultItems"><Member tagName="Score" type="Float" name="score"/><Member tagName="UkId" type="Long" name="ukId"/></Array></ResultMapping></Api>
|
||||
@@ -53,6 +53,8 @@ set(reid_cloud_public_header_model
|
||||
include/alibabacloud/reid_cloud/model/ListMaskDetectionResultsResult.h
|
||||
include/alibabacloud/reid_cloud/model/ListPersonByImageRequest.h
|
||||
include/alibabacloud/reid_cloud/model/ListPersonByImageResult.h
|
||||
include/alibabacloud/reid_cloud/model/ListSpecialPersonnelByImageRequest.h
|
||||
include/alibabacloud/reid_cloud/model/ListSpecialPersonnelByImageResult.h
|
||||
include/alibabacloud/reid_cloud/model/ListStoreRequest.h
|
||||
include/alibabacloud/reid_cloud/model/ListStoreResult.h
|
||||
include/alibabacloud/reid_cloud/model/PullActionDataRequest.h
|
||||
@@ -92,6 +94,8 @@ set(reid_cloud_src
|
||||
src/model/ListMaskDetectionResultsResult.cc
|
||||
src/model/ListPersonByImageRequest.cc
|
||||
src/model/ListPersonByImageResult.cc
|
||||
src/model/ListSpecialPersonnelByImageRequest.cc
|
||||
src/model/ListSpecialPersonnelByImageResult.cc
|
||||
src/model/ListStoreRequest.cc
|
||||
src/model/ListStoreResult.cc
|
||||
src/model/PullActionDataRequest.cc
|
||||
|
||||
@@ -54,6 +54,8 @@
|
||||
#include "model/ListMaskDetectionResultsResult.h"
|
||||
#include "model/ListPersonByImageRequest.h"
|
||||
#include "model/ListPersonByImageResult.h"
|
||||
#include "model/ListSpecialPersonnelByImageRequest.h"
|
||||
#include "model/ListSpecialPersonnelByImageResult.h"
|
||||
#include "model/ListStoreRequest.h"
|
||||
#include "model/ListStoreResult.h"
|
||||
#include "model/PullActionDataRequest.h"
|
||||
@@ -115,6 +117,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPersonByImageResult> ListPersonByImageOutcome;
|
||||
typedef std::future<ListPersonByImageOutcome> ListPersonByImageOutcomeCallable;
|
||||
typedef std::function<void(const Reid_cloudClient*, const Model::ListPersonByImageRequest&, const ListPersonByImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonByImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSpecialPersonnelByImageResult> ListSpecialPersonnelByImageOutcome;
|
||||
typedef std::future<ListSpecialPersonnelByImageOutcome> ListSpecialPersonnelByImageOutcomeCallable;
|
||||
typedef std::function<void(const Reid_cloudClient*, const Model::ListSpecialPersonnelByImageRequest&, const ListSpecialPersonnelByImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSpecialPersonnelByImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListStoreResult> ListStoreOutcome;
|
||||
typedef std::future<ListStoreOutcome> ListStoreOutcomeCallable;
|
||||
typedef std::function<void(const Reid_cloudClient*, const Model::ListStoreRequest&, const ListStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStoreAsyncHandler;
|
||||
@@ -174,6 +179,9 @@ namespace AlibabaCloud
|
||||
ListPersonByImageOutcome listPersonByImage(const Model::ListPersonByImageRequest &request)const;
|
||||
void listPersonByImageAsync(const Model::ListPersonByImageRequest& request, const ListPersonByImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPersonByImageOutcomeCallable listPersonByImageCallable(const Model::ListPersonByImageRequest& request) const;
|
||||
ListSpecialPersonnelByImageOutcome listSpecialPersonnelByImage(const Model::ListSpecialPersonnelByImageRequest &request)const;
|
||||
void listSpecialPersonnelByImageAsync(const Model::ListSpecialPersonnelByImageRequest& request, const ListSpecialPersonnelByImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSpecialPersonnelByImageOutcomeCallable listSpecialPersonnelByImageCallable(const Model::ListSpecialPersonnelByImageRequest& request) const;
|
||||
ListStoreOutcome listStore(const Model::ListStoreRequest &request)const;
|
||||
void listStoreAsync(const Model::ListStoreRequest& request, const ListStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListStoreOutcomeCallable listStoreCallable(const Model::ListStoreRequest& request) const;
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setDescription(const std::string& description);
|
||||
std::string getExternalId()const;
|
||||
void setExternalId(const std::string& externalId);
|
||||
long getSource()const;
|
||||
void setSource(long source);
|
||||
std::string getPersonType()const;
|
||||
void setPersonType(const std::string& personType);
|
||||
std::string getUrls()const;
|
||||
@@ -56,6 +58,7 @@ namespace AlibabaCloud
|
||||
long ukId_;
|
||||
std::string description_;
|
||||
std::string externalId_;
|
||||
long source_;
|
||||
std::string personType_;
|
||||
std::string urls_;
|
||||
std::string personName_;
|
||||
|
||||
@@ -44,8 +44,8 @@ namespace AlibabaCloud
|
||||
~ImportSpecialPersonnelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::vector<SpecialPersonnelMap> getSpecialPersonnelMaps()const;
|
||||
std::string getCode()const;
|
||||
@@ -56,8 +56,8 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
std::vector<SpecialPersonnelMap> specialPersonnelMaps_;
|
||||
std::string code_;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_REID_CLOUD_MODEL_LISTSPECIALPERSONNELBYIMAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_REID_CLOUD_MODEL_LISTSPECIALPERSONNELBYIMAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/reid_cloud/Reid_cloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid_cloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_CLOUD_EXPORT ListSpecialPersonnelByImageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSpecialPersonnelByImageRequest();
|
||||
~ListSpecialPersonnelByImageRequest();
|
||||
|
||||
long getSource()const;
|
||||
void setSource(long source);
|
||||
long getStoreId()const;
|
||||
void setStoreId(long storeId);
|
||||
std::string getPersonType()const;
|
||||
void setPersonType(const std::string& personType);
|
||||
std::string getImageUrl()const;
|
||||
void setImageUrl(const std::string& imageUrl);
|
||||
|
||||
private:
|
||||
long source_;
|
||||
long storeId_;
|
||||
std::string personType_;
|
||||
std::string imageUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_CLOUD_MODEL_LISTSPECIALPERSONNELBYIMAGEREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_REID_CLOUD_MODEL_LISTSPECIALPERSONNELBYIMAGERESULT_H_
|
||||
#define ALIBABACLOUD_REID_CLOUD_MODEL_LISTSPECIALPERSONNELBYIMAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/reid_cloud/Reid_cloudExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Reid_cloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_REID_CLOUD_EXPORT ListSpecialPersonnelByImageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ListPersonResultItem
|
||||
{
|
||||
float score;
|
||||
long ukId;
|
||||
};
|
||||
|
||||
|
||||
ListSpecialPersonnelByImageResult();
|
||||
explicit ListSpecialPersonnelByImageResult(const std::string &payload);
|
||||
~ListSpecialPersonnelByImageResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorCode()const;
|
||||
std::vector<ListPersonResultItem> getListPersonResultItems()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorCode_;
|
||||
std::vector<ListPersonResultItem> listPersonResultItems_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_REID_CLOUD_MODEL_LISTSPECIALPERSONNELBYIMAGERESULT_H_
|
||||
@@ -31,21 +31,21 @@ Reid_cloudClient::Reid_cloudClient(const Credentials &credentials, const ClientC
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.9");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.2.0");
|
||||
}
|
||||
|
||||
Reid_cloudClient::Reid_cloudClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.9");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.2.0");
|
||||
}
|
||||
|
||||
Reid_cloudClient::Reid_cloudClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.9");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.2.0");
|
||||
}
|
||||
|
||||
Reid_cloudClient::~Reid_cloudClient()
|
||||
@@ -627,6 +627,42 @@ Reid_cloudClient::ListPersonByImageOutcomeCallable Reid_cloudClient::listPersonB
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Reid_cloudClient::ListSpecialPersonnelByImageOutcome Reid_cloudClient::listSpecialPersonnelByImage(const ListSpecialPersonnelByImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSpecialPersonnelByImageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSpecialPersonnelByImageOutcome(ListSpecialPersonnelByImageResult(outcome.result()));
|
||||
else
|
||||
return ListSpecialPersonnelByImageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Reid_cloudClient::listSpecialPersonnelByImageAsync(const ListSpecialPersonnelByImageRequest& request, const ListSpecialPersonnelByImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSpecialPersonnelByImage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Reid_cloudClient::ListSpecialPersonnelByImageOutcomeCallable Reid_cloudClient::listSpecialPersonnelByImageCallable(const ListSpecialPersonnelByImageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSpecialPersonnelByImageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSpecialPersonnelByImage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Reid_cloudClient::ListStoreOutcome Reid_cloudClient::listStore(const ListStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -60,6 +60,17 @@ void ImportSpecialPersonnelRequest::setExternalId(const std::string& externalId)
|
||||
setBodyParameter("ExternalId", externalId);
|
||||
}
|
||||
|
||||
long ImportSpecialPersonnelRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void ImportSpecialPersonnelRequest::setSource(long source)
|
||||
{
|
||||
source_ = source;
|
||||
setBodyParameter("Source", std::to_string(source));
|
||||
}
|
||||
|
||||
std::string ImportSpecialPersonnelRequest::getPersonType()const
|
||||
{
|
||||
return personType_;
|
||||
|
||||
@@ -43,26 +43,26 @@ void ImportSpecialPersonnelResult::parse(const std::string &payload)
|
||||
for (auto valueSpecialPersonnelMapsSpecialPersonnelMap : allSpecialPersonnelMapsNode)
|
||||
{
|
||||
SpecialPersonnelMap specialPersonnelMapsObject;
|
||||
if(!valueSpecialPersonnelMapsSpecialPersonnelMap["UkId"].isNull())
|
||||
specialPersonnelMapsObject.ukId = std::stol(valueSpecialPersonnelMapsSpecialPersonnelMap["UkId"].asString());
|
||||
if(!valueSpecialPersonnelMapsSpecialPersonnelMap["StoreId"].isNull())
|
||||
specialPersonnelMapsObject.storeId = std::stol(valueSpecialPersonnelMapsSpecialPersonnelMap["StoreId"].asString());
|
||||
if(!valueSpecialPersonnelMapsSpecialPersonnelMap["UkId"].isNull())
|
||||
specialPersonnelMapsObject.ukId = std::stol(valueSpecialPersonnelMapsSpecialPersonnelMap["UkId"].asString());
|
||||
specialPersonnelMaps_.push_back(specialPersonnelMapsObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -76,16 +76,16 @@ std::string ImportSpecialPersonnelResult::getDynamicCode()const
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string ImportSpecialPersonnelResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ImportSpecialPersonnelResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string ImportSpecialPersonnelResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ImportSpecialPersonnelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
|
||||
73
reid_cloud/src/model/ListSpecialPersonnelByImageRequest.cc
Normal file
73
reid_cloud/src/model/ListSpecialPersonnelByImageRequest.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/reid_cloud/model/ListSpecialPersonnelByImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Reid_cloud::Model::ListSpecialPersonnelByImageRequest;
|
||||
|
||||
ListSpecialPersonnelByImageRequest::ListSpecialPersonnelByImageRequest() :
|
||||
RpcServiceRequest("reid_cloud", "2020-10-29", "ListSpecialPersonnelByImage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSpecialPersonnelByImageRequest::~ListSpecialPersonnelByImageRequest()
|
||||
{}
|
||||
|
||||
long ListSpecialPersonnelByImageRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void ListSpecialPersonnelByImageRequest::setSource(long source)
|
||||
{
|
||||
source_ = source;
|
||||
setBodyParameter("Source", std::to_string(source));
|
||||
}
|
||||
|
||||
long ListSpecialPersonnelByImageRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void ListSpecialPersonnelByImageRequest::setStoreId(long storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", std::to_string(storeId));
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageRequest::getPersonType()const
|
||||
{
|
||||
return personType_;
|
||||
}
|
||||
|
||||
void ListSpecialPersonnelByImageRequest::setPersonType(const std::string& personType)
|
||||
{
|
||||
personType_ = personType;
|
||||
setBodyParameter("PersonType", personType);
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void ListSpecialPersonnelByImageRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
108
reid_cloud/src/model/ListSpecialPersonnelByImageResult.cc
Normal file
108
reid_cloud/src/model/ListSpecialPersonnelByImageResult.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/reid_cloud/model/ListSpecialPersonnelByImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Reid_cloud;
|
||||
using namespace AlibabaCloud::Reid_cloud::Model;
|
||||
|
||||
ListSpecialPersonnelByImageResult::ListSpecialPersonnelByImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSpecialPersonnelByImageResult::ListSpecialPersonnelByImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSpecialPersonnelByImageResult::~ListSpecialPersonnelByImageResult()
|
||||
{}
|
||||
|
||||
void ListSpecialPersonnelByImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allListPersonResultItemsNode = value["ListPersonResultItems"]["ListPersonResultItem"];
|
||||
for (auto valueListPersonResultItemsListPersonResultItem : allListPersonResultItemsNode)
|
||||
{
|
||||
ListPersonResultItem listPersonResultItemsObject;
|
||||
if(!valueListPersonResultItemsListPersonResultItem["Score"].isNull())
|
||||
listPersonResultItemsObject.score = std::stof(valueListPersonResultItemsListPersonResultItem["Score"].asString());
|
||||
if(!valueListPersonResultItemsListPersonResultItem["UkId"].isNull())
|
||||
listPersonResultItemsObject.ukId = std::stol(valueListPersonResultItemsListPersonResultItem["UkId"].asString());
|
||||
listPersonResultItems_.push_back(listPersonResultItemsObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSpecialPersonnelByImageResult::ListPersonResultItem> ListSpecialPersonnelByImageResult::getListPersonResultItems()const
|
||||
{
|
||||
return listPersonResultItems_;
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ListSpecialPersonnelByImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSpecialPersonnelByImageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?><Version product="reid_cloud" apiStyle="RPC" name="2020-10-29" isolationType="outer"><ErrorMapping exceptionExpress=""><ErrorCodes /></ErrorMapping><Apis><Api name="PullActionData" /><Api name="DescribeImageUrls" /><Api name="DescribeOverviewData" /><Api name="DescribeIpcLiveAddress" /><Api name="DescribeDevices" /><Api name="DescribeCustomerFlowByLocation" /><Api name="DescribeCameraStatistics" /><Api name="ListPersonByImage" /><Api name="ListDevicesImages" /><Api name="ListLocation" /><Api name="DescribeBaseStatistics" /><Api name="ListActionData" /><Api name="ListMaskDetectionResults" /><Api name="ListEmap" /><Api name="DescribeHeatMap" /><Api name="ImportSpecialPersonnel" /><Api name="ListStore" /><Api name="DescribeCursor" /></Apis></Version>
|
||||
<?xml version='1.0' encoding='UTF-8'?><Version product="reid_cloud" apiStyle="RPC" name="2020-10-29" isolationType="outer"><ErrorMapping exceptionExpress=""><ErrorCodes /></ErrorMapping><Apis><Api name="ListSpecialPersonnelByImage" /><Api name="PullActionData" /><Api name="DescribeImageUrls" /><Api name="DescribeOverviewData" /><Api name="DescribeIpcLiveAddress" /><Api name="DescribeDevices" /><Api name="DescribeCustomerFlowByLocation" /><Api name="DescribeCameraStatistics" /><Api name="ListPersonByImage" /><Api name="ListDevicesImages" /><Api name="ListLocation" /><Api name="DescribeBaseStatistics" /><Api name="ListActionData" /><Api name="ListMaskDetectionResults" /><Api name="ListEmap" /><Api name="DescribeHeatMap" /><Api name="ImportSpecialPersonnel" /><Api name="ListStore" /><Api name="DescribeCursor" /></Apis></Version>
|
||||
|
||||
Reference in New Issue
Block a user