File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
library/src/main/java/com/androidfung/geoip Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
* Created by funglam on 3/16/17.
11
11
*/
12
12
@ SuppressWarnings ("unused" )
13
- public interface IpApiService {
13
+ public interface GeoIpService {
14
14
@ GET ("json" )
15
15
Call <GeoIpResponseModel > getGeoIp ();
16
16
Original file line number Diff line number Diff line change 11
11
public class ServicesManager {
12
12
13
13
// private static final String BASE_URL = "http://ip-api.com/";
14
- private static final String BASE_URL = "https://ipapi.co/json/ " ;
14
+ private static final String BASE_URL = "https://ipapi.co/" ;
15
15
16
- public static IpApiService getGeoIpService (){
16
+ public static GeoIpService getGeoIpService (){
17
17
return new Retrofit .Builder ()
18
18
.baseUrl (BASE_URL )
19
19
.addConverterFactory (GsonConverterFactory .create ())
20
20
.build ()
21
- .create (IpApiService .class );
21
+ .create (GeoIpService .class );
22
22
}
23
23
}
You can’t perform that action at this time.
0 commit comments