Add location info.
This commit is contained in:
@@ -37,22 +37,34 @@ namespace AlibabaCloud
|
||||
DescribeIpv4LocationResult();
|
||||
explicit DescribeIpv4LocationResult(const std::string &payload);
|
||||
~DescribeIpv4LocationResult();
|
||||
std::string getProvinceEn()const;
|
||||
std::string getCityEn()const;
|
||||
std::string getIp()const;
|
||||
std::string getIsp()const;
|
||||
std::string getCountry()const;
|
||||
std::string getLatitude()const;
|
||||
std::string getCity()const;
|
||||
std::string getCountryCode()const;
|
||||
std::string getCounty()const;
|
||||
std::string getLongitude()const;
|
||||
std::string getProvince()const;
|
||||
std::string getCountryEn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string provinceEn_;
|
||||
std::string cityEn_;
|
||||
std::string ip_;
|
||||
std::string isp_;
|
||||
std::string country_;
|
||||
std::string latitude_;
|
||||
std::string city_;
|
||||
std::string countryCode_;
|
||||
std::string county_;
|
||||
std::string longitude_;
|
||||
std::string province_;
|
||||
std::string countryEn_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,22 +37,34 @@ namespace AlibabaCloud
|
||||
DescribeIpv6LocationResult();
|
||||
explicit DescribeIpv6LocationResult(const std::string &payload);
|
||||
~DescribeIpv6LocationResult();
|
||||
std::string getProvinceEn()const;
|
||||
std::string getCityEn()const;
|
||||
std::string getIp()const;
|
||||
std::string getIsp()const;
|
||||
std::string getCountry()const;
|
||||
std::string getLatitude()const;
|
||||
std::string getCity()const;
|
||||
std::string getCountryCode()const;
|
||||
std::string getCounty()const;
|
||||
std::string getLongitude()const;
|
||||
std::string getProvince()const;
|
||||
std::string getCountryEn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string provinceEn_;
|
||||
std::string cityEn_;
|
||||
std::string ip_;
|
||||
std::string isp_;
|
||||
std::string country_;
|
||||
std::string latitude_;
|
||||
std::string city_;
|
||||
std::string countryCode_;
|
||||
std::string county_;
|
||||
std::string longitude_;
|
||||
std::string province_;
|
||||
std::string countryEn_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,9 +51,31 @@ void DescribeIpv4LocationResult::parse(const std::string &payload)
|
||||
county_ = value["County"].asString();
|
||||
if(!value["Isp"].isNull())
|
||||
isp_ = value["Isp"].asString();
|
||||
if(!value["CountryCode"].isNull())
|
||||
countryCode_ = value["CountryCode"].asString();
|
||||
if(!value["CountryEn"].isNull())
|
||||
countryEn_ = value["CountryEn"].asString();
|
||||
if(!value["ProvinceEn"].isNull())
|
||||
provinceEn_ = value["ProvinceEn"].asString();
|
||||
if(!value["CityEn"].isNull())
|
||||
cityEn_ = value["CityEn"].asString();
|
||||
if(!value["Longitude"].isNull())
|
||||
longitude_ = value["Longitude"].asString();
|
||||
if(!value["Latitude"].isNull())
|
||||
latitude_ = value["Latitude"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getProvinceEn()const
|
||||
{
|
||||
return provinceEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCityEn()const
|
||||
{
|
||||
return cityEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
@@ -69,18 +91,38 @@ std::string DescribeIpv4LocationResult::getCountry()const
|
||||
return country_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getLatitude()const
|
||||
{
|
||||
return latitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCountryCode()const
|
||||
{
|
||||
return countryCode_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCounty()const
|
||||
{
|
||||
return county_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getLongitude()const
|
||||
{
|
||||
return longitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getProvince()const
|
||||
{
|
||||
return province_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCountryEn()const
|
||||
{
|
||||
return countryEn_;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,9 +51,31 @@ void DescribeIpv6LocationResult::parse(const std::string &payload)
|
||||
county_ = value["County"].asString();
|
||||
if(!value["Isp"].isNull())
|
||||
isp_ = value["Isp"].asString();
|
||||
if(!value["CountryCode"].isNull())
|
||||
countryCode_ = value["CountryCode"].asString();
|
||||
if(!value["CountryEn"].isNull())
|
||||
countryEn_ = value["CountryEn"].asString();
|
||||
if(!value["ProvinceEn"].isNull())
|
||||
provinceEn_ = value["ProvinceEn"].asString();
|
||||
if(!value["CityEn"].isNull())
|
||||
cityEn_ = value["CityEn"].asString();
|
||||
if(!value["Longitude"].isNull())
|
||||
longitude_ = value["Longitude"].asString();
|
||||
if(!value["Latitude"].isNull())
|
||||
latitude_ = value["Latitude"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getProvinceEn()const
|
||||
{
|
||||
return provinceEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCityEn()const
|
||||
{
|
||||
return cityEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
@@ -69,18 +91,38 @@ std::string DescribeIpv6LocationResult::getCountry()const
|
||||
return country_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getLatitude()const
|
||||
{
|
||||
return latitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCountryCode()const
|
||||
{
|
||||
return countryCode_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCounty()const
|
||||
{
|
||||
return county_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getLongitude()const
|
||||
{
|
||||
return longitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getProvince()const
|
||||
{
|
||||
return province_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCountryEn()const
|
||||
{
|
||||
return countryEn_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user