|
8 | 8 | import io.ipdata.client.model.ThreatModel; |
9 | 9 | import io.ipdata.client.model.TimeZone; |
10 | 10 |
|
11 | | -@SuppressWarnings("RedundantThrows") |
12 | 11 | interface IpdataInternalSingleFieldClient { |
13 | 12 |
|
14 | 13 | @RequestLine("GET /{ip}/ip") |
15 | | - String getIp(@Param("ip") String ip) throws IpdataException; |
| 14 | + String getIp(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
16 | 15 |
|
17 | 16 | @RequestLine("GET /{ip}/is_eu") |
18 | | - boolean isEu(@Param("ip") String ip) throws IpdataException; |
| 17 | + boolean isEu(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
19 | 18 |
|
20 | 19 | @RequestLine("GET /{ip}/city") |
21 | | - String getCity(@Param("ip") String ip) throws IpdataException; |
| 20 | + String getCity(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
22 | 21 |
|
23 | 22 | @RequestLine("GET /{ip}/country_name") |
24 | | - String getCountryName(@Param("ip") String ip) throws IpdataException; |
| 23 | + String getCountryName(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
25 | 24 |
|
26 | 25 | @RequestLine("GET /{ip}/country_code") |
27 | | - String getCountryCode(@Param("ip") String ip) throws IpdataException; |
| 26 | + String getCountryCode(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
28 | 27 |
|
29 | 28 | @RequestLine("GET /{ip}/continent_code") |
30 | | - String getContinentCode(@Param("ip") String ip) throws IpdataException; |
| 29 | + String getContinentCode(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
31 | 30 |
|
32 | 31 | @RequestLine("GET /{ip}/longitude") |
33 | | - double getLongitude(@Param("ip") String ip) throws IpdataException; |
| 32 | + double getLongitude(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
34 | 33 |
|
35 | 34 | @RequestLine("GET /{ip}/latitude") |
36 | | - double getLatitude(@Param("ip") String ip) throws IpdataException; |
| 35 | + double getLatitude(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
37 | 36 |
|
38 | 37 | @RequestLine("GET /{ip}/organisation") |
39 | | - String getOrganisation(@Param("ip") String ip) throws IpdataException; |
| 38 | + String getOrganisation(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
40 | 39 |
|
41 | 40 | @RequestLine("GET /{ip}/postal") |
42 | | - String getPostal(@Param("ip") String ip) throws IpdataException; |
| 41 | + String getPostal(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
43 | 42 |
|
44 | 43 | @RequestLine("GET /{ip}/asn") |
45 | | - String getCallingCode(@Param("ip") String ip) throws IpdataException; |
| 44 | + String getCallingCode(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
46 | 45 |
|
47 | 46 | @RequestLine("GET /{ip}/flag") |
48 | | - String getFlag(@Param("ip") String ip) throws IpdataException; |
| 47 | + String getFlag(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
49 | 48 |
|
50 | 49 | @RequestLine("GET /{ip}/emoji_flag") |
51 | | - String getEmojiFlag(@Param("ip") String ip) throws IpdataException; |
| 50 | + String getEmojiFlag(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
52 | 51 |
|
53 | 52 | @RequestLine("GET /{ip}/emoji_unicode") |
54 | | - String getEmojiUnicode(@Param("ip") String ip) throws IpdataException; |
| 53 | + String getEmojiUnicode(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
55 | 54 |
|
56 | 55 | @Cacheable |
57 | 56 | @RequestLine("GET /{ip}/asn") |
58 | | - AsnModel asn(@Param("ip") String ip) throws IpdataException; |
| 57 | + AsnModel asn(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
59 | 58 |
|
60 | 59 | @Cacheable |
61 | 60 | @RequestLine("GET /{ip}/time_zone") |
62 | | - TimeZone timeZone(@Param("ip") String ip) throws IpdataException; |
| 61 | + TimeZone timeZone(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
63 | 62 |
|
64 | 63 | @Cacheable |
65 | 64 | @RequestLine("GET /{ip}/currency") |
66 | | - Currency currency(@Param("ip") String ip) throws IpdataException; |
| 65 | + Currency currency(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
67 | 66 |
|
68 | 67 | @Cacheable |
69 | 68 | @RequestLine("GET /{ip}/threat") |
70 | | - ThreatModel threat(@Param("ip") String ip) throws IpdataException; |
| 69 | + ThreatModel threat(@Param(value = "ip", encoded = true) String ip) throws IpdataException; |
71 | 70 |
|
72 | 71 | } |
0 commit comments