Back to project page dw2020.
The source code is released under:
Apache License
If you think the Android project dw2020 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 net.darkwire.example.service; /* w w w.j a v a2 s.co m*/ import retrofit.RestAdapter; import com.octo.android.robospice.retrofit.RetrofitGsonSpiceService; import net.darkwire.example.service.catalog.UrlCatalog; import net.darkwire.example.service.client.FiveHundredPxClient; /** * Created by fsiu on 3/21/14. */ public class FiveHundredPxGsonSpiceService extends RetrofitGsonSpiceService { @Override public void onCreate() { super.onCreate(); addRetrofitInterface(FiveHundredPx.class); } @Override protected String getServerUrl() { return UrlCatalog.FIVE_HUNDRED_PX_URL; } @Override protected RestAdapter.Builder createRestAdapterBuilder() { return super.createRestAdapterBuilder().setClient(FiveHundredPxClient.INSTANCE.getClient()); } }