Skip to content

Commit a47313c

Browse files
committed
added method getCountryNameOfficial()
Added mthod getCountryNameOfficial() for missed param 'country_name_official'
1 parent 3d4b461 commit a47313c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/io/ipgeolocation/api/Geolocation.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class Geolocation {
1313
private final String countryCode2;
1414
private final String countryCode3;
1515
private final String countryName;
16+
private final String countryNameOfficial;
1617
private final String countryCapital;
1718
private final String stateProvince;
1819
private final String stateCode;
@@ -54,6 +55,7 @@ public class Geolocation {
5455
this.countryCode2 = json.optString("country_code2");
5556
this.countryCode3 = json.optString("country_code3");
5657
this.countryName = json.optString("country_name");
58+
this.countryNameOfficial = json.optString("country_name_official");
5759
this.countryCapital = json.optString("country_capital");
5860
this.stateProvince = json.optString("state_prov");
5961
this.stateCode = json.optString("state_code");
@@ -124,6 +126,10 @@ public String getCountryName() {
124126
return countryName;
125127
}
126128

129+
public String getCountryNameOfficial() {
130+
return countryNameOfficial;
131+
}
132+
127133
public String getCountryCapital() {
128134
return countryCapital;
129135
}

0 commit comments

Comments
 (0)