Search in sources :

Example 16 with RestAdapter

use of retrofit.RestAdapter in project wh-app-android by WhiteHouse.

the class FeedCategoryManager method getFeedCategoryConfigFromNetwork.

private Observable<FeedCategoryConfig> getFeedCategoryConfigFromNetwork() {
    FeedCategoryService ds;
    RestAdapter ra = getRestAdapter();
    if (BuildConfig.DEBUG) {
        ra.setLogLevel(RestAdapter.LogLevel.FULL);
    }
    ds = ra.create(FeedCategoryService.class);
    return ds.getConfig().first();
}
Also used : RestAdapter(retrofit.RestAdapter)

Aggregations

RestAdapter (retrofit.RestAdapter)16 View (android.view.View)3 ListView (android.widget.ListView)3 TextView (android.widget.TextView)3 Test (org.junit.Test)3 OkClient (retrofit.client.OkClient)3 ImageView (android.widget.ImageView)2 InterestingApi (com.kdubb.retrofitexamples.api.InterestingApi)2 ObjectMapper (org.codehaus.jackson.map.ObjectMapper)2 RetrofitError (retrofit.RetrofitError)2 Response (retrofit.client.Response)2 GsonConverter (retrofit.converter.GsonConverter)2 Uri (android.net.Uri)1 WeekViewEvent (com.alamkanak.weekview.WeekViewEvent)1 MyJsonService (com.alamkanak.weekview.sample.apiclient.MyJsonService)1 Gson (com.google.gson.Gson)1 AsynchronousApi (com.kdubb.retrofitexamples.api.AsynchronousApi)1 SimpleApi (com.kdubb.retrofitexamples.api.SimpleApi)1 JacksonConverter (com.kdubb.retrofitexamples.converter.JacksonConverter)1 CustomChild (com.kdubb.retrofitexamples.domain.CustomChild)1