Generated 2019-12-30 for imageseg.
This commit is contained in:
@@ -41,12 +41,16 @@ namespace AlibabaCloud
|
||||
SegmentHDCommonImageResult();
|
||||
explicit SegmentHDCommonImageResult(const std::string &payload);
|
||||
~SegmentHDCommonImageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -42,11 +42,25 @@ void SegmentHDCommonImageResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ImageUrl"].isNull())
|
||||
data_.imageUrl = dataNode["ImageUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SegmentHDCommonImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SegmentHDCommonImageResult::Data SegmentHDCommonImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SegmentHDCommonImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user