ListActionData add parameters.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2020-10-13 Version: patch
|
||||||
|
- ListActionData add parameters.
|
||||||
|
- PullActionData add parameters.
|
||||||
|
|
||||||
2020-10-13 Version: patch
|
2020-10-13 Version: patch
|
||||||
- Generated 2018-01-11 for `rtc`.
|
- Generated 2018-01-11 for `rtc`.
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
};
|
};
|
||||||
int status;
|
int status;
|
||||||
int facePointNumber;
|
int facePointNumber;
|
||||||
|
int bodyPointNumber;
|
||||||
int stayPeriod;
|
int stayPeriod;
|
||||||
long leaveTimestamp;
|
long leaveTimestamp;
|
||||||
long gmtModified;
|
long gmtModified;
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
};
|
};
|
||||||
int status;
|
int status;
|
||||||
int facePointNumber;
|
int facePointNumber;
|
||||||
|
int bodyPointNumber;
|
||||||
int stayPeriod;
|
int stayPeriod;
|
||||||
long leaveTimestamp;
|
long leaveTimestamp;
|
||||||
long gmtModified;
|
long gmtModified;
|
||||||
|
|||||||
@@ -31,21 +31,21 @@ ReidClient::ReidClient(const Credentials &credentials, const ClientConfiguration
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.4");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.5");
|
||||||
}
|
}
|
||||||
|
|
||||||
ReidClient::ReidClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
ReidClient::ReidClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.4");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.5");
|
||||||
}
|
}
|
||||||
|
|
||||||
ReidClient::ReidClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
ReidClient::ReidClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.4");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.5");
|
||||||
}
|
}
|
||||||
|
|
||||||
ReidClient::~ReidClient()
|
ReidClient::~ReidClient()
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ void ListActionDataResult::parse(const std::string &payload)
|
|||||||
actionsObject.imageObjectKey = valueActionsAction["ImageObjectKey"].asString();
|
actionsObject.imageObjectKey = valueActionsAction["ImageObjectKey"].asString();
|
||||||
if(!valueActionsAction["FacePointNumber"].isNull())
|
if(!valueActionsAction["FacePointNumber"].isNull())
|
||||||
actionsObject.facePointNumber = std::stoi(valueActionsAction["FacePointNumber"].asString());
|
actionsObject.facePointNumber = std::stoi(valueActionsAction["FacePointNumber"].asString());
|
||||||
|
if(!valueActionsAction["BodyPointNumber"].isNull())
|
||||||
|
actionsObject.bodyPointNumber = std::stoi(valueActionsAction["BodyPointNumber"].asString());
|
||||||
auto objectPositionInImageNode = value["ObjectPositionInImage"];
|
auto objectPositionInImageNode = value["ObjectPositionInImage"];
|
||||||
if(!objectPositionInImageNode["Bottom"].isNull())
|
if(!objectPositionInImageNode["Bottom"].isNull())
|
||||||
actionsObject.objectPositionInImage.bottom = std::stof(objectPositionInImageNode["Bottom"].asString());
|
actionsObject.objectPositionInImage.bottom = std::stof(objectPositionInImageNode["Bottom"].asString());
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ void PullActionDataResult::parse(const std::string &payload)
|
|||||||
actionsObject.specialType = valueActionsAction["SpecialType"].asString();
|
actionsObject.specialType = valueActionsAction["SpecialType"].asString();
|
||||||
if(!valueActionsAction["ImageObjectKey"].isNull())
|
if(!valueActionsAction["ImageObjectKey"].isNull())
|
||||||
actionsObject.imageObjectKey = valueActionsAction["ImageObjectKey"].asString();
|
actionsObject.imageObjectKey = valueActionsAction["ImageObjectKey"].asString();
|
||||||
|
if(!valueActionsAction["BodyPointNumber"].isNull())
|
||||||
|
actionsObject.bodyPointNumber = std::stoi(valueActionsAction["BodyPointNumber"].asString());
|
||||||
auto objectPositionInImageNode = value["ObjectPositionInImage"];
|
auto objectPositionInImageNode = value["ObjectPositionInImage"];
|
||||||
if(!objectPositionInImageNode["Bottom"].isNull())
|
if(!objectPositionInImageNode["Bottom"].isNull())
|
||||||
actionsObject.objectPositionInImage.bottom = std::stof(objectPositionInImageNode["Bottom"].asString());
|
actionsObject.objectPositionInImage.bottom = std::stof(objectPositionInImageNode["Bottom"].asString());
|
||||||
|
|||||||
Reference in New Issue
Block a user