Skip to content

Commit

Permalink
Fixed Units
Browse files Browse the repository at this point in the history
  • Loading branch information
KwabenBerko committed Sep 22, 2017
1 parent d42679a commit 094c75b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.kwabenaberko.openweathermap;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.kwabenaberko.openweathermaplib.Units;
import com.kwabenaberko.openweathermaplib.implementation.OpenWeatherMapHelper;
import com.kwabenaberko.openweathermaplib.models.currentweather.CurrentWeather;
import com.kwabenaberko.openweathermaplib.models.threehourforecast.ThreeHourForecast;

public class MainActivity extends AppCompatActivity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

public class Units {
public static final String IMPERIAL = "imperial";
public static final String FAHRENHEIT = "fahrenheit";
public static final String METRIC = "metric";
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.kwabenaberko.openweathermaplib.implementation;

import android.inputmethodservice.AbstractInputMethodService;
import android.support.annotation.NonNull;

import com.kwabenaberko.openweathermaplib.Units;
import com.kwabenaberko.openweathermaplib.models.currentweather.CurrentWeather;
import com.kwabenaberko.openweathermaplib.models.threehourforecast.ThreeHourForecast;
import com.kwabenaberko.openweathermaplib.network.OpenWeatherMapClient;
import com.kwabenaberko.openweathermaplib.network.OpenWeatherMapService;
import com.kwabenaberko.openweathermaplib.models.currentweather.CurrentWeather;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down Expand Up @@ -44,7 +42,6 @@ public OpenWeatherMapHelper(){
openWeatherMapService = OpenWeatherMapClient.getClient().create(OpenWeatherMapService.class);
options = new HashMap<>();
options.put("APPID", "");
options.put("units", Units.FAHRENHEIT);
}

//METHODS TO SETUP APPLICATION
Expand Down

0 comments on commit 094c75b

Please sign in to comment.