Skip to content

Commit df0cf03

Browse files
committed
IPResponse: reflect anycast response field being renamed to is_anycast
1 parent 32b6aac commit df0cf03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/io/ipinfo/api/model/IPResponse.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class IPResponse {
66
private final String ip;
77
private final String hostname;
88
private final boolean bogon;
9-
private final boolean anycast;
9+
private final boolean is_anycast;
1010
private final String city;
1111
private final String region;
1212
private final String country;
@@ -26,7 +26,7 @@ public IPResponse(
2626
String ip,
2727
String hostname,
2828
boolean bogon,
29-
boolean anycast,
29+
boolean is_anycast,
3030
String city,
3131
String region,
3232
String country,
@@ -44,7 +44,7 @@ public IPResponse(
4444
this.ip = ip;
4545
this.hostname = hostname;
4646
this.bogon = bogon;
47-
this.anycast = anycast;
47+
this.is_anycast = is_anycast;
4848
this.city = city;
4949
this.region = region;
5050
this.country = country;
@@ -89,7 +89,7 @@ public boolean getBogon() {
8989
}
9090

9191
public boolean getAnycast() {
92-
return anycast;
92+
return is_anycast;
9393
}
9494

9595
public String getCity() {
@@ -195,7 +195,7 @@ public String toString() {
195195
"IPResponse{" +
196196
"ip='" + ip + '\'' +
197197
", hostname='" + hostname + '\'' +
198-
", anycast=" + anycast +
198+
", is_anycast=" + is_anycast +
199199
", city='" + city + '\'' +
200200
", region='" + region + '\'' +
201201
", country='" + country + '\'' +

0 commit comments

Comments
 (0)