Back to project page AndroidFortunes.
The source code is released under:
Apache License
If you think the Android project AndroidFortunes 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 org.codechimp.androidfortunes; /* w w w . ja v a 2 s. co m*/ import retrofit.RestAdapter; public class CloudyFortunesClient { private static CloudyFortunesApiInterface CloudyFortunesService; public static CloudyFortunesApiInterface getCloudyFortunesApiClient() { if (CloudyFortunesService == null) { RestAdapter restAdapter = new RestAdapter.Builder() .setEndpoint("https://cloudyfortunes.appspot.com/_ah/api/cloudyfortunes/v1") .setLogLevel(RestAdapter.LogLevel.FULL) .build(); CloudyFortunesService = restAdapter.create(CloudyFortunesApiInterface.class); } return CloudyFortunesService; } }