// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.oliodevices.assist.app.api; import com.google.gson.FieldNamingPolicy; import com.google.gson.GsonBuilder; import com.squareup.okhttp.OkHttpClient; import java.lang.ref.SoftReference; import retrofit.Callback; import retrofit.RestAdapter; import retrofit.client.OkClient; import retrofit.converter.GsonConverter; // Referenced classes of package com.oliodevices.assist.app.api: // WeatherService public class WeatherApi { private static SoftReference sWeatherServiceRef; public WeatherApi() { } public static void forecast(String s, String s1, Callback callback) { getWeatherService().forecast("6404017bc7f938dc0f735b5ab27edaf2", s, s1, callback); } private static WeatherService getWeatherService() { if (sWeatherServiceRef != null) { WeatherService weatherservice = (WeatherService)sWeatherServiceRef.get(); if (weatherservice != null) { return weatherservice; } } Object obj = (new GsonBuilder()).setFieldNamingStrategy(FieldNamingPolicy.IDENTITY).create(); OkHttpClient okhttpclient = new OkHttpClient(); obj = (WeatherService)(new retrofit.RestAdapter.Builder()).setEndpoint("https://api.forecast.io/").setClient(new OkClient(okhttpclient)).setConverter(new GsonConverter(((com.google.gson.Gson) (obj)))).build().create(com/oliodevices/assist/app/api/WeatherService); sWeatherServiceRef = new SoftReference(obj); return ((WeatherService) (obj)); } }