mapleskip / EasyOKHttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EasyOKHttp

dependencies {
            annotationProcessor 'com.msx7.andriod:aptokhttp:0.1.4'
            implementation 'com.msx7.andriod:commons:0.1.2'
}
public interface DeskAPI {
    @GET("https://www.sojson.com/open/api/weather/json.shtml")
    Observable<Object> getStatistic(@Query("city") String city);
}
  DeskAPI_Creator.getStatistic("上海") {
            Log.d("MSG",it.data.toString())
            null
        }

androidStudio -> run -> make modules or gradle assemble generate DeskAPI_Creator.java

About

License:Apache License 2.0


Languages

Language:Java 100.0%