Back to project page protohipster.
The source code is released under:
Apache License
If you think the Android project protohipster listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.flipper83.protohipster.feed.datasource.module.api; /*w ww . java 2 s . c om*/ import com.flipper83.protohipster.feed.datasource.api.Api; import com.flipper83.protohipster.feed.datasource.api.call.ApiCall; import com.flipper83.protohipster.feed.datasource.api.call.rest.ApiRestCall; import javax.inject.Inject; import retrofit.RestAdapter; /** * */ public class ApiRest implements Api { private final RestAdapter restAdapter; @Inject public ApiRest(RestAdapter restAdapter) { this.restAdapter = restAdapter; } @Override public void call(ApiCall apiCall) { ApiRestCall restCall = (ApiRestCall) apiCall; restCall.setRestAdapter(restAdapter); restCall.call(); } public final static String DOMAIN = "http://api.randomuser.me"; }