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();
}
Aggregations