File tree Expand file tree Collapse file tree 6 files changed +21
-11
lines changed
src/main/java/com/maxmind/geoip2 Expand file tree Collapse file tree 6 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 11package com .maxmind .geoip2 .model ;
22
3- import java .io .IOException ;
4-
53import com .fasterxml .jackson .annotation .JsonInclude .Include ;
64import com .fasterxml .jackson .annotation .JsonProperty ;
75import com .fasterxml .jackson .databind .ObjectMapper ;
119import com .maxmind .geoip2 .record .RepresentedCountry ;
1210import com .maxmind .geoip2 .record .Traits ;
1311
14- abstract class AbstractCountryResponse {
12+ import java .io .IOException ;
13+ import java .io .Serializable ;
14+
15+ abstract class AbstractCountryResponse implements Serializable {
1516 @ JsonProperty
1617 private Continent continent = new Continent ();
1718
Original file line number Diff line number Diff line change 11package com .maxmind .geoip2 .record ;
22
3+ import com .fasterxml .jackson .annotation .JacksonInject ;
4+ import com .fasterxml .jackson .annotation .JsonProperty ;
5+
6+ import java .io .Serializable ;
37import java .util .ArrayList ;
48import java .util .HashMap ;
59import java .util .List ;
610import java .util .Map ;
711
8- import com .fasterxml .jackson .annotation .JacksonInject ;
9- import com .fasterxml .jackson .annotation .JsonProperty ;
10-
1112/**
1213 * Abstract class for records with name maps.
1314 */
14- public abstract class AbstractNamedRecord {
15+ public abstract class AbstractNamedRecord implements Serializable {
1516 @ JsonProperty
1617 private HashMap <String , String > names = new HashMap <String , String >();
1718 @ JsonProperty ("geoname_id" )
Original file line number Diff line number Diff line change 22
33import com .fasterxml .jackson .annotation .JsonProperty ;
44
5+ import java .io .Serializable ;
6+
57/**
68 * Contains data for the location record associated with an IP address.
79 *
810 * This record is returned by all the end points except the Country end point.
911 */
10- final public class Location {
12+ final public class Location implements Serializable {
1113 @ JsonProperty ("accuracy_radius" )
1214 private Integer accuracyRadius ;
1315
Original file line number Diff line number Diff line change 22
33import com .fasterxml .jackson .annotation .JsonProperty ;
44
5+ import java .io .Serializable ;
6+
57/**
68 * Contains data related to your MaxMind account.
79 *
810 * This record is returned by all the end points.
911 */
10- final public class MaxMind {
12+ final public class MaxMind implements Serializable {
1113 @ JsonProperty ("queries_remaining" )
1214 private Integer queriesRemaining ;
1315
Original file line number Diff line number Diff line change 55
66import com .fasterxml .jackson .annotation .JsonProperty ;
77
8+ import java .io .Serializable ;
9+
810/**
911 * Contains data for the postal record associated with an IP address.
1012 *
1113 * This record is returned by all the end points except the Country end point.
1214 */
13- final public class Postal {
15+ final public class Postal implements Serializable {
1416 @ JsonProperty
1517 private String code ;
1618
Original file line number Diff line number Diff line change 22
33import com .fasterxml .jackson .annotation .JsonProperty ;
44
5+ import java .io .Serializable ;
6+
57/**
68 * Contains data for the traits record associated with an IP address.
79 *
810 * This record is returned by all the end points.
911 */
10- final public class Traits {
12+ final public class Traits implements Serializable {
1113 @ JsonProperty ("autonomous_system_number" )
1214 private Integer autonomousSystemNumber ;
1315
You can’t perform that action at this time.
0 commit comments