File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
src/main/java/com/maxmind/geoip2 Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4+ 2.16.1 (2021-11-18)
5+ -------------------
6+
7+ * Added ` JsonProperty ` annotations to ` getMobileCountryCode() ` and
8+ ` getMobileNetworkCode() ` so that it is possible to serialize the
9+ object as JSON and then deserialize without losing data.
10+
4112.16.0 (2021-11-18)
512-------------------
613
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ public String getIsp() {
139139 * This property is available from the City and Insights web services and
140140 * the GeoIP2 Enterprise database.
141141 */
142+ @ JsonProperty ("mobile_country_code" )
142143 public String getMobileCountryCode () {
143144 return this .mobileCountryCode ;
144145 }
@@ -149,6 +150,7 @@ public String getMobileCountryCode() {
149150 * This property is available from the City and Insights web services and
150151 * the GeoIP2 Enterprise database.
151152 */
153+ @ JsonProperty ("mobile_network_code" )
152154 public String getMobileNetworkCode () {
153155 return this .mobileNetworkCode ;
154156 }
Original file line number Diff line number Diff line change @@ -553,6 +553,7 @@ public boolean isTorExitNode() {
553553 * This property is available from the City and Insights web services and
554554 * the GeoIP2 Enterprise database.
555555 */
556+ @ JsonProperty ("mobile_country_code" )
556557 public String getMobileCountryCode () {
557558 return this .mobileCountryCode ;
558559 }
@@ -563,6 +564,7 @@ public String getMobileCountryCode() {
563564 * This property is available from the City and Insights web services and
564565 * the GeoIP2 Enterprise database.
565566 */
567+ @ JsonProperty ("mobile_network_code" )
566568 public String getMobileNetworkCode () {
567569 return this .mobileNetworkCode ;
568570 }
You can’t perform that action at this time.
0 commit comments