Add The billingCount return value to the RunPreTrainService Api.

This commit is contained in:
sdk-team
2023-05-06 09:32:16 +00:00
parent 3ed26d9565
commit 043fd0fcb4
3 changed files with 10 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1553
1.36.1554

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
RunPreTrainServiceResult();
explicit RunPreTrainServiceResult(const std::string &payload);
~RunPreTrainServiceResult();
int getBillingCount()const;
std::string getPredictResult()const;
protected:
void parse(const std::string &payload);
private:
int billingCount_;
std::string predictResult_;
};

View File

@@ -41,9 +41,16 @@ void RunPreTrainServiceResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["PredictResult"].isNull())
predictResult_ = value["PredictResult"].asString();
if(!value["BillingCount"].isNull())
billingCount_ = std::stoi(value["BillingCount"].asString());
}
int RunPreTrainServiceResult::getBillingCount()const
{
return billingCount_;
}
std::string RunPreTrainServiceResult::getPredictResult()const
{
return predictResult_;