|
| 1 | +package io.ipinfo.api.model; |
| 2 | + |
| 3 | +public class GeoPlus { |
| 4 | + private final String city; |
| 5 | + private final String region; |
| 6 | + private final String region_code; |
| 7 | + private final String country; |
| 8 | + private final String country_code; |
| 9 | + private final String continent; |
| 10 | + private final String continent_code; |
| 11 | + private final Double latitude; |
| 12 | + private final Double longitude; |
| 13 | + private final String timezone; |
| 14 | + private final String postal_code; |
| 15 | + private final String dma_code; |
| 16 | + private final String geoname_id; |
| 17 | + private final Integer radius; |
| 18 | + private final String last_changed; |
| 19 | + |
| 20 | + public GeoPlus( |
| 21 | + String city, |
| 22 | + String region, |
| 23 | + String region_code, |
| 24 | + String country, |
| 25 | + String country_code, |
| 26 | + String continent, |
| 27 | + String continent_code, |
| 28 | + Double latitude, |
| 29 | + Double longitude, |
| 30 | + String timezone, |
| 31 | + String postal_code, |
| 32 | + String dma_code, |
| 33 | + String geoname_id, |
| 34 | + Integer radius, |
| 35 | + String last_changed |
| 36 | + ) { |
| 37 | + this.city = city; |
| 38 | + this.region = region; |
| 39 | + this.region_code = region_code; |
| 40 | + this.country = country; |
| 41 | + this.country_code = country_code; |
| 42 | + this.continent = continent; |
| 43 | + this.continent_code = continent_code; |
| 44 | + this.latitude = latitude; |
| 45 | + this.longitude = longitude; |
| 46 | + this.timezone = timezone; |
| 47 | + this.postal_code = postal_code; |
| 48 | + this.dma_code = dma_code; |
| 49 | + this.geoname_id = geoname_id; |
| 50 | + this.radius = radius; |
| 51 | + this.last_changed = last_changed; |
| 52 | + } |
| 53 | + |
| 54 | + public String getCity() { |
| 55 | + return city; |
| 56 | + } |
| 57 | + |
| 58 | + public String getRegion() { |
| 59 | + return region; |
| 60 | + } |
| 61 | + |
| 62 | + public String getRegionCode() { |
| 63 | + return region_code; |
| 64 | + } |
| 65 | + |
| 66 | + public String getCountry() { |
| 67 | + return country; |
| 68 | + } |
| 69 | + |
| 70 | + public String getCountryCode() { |
| 71 | + return country_code; |
| 72 | + } |
| 73 | + |
| 74 | + public String getContinent() { |
| 75 | + return continent; |
| 76 | + } |
| 77 | + |
| 78 | + public String getContinentCode() { |
| 79 | + return continent_code; |
| 80 | + } |
| 81 | + |
| 82 | + public Double getLatitude() { |
| 83 | + return latitude; |
| 84 | + } |
| 85 | + |
| 86 | + public Double getLongitude() { |
| 87 | + return longitude; |
| 88 | + } |
| 89 | + |
| 90 | + public String getTimezone() { |
| 91 | + return timezone; |
| 92 | + } |
| 93 | + |
| 94 | + public String getPostalCode() { |
| 95 | + return postal_code; |
| 96 | + } |
| 97 | + |
| 98 | + public String getDmaCode() { |
| 99 | + return dma_code; |
| 100 | + } |
| 101 | + |
| 102 | + public String getGeonameId() { |
| 103 | + return geoname_id; |
| 104 | + } |
| 105 | + |
| 106 | + public Integer getRadius() { |
| 107 | + return radius; |
| 108 | + } |
| 109 | + |
| 110 | + public String getLastChanged() { |
| 111 | + return last_changed; |
| 112 | + } |
| 113 | + |
| 114 | + @Override |
| 115 | + public String toString() { |
| 116 | + return "GeoPlus{" + |
| 117 | + "city='" + city + '\'' + |
| 118 | + ", region='" + region + '\'' + |
| 119 | + ", region_code='" + region_code + '\'' + |
| 120 | + ", country='" + country + '\'' + |
| 121 | + ", country_code='" + country_code + '\'' + |
| 122 | + ", continent='" + continent + '\'' + |
| 123 | + ", continent_code='" + continent_code + '\'' + |
| 124 | + ", latitude=" + latitude + |
| 125 | + ", longitude=" + longitude + |
| 126 | + ", timezone='" + timezone + '\'' + |
| 127 | + ", postal_code='" + postal_code + '\'' + |
| 128 | + ", dma_code='" + dma_code + '\'' + |
| 129 | + ", geoname_id='" + geoname_id + '\'' + |
| 130 | + ", radius=" + radius + |
| 131 | + ", last_changed='" + last_changed + '\'' + |
| 132 | + '}'; |
| 133 | + } |
| 134 | +} |
0 commit comments