PullActionData add parameters.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2020-08-20 Version: 1.36.603
|
||||||
|
- PullActionData add parameters.
|
||||||
|
- DescribeCursor add parameter.
|
||||||
|
|
||||||
2020-08-20 Version: 1.36.602
|
2020-08-20 Version: 1.36.602
|
||||||
- Add list person visit count API.
|
- Add list person visit count API.
|
||||||
|
|
||||||
|
|||||||
@@ -35,12 +35,15 @@ namespace AlibabaCloud
|
|||||||
DescribeCursorRequest();
|
DescribeCursorRequest();
|
||||||
~DescribeCursorRequest();
|
~DescribeCursorRequest();
|
||||||
|
|
||||||
|
int getPartitionIndex()const;
|
||||||
|
void setPartitionIndex(int partitionIndex);
|
||||||
long getStoreId()const;
|
long getStoreId()const;
|
||||||
void setStoreId(long storeId);
|
void setStoreId(long storeId);
|
||||||
std::string getTime()const;
|
std::string getTime()const;
|
||||||
void setTime(const std::string& time);
|
void setTime(const std::string& time);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
int partitionIndex_;
|
||||||
long storeId_;
|
long storeId_;
|
||||||
std::string time_;
|
std::string time_;
|
||||||
|
|
||||||
|
|||||||
@@ -37,17 +37,25 @@ namespace AlibabaCloud
|
|||||||
DescribeCursorResult();
|
DescribeCursorResult();
|
||||||
explicit DescribeCursorResult(const std::string &payload);
|
explicit DescribeCursorResult(const std::string &payload);
|
||||||
~DescribeCursorResult();
|
~DescribeCursorResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::string getDynamicCode()const;
|
||||||
std::string getErrorCode()const;
|
std::string getErrorCode()const;
|
||||||
|
std::string getDynamicMessage()const;
|
||||||
std::string getErrorMessage()const;
|
std::string getErrorMessage()const;
|
||||||
std::string getCursor()const;
|
std::string getCursor()const;
|
||||||
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::string dynamicCode_;
|
||||||
std::string errorCode_;
|
std::string errorCode_;
|
||||||
|
std::string dynamicMessage_;
|
||||||
std::string errorMessage_;
|
std::string errorMessage_;
|
||||||
std::string cursor_;
|
std::string cursor_;
|
||||||
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
|||||||
PullActionDataRequest();
|
PullActionDataRequest();
|
||||||
~PullActionDataRequest();
|
~PullActionDataRequest();
|
||||||
|
|
||||||
|
int getPartitionIndex()const;
|
||||||
|
void setPartitionIndex(int partitionIndex);
|
||||||
long getStoreId()const;
|
long getStoreId()const;
|
||||||
void setStoreId(long storeId);
|
void setStoreId(long storeId);
|
||||||
long getEndMessageId()const;
|
long getEndMessageId()const;
|
||||||
@@ -45,6 +47,7 @@ namespace AlibabaCloud
|
|||||||
void setStartMessageId(long startMessageId);
|
void setStartMessageId(long startMessageId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
int partitionIndex_;
|
||||||
long storeId_;
|
long storeId_;
|
||||||
long endMessageId_;
|
long endMessageId_;
|
||||||
int limit_;
|
int limit_;
|
||||||
|
|||||||
@@ -75,19 +75,29 @@ namespace AlibabaCloud
|
|||||||
PullActionDataResult();
|
PullActionDataResult();
|
||||||
explicit PullActionDataResult(const std::string &payload);
|
explicit PullActionDataResult(const std::string &payload);
|
||||||
~PullActionDataResult();
|
~PullActionDataResult();
|
||||||
|
std::string getMessage()const;
|
||||||
std::vector<Action> getActions()const;
|
std::vector<Action> getActions()const;
|
||||||
long getNextMessageId()const;
|
long getNextMessageId()const;
|
||||||
|
int getPartitionIndex()const;
|
||||||
|
std::string getDynamicCode()const;
|
||||||
std::string getErrorCode()const;
|
std::string getErrorCode()const;
|
||||||
|
std::string getDynamicMessage()const;
|
||||||
std::string getErrorMessage()const;
|
std::string getErrorMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
std::string message_;
|
||||||
std::vector<Action> actions_;
|
std::vector<Action> actions_;
|
||||||
long nextMessageId_;
|
long nextMessageId_;
|
||||||
|
int partitionIndex_;
|
||||||
|
std::string dynamicCode_;
|
||||||
std::string errorCode_;
|
std::string errorCode_;
|
||||||
|
std::string dynamicMessage_;
|
||||||
std::string errorMessage_;
|
std::string errorMessage_;
|
||||||
|
std::string code_;
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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.2");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.3");
|
||||||
}
|
}
|
||||||
|
|
||||||
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.2");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.3");
|
||||||
}
|
}
|
||||||
|
|
||||||
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.2");
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.3");
|
||||||
}
|
}
|
||||||
|
|
||||||
ReidClient::~ReidClient()
|
ReidClient::~ReidClient()
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ DescribeCursorRequest::DescribeCursorRequest() :
|
|||||||
DescribeCursorRequest::~DescribeCursorRequest()
|
DescribeCursorRequest::~DescribeCursorRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
int DescribeCursorRequest::getPartitionIndex()const
|
||||||
|
{
|
||||||
|
return partitionIndex_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeCursorRequest::setPartitionIndex(int partitionIndex)
|
||||||
|
{
|
||||||
|
partitionIndex_ = partitionIndex;
|
||||||
|
setBodyParameter("PartitionIndex", std::to_string(partitionIndex));
|
||||||
|
}
|
||||||
|
|
||||||
long DescribeCursorRequest::getStoreId()const
|
long DescribeCursorRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return storeId_;
|
||||||
|
|||||||
@@ -45,16 +45,39 @@ void DescribeCursorResult::parse(const std::string &payload)
|
|||||||
errorMessage_ = value["ErrorMessage"].asString();
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
if(!value["Cursor"].isNull())
|
if(!value["Cursor"].isNull())
|
||||||
cursor_ = value["Cursor"].asString();
|
cursor_ = value["Cursor"].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())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["DynamicMessage"].isNull())
|
||||||
|
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeCursorResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeCursorResult::getDynamicCode()const
|
||||||
|
{
|
||||||
|
return dynamicCode_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeCursorResult::getErrorCode()const
|
std::string DescribeCursorResult::getErrorCode()const
|
||||||
{
|
{
|
||||||
return errorCode_;
|
return errorCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeCursorResult::getDynamicMessage()const
|
||||||
|
{
|
||||||
|
return dynamicMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeCursorResult::getErrorMessage()const
|
std::string DescribeCursorResult::getErrorMessage()const
|
||||||
{
|
{
|
||||||
return errorMessage_;
|
return errorMessage_;
|
||||||
@@ -65,6 +88,11 @@ std::string DescribeCursorResult::getCursor()const
|
|||||||
return cursor_;
|
return cursor_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeCursorResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
bool DescribeCursorResult::getSuccess()const
|
bool DescribeCursorResult::getSuccess()const
|
||||||
{
|
{
|
||||||
return success_;
|
return success_;
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ PullActionDataRequest::PullActionDataRequest() :
|
|||||||
PullActionDataRequest::~PullActionDataRequest()
|
PullActionDataRequest::~PullActionDataRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
int PullActionDataRequest::getPartitionIndex()const
|
||||||
|
{
|
||||||
|
return partitionIndex_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PullActionDataRequest::setPartitionIndex(int partitionIndex)
|
||||||
|
{
|
||||||
|
partitionIndex_ = partitionIndex;
|
||||||
|
setBodyParameter("PartitionIndex", std::to_string(partitionIndex));
|
||||||
|
}
|
||||||
|
|
||||||
long PullActionDataRequest::getStoreId()const
|
long PullActionDataRequest::getStoreId()const
|
||||||
{
|
{
|
||||||
return storeId_;
|
return storeId_;
|
||||||
|
|||||||
@@ -77,14 +77,14 @@ void PullActionDataResult::parse(const std::string &payload)
|
|||||||
actionsObject.locationId = std::stol(valueActionsAction["LocationId"].asString());
|
actionsObject.locationId = std::stol(valueActionsAction["LocationId"].asString());
|
||||||
if(!valueActionsAction["StayPeriod"].isNull())
|
if(!valueActionsAction["StayPeriod"].isNull())
|
||||||
actionsObject.stayPeriod = std::stoi(valueActionsAction["StayPeriod"].asString());
|
actionsObject.stayPeriod = std::stoi(valueActionsAction["StayPeriod"].asString());
|
||||||
|
if(!valueActionsAction["FacePointNumber"].isNull())
|
||||||
|
actionsObject.facePointNumber = std::stoi(valueActionsAction["FacePointNumber"].asString());
|
||||||
if(!valueActionsAction["Score"].isNull())
|
if(!valueActionsAction["Score"].isNull())
|
||||||
actionsObject.score = std::stof(valueActionsAction["Score"].asString());
|
actionsObject.score = std::stof(valueActionsAction["Score"].asString());
|
||||||
if(!valueActionsAction["SpecialType"].isNull())
|
if(!valueActionsAction["SpecialType"].isNull())
|
||||||
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["FacePointNumber"].isNull())
|
|
||||||
actionsObject.facePointNumber = std::stoi(valueActionsAction["FacePointNumber"].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());
|
||||||
@@ -105,13 +105,28 @@ void PullActionDataResult::parse(const std::string &payload)
|
|||||||
errorCode_ = value["ErrorCode"].asString();
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
if(!value["ErrorMessage"].isNull())
|
if(!value["ErrorMessage"].isNull())
|
||||||
errorMessage_ = value["ErrorMessage"].asString();
|
errorMessage_ = value["ErrorMessage"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["PartitionIndex"].isNull())
|
||||||
|
partitionIndex_ = std::stoi(value["PartitionIndex"].asString());
|
||||||
|
if(!value["DynamicCode"].isNull())
|
||||||
|
dynamicCode_ = value["DynamicCode"].asString();
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString() == "true";
|
||||||
if(!value["NextMessageId"].isNull())
|
if(!value["NextMessageId"].isNull())
|
||||||
nextMessageId_ = std::stol(value["NextMessageId"].asString());
|
nextMessageId_ = std::stol(value["NextMessageId"].asString());
|
||||||
|
if(!value["DynamicMessage"].isNull())
|
||||||
|
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string PullActionDataResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<PullActionDataResult::Action> PullActionDataResult::getActions()const
|
std::vector<PullActionDataResult::Action> PullActionDataResult::getActions()const
|
||||||
{
|
{
|
||||||
return actions_;
|
return actions_;
|
||||||
@@ -122,16 +137,36 @@ long PullActionDataResult::getNextMessageId()const
|
|||||||
return nextMessageId_;
|
return nextMessageId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int PullActionDataResult::getPartitionIndex()const
|
||||||
|
{
|
||||||
|
return partitionIndex_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PullActionDataResult::getDynamicCode()const
|
||||||
|
{
|
||||||
|
return dynamicCode_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string PullActionDataResult::getErrorCode()const
|
std::string PullActionDataResult::getErrorCode()const
|
||||||
{
|
{
|
||||||
return errorCode_;
|
return errorCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string PullActionDataResult::getDynamicMessage()const
|
||||||
|
{
|
||||||
|
return dynamicMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string PullActionDataResult::getErrorMessage()const
|
std::string PullActionDataResult::getErrorMessage()const
|
||||||
{
|
{
|
||||||
return errorMessage_;
|
return errorMessage_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string PullActionDataResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
bool PullActionDataResult::getSuccess()const
|
bool PullActionDataResult::getSuccess()const
|
||||||
{
|
{
|
||||||
return success_;
|
return success_;
|
||||||
|
|||||||
Reference in New Issue
Block a user