Add The billingCount return value to the RunPreTrainService Api.
This commit is contained in:
@@ -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_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user